/* ==========================================================================
   SunoGrab — navy / blue theme
   Fonts: Barlow (headings, body) + Roboto Condensed (labels, UI)
   ========================================================================== */

:root {
    --navy-900: #071527;
    --navy-800: #0B1B33;
    --navy-700: #0F2445;
    --navy-600: #14315C;
    --blue-700: #1D4ED8;
    --blue-600: #2563EB;
    --blue-500: #3B82F6;
    --blue-400: #60A5FA;
    --blue-300: #93C5FD;
    --blue-100: #DBEAFE;
    --blue-50: #EFF6FF;

    --ink: #101E36;
    --body: #3D4E6B;
    --muted: #6A7A96;
    --line: #DCE5F2;
    --bg: #F4F7FC;
    --bg-alt: #EBF1FA;
    --white: #fff;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(16, 30, 54, .06);
    --shadow-md: 0 12px 32px -12px rgba(11, 27, 51, .18);
    --shadow-lg: 0 24px 64px -20px rgba(8, 21, 43, .45);

    --font-head: "Barlow", "Segoe UI", sans-serif;
    --font-label: "Roboto Condensed", "Segoe UI", sans-serif;
    --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-head);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: "Consolas", "Courier New", monospace;
    font-size: .88em;
    background: #E8F0FB;
    color: var(--blue-700);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.narrow { max-width: 840px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--white);
    color: var(--ink);
    padding: 10px 16px;
    border-radius: 10px;
    z-index: 200;
}
.skip-link:focus { left: 16px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .02em;
    line-height: 1;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn small {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
    padding-left: 2px;
    border-left: 1px solid rgba(255, 255, 255, .35);
    margin-left: 2px;
    padding-left: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .55);
}
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(37, 99, 235, .65); }
.btn-primary:disabled { opacity: .65; cursor: wait; transform: none; }

.btn-outline {
    background: var(--white);
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline:hover { border-color: var(--blue-400); color: var(--blue-700); }
.btn-outline small { border-left-color: var(--line); }

.btn-light {
    background: var(--white);
    color: var(--navy-800);
    box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45);
}
.btn-light:hover { background: var(--blue-50); }

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }

.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(220, 229, 242, .8);
}
.nav {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 74px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.02em;
    color: var(--navy-800);
}
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--blue-600); }
.brand img { border-radius: 10px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}
.nav-links a {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 15.5px;
    color: #33445F;
    position: relative;
    padding: 6px 0;
}
.nav-links a:hover { color: var(--blue-600); text-decoration: none; }
.nav-links a.is-active { color: var(--blue-600); }
.nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
}
.nav-cta { margin-left: 10px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: none;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2.5px;
    border-radius: 3px;
    background: var(--navy-800);
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(96, 165, 250, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, .05) 1px, transparent 1px),
        radial-gradient(1100px 520px at 50% -10%, #1A3A6E 0%, transparent 60%),
        linear-gradient(180deg, var(--navy-800) 0%, #0A1B36 60%, #0C2140 100%);
    background-size: 44px 44px, 44px 44px, auto, auto;
    padding: 84px 0 100px;
    color: #fff;
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.hero-glow-1 {
    width: 480px; height: 480px;
    left: -160px; top: -120px;
    background: rgba(37, 99, 235, .28);
}
.hero-glow-2 {
    width: 420px; height: 420px;
    right: -140px; top: 120px;
    background: rgba(96, 165, 250, .16);
}
.hero-inner { position: relative; text-align: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-300);
    background: rgba(96, 165, 250, .1);
    border: 1px solid rgba(96, 165, 250, .3);
    padding: 8px 18px;
    border-radius: 999px;
    margin: 0 auto 22px;
}
.hero-badge svg { color: var(--blue-400); }

.hero h1 {
    font-size: clamp(38px, 5.6vw, 64px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    margin: 0 auto 20px;
    max-width: 800px;
}
.hero h1 .grad {
    background: linear-gradient(90deg, var(--blue-300), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    max-width: 640px;
    margin: 0 auto;
    color: #A9BAD3;
    font-size: 19px;
    line-height: 1.6;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin-top: 30px;
    font-family: var(--font-label);
    font-size: 14px;
    color: #7E93B4;
}
.hero-tags span::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue-400);
    margin-right: 9px;
    vertical-align: 2px;
}

/* --------------------------------------------------------------------------
   Search / downloader card
   -------------------------------------------------------------------------- */
.search-card {
    max-width: 800px;
    margin: 40px auto 0;
    background: var(--white);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-lg);
    text-align: left;
    color: var(--body);
}

.link-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 56px;
    background: #F7FAFE;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 0 96px 0 46px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input-wrap:focus-within {
    border-color: var(--blue-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .14);
}
.input-icon {
    position: absolute;
    left: 16px;
    color: var(--muted);
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    font-family: var(--font-head);
    font-size: 16.5px;
    color: var(--ink);
    min-width: 0;
}
.input-wrap input::placeholder { color: #9AABC4; }

.paste-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--blue-50);
    color: var(--blue-700);
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 0 15px;
    cursor: pointer;
    transition: background .15s ease;
}
.paste-btn:hover { background: var(--blue-100); }

.form-hint {
    margin: 12px 2px 0;
    font-size: 13.5px;
    color: var(--muted);
}

.status {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid transparent;
}
.status-loading {
    background: var(--blue-50);
    color: var(--blue-700);
    border-color: #BFDBFE;
}
.status-loading::before {
    content: "";
    display: inline-block;
    width: 13px; height: 13px;
    margin-right: 10px;
    border: 2px solid rgba(37, 99, 235, .25);
    border-top-color: var(--blue-600);
    border-radius: 50%;
    vertical-align: -2px;
    animation: spin .7s linear infinite;
}
.status-error {
    background: #FEF2F2;
    color: #B42318;
    border-color: #FECACA;
}

.result {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
    animation: fadeUp .35s ease both;
}
.result-main {
    display: flex;
    align-items: center;
    gap: 16px;
}
.result-cover {
    width: 78px;
    height: 78px;
    flex: none;
    border-radius: 14px;
    object-fit: cover;
    background: #E2E8F0;
    box-shadow: var(--shadow-md);
}
.result-info { min-width: 0; }
.result-kicker {
    margin: 0 0 3px;
    font-family: var(--font-label);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-600);
}
.result-title {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 7px;
    overflow-wrap: anywhere;
}
.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.result-meta span {
    background: #ECF2FB;
    color: #40527A;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 12.5px;
    padding: 3px 11px;
    border-radius: 999px;
}
.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.result-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--muted);
}

/* Download progress */
.dl-progress {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #F8FBFF;
    animation: fadeUp .25s ease both;
}
.dl-track {
    height: 10px;
    border-radius: 999px;
    background: #E3ECFA;
    overflow: hidden;
}
.dl-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
    transition: width .2s linear;
}
.dl-progress.is-indeterminate .dl-fill {
    width: 100%;
    background: repeating-linear-gradient(45deg, #3B82F6 0 14px, #1D4ED8 14px 28px);
    background-size: 40px 40px;
    animation: dl-stripes 1s linear infinite;
}
.dl-progress.is-done .dl-fill {
    background: linear-gradient(90deg, #22C55E, #15803D);
}
.dl-progress.is-done .dl-state { color: #15803D; }
.dl-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 18px;
    margin-top: 10px;
    font-family: var(--font-label);
    font-size: 13.5px;
    color: var(--muted);
}
.dl-stats .dl-state {
    color: var(--blue-700);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.dl-stats span:empty { display: none; }
#dl-speed { color: var(--ink); font-weight: 600; }
#dl-eta { margin-left: auto; }
@keyframes dl-stripes {
    to { background-position: 40px 0; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 88px 0; }
.section-alt {
    background:
        radial-gradient(900px 300px at 85% 0%, rgba(59, 130, 246, .07), transparent 70%),
        var(--bg-alt);
}

.section-head {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 52px;
}
.section-head-left { text-align: left; margin-left: 0; }
.eyebrow {
    font-family: var(--font-label);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin: 0 0 10px;
}
.section-head h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    margin: 0 0 14px;
}
.section-sub { color: var(--muted); font-size: 17px; margin: 0; }

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.step-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.step-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 46px;
    line-height: 1;
    color: rgba(37, 99, 235, .14);
    letter-spacing: -.03em;
    margin-bottom: 14px;
}
.step-card h3 { font-size: 19.5px; margin: 0 0 8px; }
.step-card p { font-size: 15.5px; margin: 0; color: var(--body); }

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #E8F0FE, #D8E7FD);
    color: var(--blue-600);
    margin-bottom: 16px;
}
.feature h3 { font-size: 18.5px; margin: 0 0 7px; }
.feature p { font-size: 15px; margin: 0; }

/* FAQ */
.faq-preview {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 60px;
    align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 17px 20px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16.5px;
    color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    flex: none;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--blue-600);
    background: var(--blue-50);
    border-radius: 8px;
    transition: transform .2s ease;
}
.faq-item[open] summary::after {
    content: "\2212";
    transform: rotate(180deg);
}
.faq-item p {
    padding: 0 20px 18px;
    margin: 0;
    font-size: 15.5px;
    color: var(--body);
}

.faq-page { max-width: 820px; }
.faq-group h2 {
    font-size: 24px;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.faq-group:first-child h2 { margin-top: 0; }

/* CTA band */
.cta-band {
    background:
        radial-gradient(800px 400px at 50% -30%, #1D3E72 0%, transparent 70%),
        linear-gradient(180deg, var(--navy-800), var(--navy-900));
    padding: 76px 0;
    text-align: center;
}
.cta-inner h2 {
    color: #fff;
    font-size: clamp(26px, 3.2vw, 36px);
    margin: 0 0 10px;
}
.cta-inner p { color: #A9BAD3; font-size: 17px; margin: 0 0 26px; }

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.page-head {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(96, 165, 250, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, .045) 1px, transparent 1px),
        radial-gradient(900px 380px at 15% -20%, #1A3A6E 0%, transparent 60%),
        linear-gradient(180deg, var(--navy-800), #0C2140);
    background-size: 44px 44px, 44px 44px, auto, auto;
    padding: 68px 0 72px;
    color: #fff;
}
.page-head h1 {
    color: #fff;
    font-size: clamp(32px, 4.6vw, 48px);
    margin: 0 0 14px;
    max-width: 720px;
}
.page-head p {
    color: #A9BAD3;
    max-width: 620px;
    font-size: 18px;
    margin: 0;
}
.eyebrow-light { color: var(--blue-400); }

.page-head-404 { text-align: center; padding: 84px 0 96px; }
.page-head-404 h1.giant {
    font-size: clamp(90px, 16vw, 150px);
    font-weight: 800;
    letter-spacing: -.04em;
    background: linear-gradient(180deg, var(--blue-300), rgba(37, 99, 235, .25));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 auto 8px;
}
.page-head-404 h2 { color: #fff; font-size: 26px; margin: 0 0 12px; }
.page-head-404 p { margin: 0 auto 8px; }
.head-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Prose */
.prose { font-size: 17.5px; line-height: 1.75; }
.prose .lead { font-size: 20px; color: #26405F; line-height: 1.6; }
.prose h2 {
    font-size: 26px;
    margin: 42px 0 12px;
}
.prose h2:first-of-type { margin-top: 28px; }
.prose p { margin: 0 0 16px; }
.prose a { font-weight: 600; }
.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}
.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue-600);
    font-weight: 700;
}
.muted-note {
    color: var(--muted);
    font-size: 14.5px;
    margin-top: 26px;
}

/* How it works page */
.step-list { display: flex; flex-direction: column; gap: 40px; }
.step-row {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 22px;
    align-items: start;
}
.step-row .step-num {
    font-size: 42px;
    margin: 0;
    padding-top: 2px;
}
.step-row h2 { font-size: 25px; margin: 0 0 10px; }
.step-row p { font-size: 16.5px; margin: 0 0 10px; }

.timeline {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    counter-reset: step;
}
.timeline li {
    position: relative;
    padding-left: 58px;
    margin-bottom: 28px;
    counter-increment: step;
}
.timeline li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--white);
    border: 1.5px solid var(--blue-200, #BFDBFE);
    color: var(--blue-700);
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 14px;
}
.timeline li::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 42px;
    bottom: -24px;
    width: 2px;
    background: linear-gradient(180deg, #BFDBFE, transparent);
}
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 18.5px; margin: 6px 0 6px; }
.timeline p { margin: 0; font-size: 15.5px; }

.help-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.help-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
}
.help-item h3 { font-size: 17px; margin: 0 0 7px; }
.help-item p { font-size: 15px; margin: 0; }

/* About */
.about-stats {
    display: flex;
    gap: 16px;
    margin: 38px 0 26px;
}
.stat {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 16px;
    text-align: center;
}
.stat strong {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: var(--blue-600);
    letter-spacing: -.02em;
    line-height: 1.1;
}
.stat span {
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.45fr .85fr;
    gap: 40px;
    align-items: start;
    max-width: 1060px;
}

.section-tight { padding: 56px 0; }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1060px;
    margin: 0 auto;
}
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #BFDBFE;
    text-decoration: none;
}
.cc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #E8F0FE, #D8E7FD);
    color: var(--blue-600);
    margin-bottom: 12px;
}
.cc-label {
    font-family: var(--font-label);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.contact-card strong {
    font-size: 17px;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.contact-card .cc-email { font-size: 15px; }
.cc-sub { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.guide-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px 34px 26px;
    box-shadow: var(--shadow-sm);
}
.guide-card .timeline { margin: 0; }
.guide-card .timeline h3 { font-size: 19px; }
.guide-card .timeline p { font-size: 15.5px; }
.guide-card .check-list {
    margin: 8px 0 6px;
    font-size: 15px;
}
.guide-note {
    margin-top: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--blue-50);
    border: 1px solid #BFDBFE;
    color: #1E3A8A;
    font-size: 14.5px;
    line-height: 1.55;
}

.form-title { font-size: 24px; margin: 0 0 4px; }
.form-sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.side-link {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 14.5px;
    overflow-wrap: anywhere;
}

.footer-contact {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-contact a { color: #9AAECB; font-size: 14.5px; }
.footer-contact a:hover { color: #fff; }

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.field { display: block; margin-bottom: 18px; }
.field > span {
    display: block;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #43557A;
    margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: var(--font-head);
    font-size: 16px;
    color: var(--ink);
    background: #FAFCFF;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .13);
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}
.contact-form .btn { margin-top: 4px; }

.flash {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 22px;
    border: 1px solid transparent;
}
.flash-ok { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.flash-err { background: #FEF2F2; color: #B42318; border-color: #FECACA; }

.contact-side .side-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 16px;
}
.side-card h3 { font-size: 17px; margin: 0 0 7px; }
.side-card p { font-size: 14.5px; margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--navy-900);
    color: #94A7C4;
    padding: 64px 0 28px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}
.brand-light { color: #fff; }
.brand-light:hover { text-decoration: none; }
.footer-brand p {
    margin-top: 14px;
    max-width: 300px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #8CA0BF;
}
.footer-col h4 {
    color: #fff;
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 4px 0 16px;
}
.footer-col a {
    display: block;
    color: #9AAECB;
    font-size: 15px;
    margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 46px;
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    font-size: 13px;
    color: #6E82A3;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .steps, .features { grid-template-columns: 1fr 1fr; }
    .faq-preview { grid-template-columns: 1fr; gap: 28px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero { padding: 64px 0 80px; }
}

@media (max-width: 760px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: #fff;
        padding: 14px 24px 20px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 30px -20px rgba(11, 27, 51, .25);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 11px 6px; font-size: 16px; }
    .nav-links a.is-active::after { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    .link-form { flex-direction: column; }
    .input-wrap { height: 54px; }
    .link-form .btn { width: 100%; }

    .steps, .features, .help-list, .field-row { grid-template-columns: 1fr; }
    .result-main { align-items: flex-start; }
    .result-cover { width: 64px; height: 64px; }
    .result-title { font-size: 18.5px; }
    .result-actions .btn { flex: 1; }

    .section { padding: 64px 0; }
    .step-row { grid-template-columns: 1fr; gap: 6px; }
    .step-row .step-num { font-size: 34px; }

    .about-stats { flex-direction: column; }
    .contact-form-card { padding: 24px 20px; }
    .contact-cards { grid-template-columns: 1fr; }
    .guide-card { padding: 24px 20px 18px; }
    .guide-card .timeline li { padding-left: 50px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom { flex-direction: column; }
    .page-head { padding: 52px 0 58px; }
    .page-head p { font-size: 16.5px; }
    .hero-sub { font-size: 17px; }
    .search-card { padding: 16px; border-radius: 18px; }
}

@media (max-width: 460px) {
    .container { width: min(100% - 32px, var(--container)); }
    .hero h1 { font-size: 34px; }
    .hero-badge { font-size: 11.5px; padding: 7px 13px; letter-spacing: .1em; }
    .hero-tags { gap: 8px 16px; font-size: 13px; }
    .result-cover { display: none; }
    .paste-btn { padding: 0 11px; font-size: 12px; }
    .input-wrap { padding-right: 84px; }
}
