/* ============================================
   MyDataScraper – Main Stylesheet
   ============================================ */

:root {
    --b: #2563EB;
    --n: #0F172A;
    --c: #06B6D4;
    --o: #F59E0B;
    --bg: #F8FAFC;
    --bg2: #F1F5F9;
    --t: #475569;
    --m: #64748B;
    --ln: #E2E8F0;
    --r: 16px;
    --sh: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .08);
    color-scheme: light;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px)
}

*,
*::before,
*::after {
    box-sizing: inherit
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px))
}

body {
    margin: 0;
    font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--t);
    background: #fff;
    -webkit-font-smoothing: antialiased
}

h1,
h2,
h3 {
    color: var(--n);
    margin: 0;
    letter-spacing: -.025em;
    line-height: 1.1
}

h1 {
    font-size: clamp(38px, 5.6vw, 68px);
    font-weight: 800
}

h2 {
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 700;
    max-width: 20ch
}

h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.3
}

p {
    margin: 0
}

a {
    color: inherit;
    text-decoration: none
}

:focus-visible {
    outline: 3px solid var(--c);
    outline-offset: 3px;
    border-radius: 6px
}

.w {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

section {
    padding: 96px 0
}

.alt {
    background: var(--bg)
}

.lead {
    font-size: 19px;
    max-width: 58ch;
    margin-top: 18px
}

.eb {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--b);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px
}

.eb::before {
    content: "";
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: var(--o)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
    font-family: inherit
}

.p {
    background: var(--b);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .6)
}

.p:hover {
    background: #1d4ed8;
    transform: translateY(-1px)
}

.s {
    background: #fff;
    color: var(--n);
    border-color: #CBD5E1
}

.s:hover {
    border-color: var(--b);
    color: var(--b)
}

.sm {
    padding: 10px 18px;
    font-size: 15px
}

.grid {
    display: grid;
    gap: 20px
}

.card {
    background: #fff;
    border: 1px solid var(--ln);
    border-radius: var(--r);
    padding: 28px;
    box-shadow: var(--sh);
    transition: transform .25s, border-color .25s, box-shadow .25s
}

a.card:hover,
.hv:hover {
    transform: translateY(-4px);
    border-color: var(--b);
    box-shadow: 0 16px 32px -12px rgba(37, 99, 235, .25)
}

.ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #EFF6FF;
    color: var(--b);
    display: grid;
    place-items: center;
    margin-bottom: 20px
}

.ic svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round
}

.lk {
    margin-top: 18px;
    color: var(--b);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    gap: 6px
}

.lk i {
    font-style: normal;
    transition: transform .2s
}

a.card:hover .lk i {
    transform: translateX(4px)
}

/* header */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--ln);
    transition: background .3s, backdrop-filter .3s;
    padding-top: env(safe-area-inset-top, 0px)
}

header.site-header.sc {
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px)
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 76px
}

.site-branding img {
    height: 44px;
    width: auto;
    display: block
}

.links {
    display: flex;
    gap: 28px;
    margin: 0 auto;
    font-size: 15px;
    font-weight: 500
}

.links a:hover {
    color: var(--b)
}

.links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px
}

.acts {
    display: flex;
    gap: 10px;
    align-items: center
}

.burger {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--ln);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--n)
}

/* hero */
.hero {
    padding: 72px 0 88px;
    background: linear-gradient(#fff, var(--bg));
    position: relative;
    overflow: hidden
}

.hero::before,
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--ln) 1px, transparent 1px), linear-gradient(90deg, var(--ln) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: .45;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%)
}

.hg {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative
}

.gt {
    background: linear-gradient(100deg, var(--b), var(--c), var(--b));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gm 8s ease-in-out infinite alternate
}

@keyframes gm {
    to {
        background-position: 100% 0
    }
}

.cr {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 32px 0 22px
}

.mini {
    font-size: 14px;
    color: var(--m)
}

.viz {
    background: #fff;
    border: 1px solid var(--ln);
    border-radius: 20px;
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .2);
    padding: 16px
}

.viz svg {
    width: 100%;
    height: auto;
    display: block
}

.fl {
    stroke-dasharray: 4 6;
    animation: fl 1.6s linear infinite
}

@keyframes fl {
    to {
        stroke-dashoffset: -20
    }
}

/* trust */
.trust {
    padding: 40px 0;
    border-block: 1px solid var(--ln)
}

.trust p {
    text-align: center;
    font-weight: 500;
    color: var(--n);
    margin-bottom: 20px
}

.ind {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 36px;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--m)
}

/* process */
.proc {
    grid-template-columns: repeat(5, 1fr);
    margin-top: 52px;
    position: relative;
    gap: 16px
}

.proc .card {
    padding: 22px
}

.proc .n {
    font: 700 13px Inter;
    color: var(--o);
    margin-bottom: 12px
}

.proc p {
    font-size: 15px;
    margin-top: 8px
}

.proc .card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    right: -17px;
    width: 18px;
    height: 2px;
    background: var(--c)
}

.g3 {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 48px
}

.g2 {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px
}

.g4 {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 48px
}

.card p {
    margin-top: 10px;
    font-size: 16px
}

/* table */
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 40px 0 16px
}

.tab {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--ln);
    background: #fff;
    font: 500 15px Inter;
    color: var(--t);
    cursor: pointer;
    transition: .2s
}

.tab[aria-selected=true] {
    background: var(--n);
    color: #fff;
    border-color: var(--n)
}

.tw {
    position: relative;
    background: #fff;
    border: 1px solid var(--ln);
    border-radius: var(--r);
    box-shadow: var(--sh);
    overflow: hidden
}

.bd {
    position: absolute;
    right: 14px;
    top: -1px;
    background: var(--b);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 0 0 10px 10px
}

.sc2 {
    overflow-x: auto;
    padding-top: 14px
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 760px;
    font-size: 14px
}

th {
    text-align: left;
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--m);
    padding: 14px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--ln);
    white-space: nowrap
}

td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--bg2);
    white-space: nowrap;
    color: var(--n)
}

tr:last-child td {
    border: 0
}

tbody tr {
    animation: rw .4s both
}

tbody tr:nth-child(2) {
    animation-delay: .07s
}

tbody tr:nth-child(3) {
    animation-delay: .14s
}

tbody tr:nth-child(4) {
    animation-delay: .21s
}

@keyframes rw {
    from {
        opacity: 0;
        transform: translateY(6px)
    }
}

.ok {
    color: #047857;
    background: #ECFDF5;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 13px
}

.note {
    font-size: 13px;
    color: var(--m);
    margin-top: 12px
}

/* industries */
.ib h3 {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.ib ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 8px;
    font-size: 15px
}

.ib li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c);
    margin-right: 10px;
    vertical-align: middle
}

/* api */
.api {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center
}

.code {
    background: var(--n);
    border-radius: var(--r);
    box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .5);
    overflow: hidden;
    color: #CBD5E1;
    font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace
}

.code .bar {
    display: flex;
    gap: 7px;
    padding: 14px 18px;
    border-bottom: 1px solid #1E293B;
    align-items: center
}

.bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155
}

.code pre {
    margin: 0;
    padding: 18px 22px;
    overflow-x: auto;
    white-space: pre
}

.get {
    color: var(--o);
    font-weight: 700
}

.k {
    color: #67E8F9
}

.v {
    color: #93C5FD
}

.cur::after {
    content: "▍";
    color: var(--c);
    animation: bl 1s steps(1) infinite
}

@keyframes bl {
    50% {
        opacity: 0
    }
}

/* delivery */
.eng {
    width: max-content;
    max-width: 100%;
    margin: 44px auto 0;
    background: var(--n);
    color: #fff;
    padding: 18px 32px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    font-size: 14px;
    text-align: center;
    position: relative
}

.eng::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 32px;
    background: linear-gradient(var(--c), transparent)
}

.dl {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 32px
}

.dl .card {
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    font-weight: 600;
    color: var(--n);
    font-size: 16px
}

.dl .ic {
    margin: 0;
    flex: none
}

/* pipeline */
.pipe {
    max-width: 620px;
    margin: 52px auto 0;
    display: grid;
    gap: 0
}

.pn {
    border: 1px solid var(--ln);
    background: #fff;
    border-radius: 14px;
    padding: 18px 24px;
    text-align: center;
    font-weight: 600;
    color: var(--n);
    font-size: 15px;
    letter-spacing: .03em;
    box-shadow: var(--sh)
}

.pn small {
    display: block;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--m);
    font-size: 14px;
    margin-top: 2px
}

.pn.hl {
    background: #EFF6FF;
    border-color: var(--b)
}

.pa {
    height: 34px;
    width: 2px;
    margin: 0 auto;
    background: linear-gradient(var(--b), var(--c));
    position: relative
}

.pa::after {
    content: "";
    position: absolute;
    left: -4px;
    bottom: -1px;
    border: 5px solid transparent;
    border-top: 7px solid var(--c);
    border-bottom: 0
}

.pc {
    text-align: center
}

.pc h2 {
    margin-inline: auto
}

/* reliability */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px
}

.chip {
    background: #fff;
    border: 1px solid var(--ln);
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 500;
    color: var(--n);
    display: flex;
    gap: 10px;
    align-items: center
}

.chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c)
}

/* cta */
.cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #EFF6FF, #ECFEFF);
    border-block: 1px solid var(--ln);
    text-align: center
}

.cta .w {
    position: relative
}

.cta h2 {
    margin-inline: auto;
    max-width: 26ch
}

.cta .lead {
    margin-inline: auto
}

.cta .cr {
    justify-content: center
}

.sg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center
}

/* footer */
footer.site-footer {
    background: var(--bg2);
    padding: 72px 0 28px;
    font-size: 15px
}

.fg {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 36px
}

footer h4 {
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--n)
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px
}

footer a:hover {
    color: var(--b)
}

.fb {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #CBD5E1;
    margin-top: 48px;
    padding-top: 24px;
    font-size: 14px;
    color: var(--m)
}

.rv {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s, transform .6s
}

.rv.in {
    opacity: 1;
    transform: none
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap
}

.skip-link {
    position: absolute;
    left: -9999px
}

@media(max-width:1023px) {

    .hg,
    .api,
    .sg {
        grid-template-columns: 1fr
    }

    .g3,
    .g4,
    .dl {
        grid-template-columns: repeat(2, 1fr)
    }

    .proc {
        grid-template-columns: 1fr
    }

    .proc .card:not(:last-child)::after {
        display: none
    }

    .fg {
        grid-template-columns: repeat(2, 1fr)
    }

    section {
        padding: 72px 0
    }

    .links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--ln);
        flex-direction: column;
        padding: 12px 24px 20px;
        gap: 4px
    }

    .links.open {
        display: flex
    }

    .links ul {
        flex-direction: column;
        gap: 4px
    }

    .links a {
        padding: 12px 0
    }

    .burger {
        display: block
    }

    .acts .s {
        display: none
    }
}

@media(max-width:640px) {
    body {
        font-size: 16px
    }

    .g3,
    .g2,
    .g4,
    .dl {
        grid-template-columns: 1fr
    }

    .cr .btn,
    .acts .btn {
        width: 100%;
        justify-content: center
    }

    .acts .btn {
        width: auto;
        padding: 10px 14px;
        font-size: 14px
    }

    .nav {
        gap: 12px
    }

    .site-branding img {
        height: 34px
    }

    .fg {
        grid-template-columns: 1fr
    }

    .hero {
        padding-top: 44px
    }

    .card {
        padding: 22px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }

    .rv {
        opacity: 1;
        transform: none
    }

    html {
        scroll-behavior: auto
    }
}

/* Menu css */
/* ---------- Nav menu base ---------- */
.links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
}

.links ul li {
    position: relative;
}

.links ul li a {
    display: inline-block;
    padding: 8px 0;
    color: var(--t);
    text-decoration: none;
    transition: color .2s;
}

.links ul li a:hover,
.links ul li.current-menu-item>a,
.links ul li.current_page_item>a {
    color: var(--b);
}

/* ---------- Dropdown (submenu) ---------- */
.links ul li.menu-item-has-children>a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-1px, -2px);
    margin-left: 8px;
    transition: transform .2s;
}

.links ul li.menu-item-has-children:hover>a::after {
    transform: rotate(-135deg) translate(-1px, 2px);
}

.links ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--ln);
    border-radius: 14px;
    box-shadow: 0 16px 40px -12px rgba(15, 23, 42, .18);
    padding: 10px;
    display: grid;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 100;
}

.links ul li.menu-item-has-children:hover .sub-menu,
.links ul li.menu-item-has-children:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.links ul .sub-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--n);
    font-size: 14px;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.links ul .sub-menu li a:hover {
    background: #EFF6FF;
    color: var(--b);
}

/* Small caret/arrow at the top of the dropdown */
.links ul .sub-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid var(--ln);
    border-top: 1px solid var(--ln);
}

/* Mobile — collapse dropdown inline */
@media (max-width: 1023px) {
    .links ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .links ul li {
        width: 100%;
    }

    .links ul li a {
        padding: 12px 0;
        border-bottom: 1px solid var(--ln);
    }

    .links ul .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0 0 0 16px;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s;
    }

    .links ul li.menu-item-has-children:hover .sub-menu,
    .links ul li.menu-item-has-children:focus-within .sub-menu,
    .links ul li.menu-item-has-children.open .sub-menu {
        max-height: 800px;
    }

    .links ul .sub-menu::before {
        display: none;
    }
}

.links ul li.current-menu-item {
    border-bottom: 3px solid #2563eb !important;
    color: #000 !important;
}

.links ul li ul li.current-menu-item {
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
}

.links ul li ul li.current-menu-item a {
    color: #fff;
}


/* Left content */
.eb {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2563EB;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #0F172A;
}

h1 .gt {
    color: #2563EB;
}

/* Orange accent – used sparingly */
h1 .accent {
    color: #F59E0B;
}

.lead {
    font-size: 1.15rem;
    color: #475569;
    max-width: 540px;
    margin-bottom: 2rem;
}

.cr {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}


.mini {
    font-size: 0.85rem;
    color: #64748B;
    letter-spacing: 0.01em;
}

/* Right visual – animated CSV screen */
.viz {
    width: 100%;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12),
        0 0 0 1px #E2E8F0;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

/* fake browser chrome */
.viz-chrome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E2E8F0;
}

.dot.r {
    background: #F87171;
}

.dot.y {
    background: #FBBF24;
}

.dot.g {
    background: #34D399;
}

.viz-title {
    font-size: 0.7rem;
    color: #64748B;
    margin-left: auto;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* terminal-ish header */
.code-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #F8FAFC;
    border-radius: 8px;
    border-left: 3px solid #2563EB;
}

.code-header span {
    font-size: 0.7rem;
    color: #64748B;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-header .tag {
    background: #F1F5F9;
    padding: 0.15rem 0.6rem;
    border-radius: 40px;
    font-size: 0.65rem;
    color: #475569;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* CSV table area */
.csv-screen {
    flex: 1;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 0.75rem 0.5rem 0.5rem 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #E2E8F0;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.72rem;
    line-height: 1.5;
}

.csv-scroll {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 #F1F5F9;
    padding-right: 2px;
}

.csv-scroll::-webkit-scrollbar {
    width: 5px;
}

.csv-scroll::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 10px;
}

.csv-scroll::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.csv-row {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1.5fr 1fr;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid #E2E8F0;
    opacity: 0;
    transform: translateY(6px);
    animation: rowFadeIn 0.45s ease forwards;
}

.csv-row.header {
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #CBD5E1;
    background: #F1F5F9;
    border-radius: 6px 6px 0 0;
    opacity: 1;
    transform: none;
    animation: none;
    letter-spacing: 0.03em;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.csv-row:last-child {
    border-bottom: none;
}

.csv-row .cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #475569;
}

.csv-row .cell:first-child {
    color: #0F172A;
    font-weight: 500;
}

.csv-row .cell.highlight {
    color: #2563EB;
}

.csv-row .cell.num {
    color: #06B6D4;
    text-align: right;
    font-weight: 500;
}

@keyframes rowFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* stagger animation delays */
.csv-row:not(.header):nth-child(2) {
    animation-delay: 0.2s;
}

.csv-row:not(.header):nth-child(3) {
    animation-delay: 0.5s;
}

.csv-row:not(.header):nth-child(4) {
    animation-delay: 0.8s;
}

.csv-row:not(.header):nth-child(5) {
    animation-delay: 1.1s;
}

.csv-row:not(.header):nth-child(6) {
    animation-delay: 1.4s;
}

.csv-row:not(.header):nth-child(7) {
    animation-delay: 1.7s;
}

.csv-row:not(.header):nth-child(8) {
    animation-delay: 2.0s;
}

.csv-row:not(.header):nth-child(9) {
    animation-delay: 2.3s;
}

.csv-row:not(.header):nth-child(10) {
    animation-delay: 2.6s;
}

.csv-row:not(.header):nth-child(11) {
    animation-delay: 2.9s;
}

.csv-row:not(.header):nth-child(12) {
    animation-delay: 3.2s;
}

/* blinking cursor / processing indicator */
.processing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    color: #2563EB;
    font-weight: 500;
    background: #FFFFFF;
    border-radius: 6px;
    border-left: 3px solid #06B6D4;
}

.processing .blink {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06B6D4;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.85);
    }
}

.processing .arrow {
    color: #F59E0B;
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
}

/* responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    .viz {
        min-height: 320px;
    }
}

@media (max-width: 820px) {
    .w.hg {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    h1 {
        font-size: 2.5rem;
    }

    .lead {
        max-width: 100%;
    }

    .viz {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .cr {
        gap: 0.75rem;
    }

    .csv-row {
        font-size: 0.6rem;
        grid-template-columns: 1.6fr 1.1fr 1.3fr 0.9fr;
        gap: 0.25rem;
    }

    .viz {
        padding: 1rem;
    }
}