:root {
    --ink: #172033;
    --muted: #5d6b82;
    --line: #d9e2ec;
    --paper: #ffffff;
    --mist: #f4f8fb;
    --shadow: 0 18px 48px rgba(23, 32, 51, 0.12);
    --font-display: "Outfit", Inter, ui-sans-serif, system-ui, sans-serif;
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-hand: "Caveat", cursive;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(1100px 500px at 85% -80px, color-mix(in srgb, var(--accent, #2477c6) 7%, transparent), transparent 70%),
        linear-gradient(180deg, #f7fbfd 0%, #ffffff 36%, #f5f8fb 100%);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
::selection { background: color-mix(in srgb, var(--accent, #2477c6) 22%, white); }

h1, h2, h3, .brand, .button, .eyebrow, .section-kicker, .screen-title, .floating-value {
    font-family: var(--font-display);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(217, 226, 236, 0.85);
    backdrop-filter: blur(18px);
}
.nav {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 24px; color: #536176; font-size: 14px; font-weight: 650; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--accent); transition: right .22s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { right: 0; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 28%, transparent);
    font-size: 14px;
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 36%, transparent); }
.nav-cta:active { transform: scale(0.97); }

.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.94), rgba(255,255,255,0.77) 46%, rgba(255,255,255,0.48)), var(--hero-image) center right / cover no-repeat;
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 88%);
    z-index: -1;
}
.hero-inner {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0 124px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 56px;
    align-items: center;
}
.hero-inner > div:first-child > * { animation: rise-in .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-inner > div:first-child > *:nth-child(2) { animation-delay: .08s; }
.hero-inner > div:first-child > *:nth-child(3) { animation-delay: .16s; }
.hero-inner > div:first-child > *:nth-child(4) { animation-delay: .24s; }
.hero-inner > div:first-child > *:nth-child(5) { animation-delay: .32s; }
.feature-stage { animation: stage-in .9s cubic-bezier(.2,.7,.2,1) .2s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes stage-in { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 11%, white);
    color: color-mix(in srgb, var(--accent) 72%, #172033);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
h1 { margin: 22px 0 18px; font-size: 72px; line-height: 1.0; font-weight: 800; letter-spacing: -0.025em; max-width: 780px; }
.hero-copy { max-width: 640px; color: #425066; font-size: 19px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions.centered { justify-content: center; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 999px;
    font-weight: 750;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:active { transform: scale(0.97); }
.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 36px color-mix(in srgb, var(--accent) 24%, transparent);
}
.button-primary:hover { transform: translateY(-1px); box-shadow: 0 22px 44px color-mix(in srgb, var(--accent) 34%, transparent); }
.button-secondary { background: rgba(255,255,255,0.82); color: var(--ink); border-color: rgba(217,226,236,0.96); }
.button-secondary:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; max-width: 720px; }
.mini-stat { background: rgba(255,255,255,0.82); border: 1px solid rgba(217,226,236,0.9); border-radius: 10px; padding: 14px; min-width: 0; border-top: 3px solid color-mix(in srgb, var(--accent) 55%, white); }
.mini-stat strong { display: block; font-family: var(--font-display); font-size: 16px; line-height: 1.25; margin-bottom: 5px; }
.mini-stat span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }

.feature-stage { position: relative; min-height: 540px; }
.device {
    position: relative;
    border-radius: 30px;
    background: #172033;
    padding: 14px;
    box-shadow: 0 38px 90px rgba(23,32,51,0.32);
    transform: rotate(1.2deg);
}
.device-screen {
    min-height: 500px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(244,248,251,0.96));
    position: relative;
    padding: 22px;
}
.screen-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #e6edf3; position: relative; z-index: 2; }
.screen-title { font-weight: 800; font-size: 15px; }
.screen-subtitle { color: #718096; font-size: 12px; font-weight: 650; }
.screen-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, white); color: color-mix(in srgb, var(--accent) 75%, #172033); padding: 8px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.visual-map { position: absolute; inset: 68px 12px 16px; }
.visual-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual-map path { fill: none; stroke: #c9d8e5; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 7 9; animation: dash-drift 24s linear infinite; }
@keyframes dash-drift { to { stroke-dashoffset: -320; } }
.node {
    position: absolute;
    min-width: 112px;
    border-radius: 16px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(23,32,51,0.16);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse-node 4s ease-in-out infinite;
    z-index: 2;
}
.node.center { left: 50%; top: 47%; transform: translate(-50%, -50%); min-width: 142px; min-height: 76px; border-radius: 22px; justify-content: center; text-align: center; font-size: 15px; background: linear-gradient(135deg, #172033, var(--accent)); }
.node-a { left: 8%; top: 18%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.node-b { right: 5%; top: 16%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); animation-delay: 0.35s; }
.node-c { left: 2%; bottom: 24%; background: linear-gradient(135deg, #7c5cc4, var(--accent)); animation-delay: 0.7s; }
.node-d { right: 6%; bottom: 28%; background: linear-gradient(135deg, #38a169, var(--accent-2)); animation-delay: 1s; }
.node-e { left: 35%; bottom: 8%; background: linear-gradient(135deg, #e7a92e, var(--accent)); animation-delay: 1.25s; }
.floating-card { position: absolute; z-index: 4; background: rgba(255,255,255,0.94); border: 1px solid rgba(217,226,236,0.92); border-radius: 10px; box-shadow: var(--shadow); padding: 14px; }
.top-card { width: 236px; top: -24px; right: -20px; animation: float-drift 7s ease-in-out infinite; }
.bottom-card { width: 206px; left: -24px; bottom: 40px; animation: float-drift 8s ease-in-out 1.2s infinite; }
@keyframes float-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.floating-label { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.floating-value { color: var(--ink); margin-top: 4px; font-size: 15px; font-weight: 800; }
.progress-bar { height: 8px; border-radius: 999px; overflow: hidden; background: #e8eef4; margin-top: 10px; }
.progress-bar span { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
@keyframes pulse-node { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

section { padding: 88px 0; }
.section-inner { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr); gap: 48px; align-items: end; margin-bottom: 34px; }
.section-kicker { color: var(--accent); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
h2 { margin: 8px 0 0; font-size: 46px; line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; }
.section-intro { color: var(--muted); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 8px 24px rgba(23,32,51,0.06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(23,32,51,0.12); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.icon-box { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #ffffff; font-size: 19px; margin-bottom: 18px; }
.feature-card h3, .workflow-step h3, .topic-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.25; }
.feature-card p, .workflow-step p, .topic-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.band { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, white), color-mix(in srgb, var(--accent-2) 8%, white)), #f7fbfd; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 34px; align-items: start; }
.workflow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.workflow-step { position: relative; background: rgba(255,255,255,0.88); border: 1px solid rgba(217,226,236,0.92); border-radius: 12px; padding: 22px; transition: transform .18s ease, box-shadow .18s ease; }
.workflow-step:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23,32,51,0.1); }
.workflow-step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--ink); font-weight: 800; margin-bottom: 18px; }

/* ---- Tutorial (how to use) ---- */
.tutorial-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 40px; align-items: start; }
.tutorial-steps { display: grid; gap: 0; counter-reset: tut; position: relative; }
.tutorial-step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 0 0 30px 0; }
.tutorial-step::before {
    counter-increment: tut;
    content: counter(tut);
    font-family: var(--font-display);
    width: 44px; height: 44px;
    border-radius: 14px;
    display: grid; place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 28%, transparent);
    z-index: 1;
}
.tutorial-step::after {
    content: "";
    position: absolute;
    left: 21px; top: 48px; bottom: 4px;
    width: 2px;
    background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--accent) 45%, var(--line)) 0 6px, transparent 6px 12px);
}
.tutorial-step:last-child { padding-bottom: 0; }
.tutorial-step:last-child::after { display: none; }
.tutorial-step h3 { margin: 8px 0 8px; font-size: 19px; line-height: 1.3; font-family: var(--font-display); }
.tutorial-step p { margin: 0; color: #45536b; font-size: 15px; line-height: 1.7; }
.tutorial-step .step-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 8%, white); border: 1px solid color-mix(in srgb, var(--accent) 18%, white); color: color-mix(in srgb, var(--accent) 70%, #172033); font-size: 13px; font-weight: 700; }
.hand-note {
    font-family: var(--font-hand);
    font-size: 24px;
    line-height: 1.3;
    color: color-mix(in srgb, var(--accent) 75%, #172033);
    transform: rotate(-1.6deg);
    display: block;
    margin-top: 22px;
    max-width: 340px;
}
.hand-note .fa-solid { font-size: 16px; margin-right: 6px; }

.library-preview { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 24px; align-items: stretch; }
.filters-panel, .topics-panel, .note-box { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 10px 30px rgba(23,32,51,0.07); }
.fake-search { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: #738196; font-size: 14px; font-weight: 650; background: #f9fbfd; margin: 16px 0; }
.detail-list, .dense-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.detail-list li, .dense-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: #405069; font-size: 14.5px; }
.detail-list i, .dense-list i { color: var(--accent); margin-top: 4px; }
.dense-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 20px; }
.topic-list { display: grid; gap: 12px; }
.topic-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #ffffff; transition: transform .18s ease, box-shadow .18s ease; }
.topic-card:hover { transform: translateX(4px); box-shadow: 0 12px 26px rgba(23,32,51,0.09); }
.topic-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: white; }
.open-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 9px 12px; background: color-mix(in srgb, var(--accent) 9%, white); color: var(--accent); font-size: 13px; font-weight: 800; white-space: nowrap; }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: 0 8px 24px rgba(23,32,51,0.05); }
.faq-item h3 { margin: 0 0 8px; font-size: 17px; font-family: var(--font-display); }
.faq-item p { margin: 0; color: var(--muted); font-size: 15px; }
.prose-link { color: var(--accent); font-weight: 700; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); transition: border-color .15s ease; }
.prose-link:hover { border-bottom-color: var(--accent); }

/* ---- Related features ---- */
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 8px 24px rgba(23,32,51,0.06); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(23,32,51,0.12); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.related-card .icon-box { margin-bottom: 14px; }
.related-card h3 { margin: 0 0 6px; font-size: 17px; }
.related-card p { margin: 0; color: var(--muted); font-size: 14px; }

.verification-note { padding: 72px 0; }
.source-strip { padding: 26px 0; background: #ffffff; border-top: 1px solid var(--line); }
.source-strip p { margin: 0; color: var(--muted); font-size: 13px; }
.cta-section { padding: 96px 0; background: linear-gradient(135deg, rgba(23,32,51,0.92), color-mix(in srgb, var(--accent) 55%, rgba(23,32,51,0.92))), var(--hero-image) center / cover no-repeat; color: #ffffff; }
.cta-box { width: min(860px, calc(100% - 32px)); margin: 0 auto; text-align: center; }
.cta-box h2 { color: white; }
.cta-box p { color: rgba(255,255,255,0.78); font-size: 18px; margin: 18px auto 30px; max-width: 720px; }
.cta-box .button-secondary { background: rgba(255,255,255,0.12); color: #ffffff; border-color: rgba(255,255,255,0.26); }
.cta-box .button-secondary:hover { background: rgba(255,255,255,0.2); }
footer { padding: 34px 0; background: #ffffff; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { width: min(1160px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 980px) {
    .nav-links { display: none; }
    .hero { min-height: 0; }
    .hero-inner, .section-heading, .library-preview, .workflow-layout, .tutorial-layout { grid-template-columns: 1fr; }
    .hero-inner { padding-top: 64px; }
    .feature-stage { min-height: 500px; }
    .feature-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    h1 { font-size: 56px; }
    h2 { font-size: 38px; }
}
@media (max-width: 660px) {
    .nav { min-height: 64px; }
    .brand span { display: none; }
    .nav-cta { padding: 10px 12px; font-size: 13px; }
    .hero-inner { padding: 42px 0 72px; gap: 32px; }
    .hero-points, .feature-grid, .workflow, .dense-list, .related-grid { grid-template-columns: 1fr; }
    .device { transform: none; padding: 10px; border-radius: 24px; }
    .device-screen { min-height: 430px; padding: 16px; }
    .top-card, .bottom-card { display: none; }
    .node { min-width: 86px; padding: 8px 9px; font-size: 10px; }
    .node.center { min-width: 112px; min-height: 64px; font-size: 12px; }
    .topic-card { grid-template-columns: 40px minmax(0, 1fr); }
    .open-pill { grid-column: 1 / -1; justify-content: center; }
    .tutorial-step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
    section { padding: 64px 0; }
    h1 { font-size: 40px; }
    h2 { font-size: 30px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
