/* ───────────────────────── Design tokens ─────────────────────────
   Ink Navy   #0A1F44  – primary surfaces, nav, headings on light bg
   Deep Navy  #081A38  – darkest surfaces (hero, footer)
   Warm Gold  #D4AF37  – single accent: CTAs, underlines, small marks
   Porcelain  #F6F4EF  – light section background (warm off-white, not the
                         AI-cliché cream #F4F1EA — slightly cooler & greyer)
   Paper      #FFFFFF  – cards / raised panels on porcelain
   Slate      #57606F  – secondary text
   Line       rgba(10,31,68,.12) – hairline borders on light surfaces
------------------------------------------------------------------- */
:root {
    --ink: #0A1F44;
    --ink-deep: #081A38;
    --gold: #D4AF37;
    --gold-soft: #E8CD7A;
    --porcelain: #F6F4EF;
    --paper: #FFFFFF;
    --slate: #57606F;
    --line: rgba(10, 31, 68, .12);
    --line-on-dark: rgba(255, 255, 255, .14);

    --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;

    color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.01em;
}

p { margin: 0; }

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

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

::selection { background: var(--gold-soft); color: var(--ink-deep); }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.df-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.df-section { padding: 96px 0; }
.df-section-tight { padding: 64px 0; }

@media (max-width: 720px) {
    .df-section { padding: 64px 0; }
    .df-section-tight { padding: 44px 0; }
}

/* ───────────────────────── Buttons ───────────────────────── */

.df-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.df-btn-gold { background: var(--gold); color: var(--ink-deep); }
.df-btn-gold:hover { transform: translateY(-1px); background: var(--gold-soft); }

.df-btn-ghost-light { background: transparent; color: #fff; border-color: var(--line-on-dark); }
.df-btn-ghost-light:hover { border-color: var(--gold); color: var(--gold-soft); }

.df-btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.df-btn-ghost-dark:hover { border-color: var(--ink); }

/* ───────────────────────── Nav ───────────────────────── */

.df-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 244, 239, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.df-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.df-brand { display: flex; align-items: center; gap: 10px; }
.df-brand-mark { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; }
.df-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); }

.df-nav-links { display: flex; align-items: center; gap: 36px; }
.df-nav-links a { font-size: 15px; font-weight: 500; color: var(--ink); opacity: .78; transition: opacity .15s ease; }
.df-nav-links a:hover { opacity: 1; }

.df-nav-actions { display: flex; align-items: center; gap: 18px; }

@media (max-width: 860px) {
    .df-nav-links { display: none; }
}

/* ───────────────────────── Hero ───────────────────────── */

.df-hero {
    background: radial-gradient(120% 140% at 18% 0%, #0F2A57 0%, var(--ink-deep) 62%);
    color: #fff;
    padding: 76px 0 0;
    overflow: clip;
}

.df-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    gap: 56px;
    align-items: center;
    padding-bottom: 64px;
}

@media (max-width: 980px) {
    .df-hero-grid { grid-template-columns: 1fr; padding-bottom: 40px; }
}

.df-eyebrow-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gold-soft);
    font-weight: 600;
    margin-bottom: 22px;
}
.df-eyebrow-line .df-rule { width: 28px; height: 1px; background: var(--gold-soft); }

.df-hero h1 {
    font-size: clamp(34px, 4.6vw, 58px);
    max-width: 15ch;
    color: #fff;
}

.df-hero-sub {
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .74);
    max-width: 46ch;
}

.df-hero-ctas { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.df-hero-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line-on-dark);
}
.df-cap {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .62);
    display: flex;
    align-items: center;
    gap: 8px;
}
.df-cap::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex: none;
}

/* ── Hero product panel: an illustrative, not-literal, mockup ── */

.df-panel-wrap {
    position: relative;
    animation: df-panel-rise .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes df-panel-rise {
    from { opacity: 0; transform: translateY(18px) rotate(0deg); }
    to   { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); }
}

.df-panel {
    --tilt: -2.4deg;
    background: #fff;
    color: var(--ink);
    border-radius: 10px;
    box-shadow: 0 30px 70px -20px rgba(3, 10, 26, .55);
    padding: 20px 22px 22px;
    transform: rotate(var(--tilt));
    width: 100%;
    max-width: 420px;
    margin-left: auto;
}

.df-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}
.df-panel-head-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.df-panel-head-tag {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink);
    background: #EFE3B8;
    padding: 3px 9px;
    border-radius: 20px;
}

.df-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
}
.df-panel-row:last-of-type { border-bottom: none; }
.df-panel-row-name { font-weight: 600; }
.df-panel-row-sub { color: var(--slate); font-size: 12px; margin-top: 2px; }
.df-panel-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
}
.df-panel-chip-ok { background: #DCEFE1; color: #1E7A44; }
.df-panel-chip-wait { background: #FBEACB; color: #9A6A16; }

.df-panel-float {
    position: absolute;
    background: #fff;
    color: var(--ink);
    border-radius: 8px;
    box-shadow: 0 18px 40px -14px rgba(3, 10, 26, .45);
    padding: 12px 14px;
    right: -18px;
    bottom: -26px;
    width: 208px;
    transform: rotate(2deg);
}
.df-panel-float-label { font-size: 11px; color: var(--slate); font-weight: 600; }
.df-panel-float-value { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 2px; }
.df-panel-float-note { font-size: 11.5px; color: #1E7A44; margin-top: 3px; font-weight: 600; }

@media (max-width: 980px) {
    .df-panel { margin: 0 auto; }
    .df-panel-float { right: 6px; }
}

/* ───────────────────────── Marquee / capability strip ───────────────────────── */

.df-strip {
    background: var(--ink-deep);
    border-top: 1px solid var(--line-on-dark);
}

/* ───────────────────────── Narrative ───────────────────────── */

.df-narrative {
    background: var(--porcelain);
}
.df-narrative-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 860px) {
    .df-narrative-grid { grid-template-columns: 1fr; gap: 28px; }
}
.df-narrative h2 { font-size: clamp(26px, 3vw, 36px); max-width: 12ch; }
.df-narrative-copy p { font-size: 17px; line-height: 1.7; color: var(--slate); max-width: 60ch; }
.df-narrative-copy p + p { margin-top: 16px; }
.df-narrative-copy strong { color: var(--ink); font-weight: 600; }

/* ───────────────────────── Section headers ───────────────────────── */

.df-section-head { max-width: 640px; margin-bottom: 52px; }
.df-section-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.df-section-head p { margin-top: 16px; font-size: 17px; color: var(--slate); line-height: 1.6; }

/* ───────────────────────── Bento feature grid ───────────────────────── */

.df-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 148px;
    gap: 18px;
}
@media (max-width: 980px) {
    .df-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; }
}
@media (max-width: 560px) {
    .df-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
}

.df-tile {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    transition: border-color .16s ease;
}
.df-tile:hover { border-color: var(--ink); }

.df-tile-lg { grid-column: span 2; grid-row: span 2; }
.df-tile-md { grid-column: span 2; grid-row: span 1; }
@media (max-width: 980px) {
    .df-tile-lg { grid-column: span 2; grid-row: span 2; }
    .df-tile-md { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 560px) {
    .df-tile-lg, .df-tile-md { grid-column: span 1; grid-row: span 1; min-height: 168px; }
}

/* Icon sits in normal flow above the heading, never overlapping it. The
   spacer below absorbs the tile's extra height so the text block still
   settles toward the bottom on tall (df-tile-lg) tiles. */
.df-tile-mark {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.df-tile-mark svg { width: 17px; height: 17px; }

.df-tile-spacer { flex: 1 1 auto; min-height: 10px; }

.df-tile h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.df-tile-lg h3 { font-size: 23px; }
.df-tile p { font-size: 14.5px; color: var(--slate); line-height: 1.55; max-width: 34ch; }

/* ───────────────────────── How it works (real sequence) ───────────────────────── */

.df-steps { background: var(--ink-deep); color: #fff; }
.df-steps .df-section-head p { color: rgba(255,255,255,.66); }
.df-steps .df-section-head h2 { color: #fff; }

.df-steps-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line-on-dark);
}
@media (max-width: 860px) {
    .df-steps-list { grid-template-columns: 1fr; }
}

.df-step {
    padding: 30px 26px 30px 0;
    border-right: 1px solid var(--line-on-dark);
}
.df-step:last-child { border-right: none; }
@media (max-width: 860px) {
    .df-step { border-right: none; border-bottom: 1px solid var(--line-on-dark); padding: 26px 0; }
    .df-step:last-child { border-bottom: none; }
}

.df-step-num {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--gold-soft);
    margin-bottom: 14px;
}
.df-step h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.df-step p { font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.55; }

/* ───────────────────────── Pricing ───────────────────────── */

.df-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}
@media (max-width: 980px) {
    .df-pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .df-pricing-grid { grid-template-columns: 1fr; }
}

.df-plan {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    background: var(--paper);
}
.df-plan-featured {
    background: var(--ink-deep);
    border-color: var(--ink-deep);
    color: #fff;
}
.df-plan-featured .df-plan-limits li,
.df-plan-featured .df-plan-tagline { color: rgba(255,255,255,.68); }
.df-plan-featured .df-plan-price-sub { color: rgba(255,255,255,.54); }

.df-plan-badge {
    align-self: flex-start;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--ink-deep);
    background: var(--gold);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.df-plan-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.df-plan-tagline { font-size: 13.5px; color: var(--slate); margin-top: 6px; min-height: 34px; }

.df-plan-price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; }
.df-plan-price-amount { font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.df-plan-price-sub { font-size: 13px; color: var(--slate); }

.df-plan-limits {
    list-style: none;
    padding: 20px 0 0;
    margin: 20px 0 0;
    border-top: 1px solid var(--line);
    flex: 1;
}
.df-plan-featured .df-plan-limits { border-top-color: var(--line-on-dark); }
.df-plan-limits li {
    font-size: 13.5px;
    color: var(--slate);
    padding: 7px 0;
    line-height: 1.4;
}
.df-plan-limits li strong { color: inherit; font-weight: 600; }
.df-plan-featured .df-plan-limits li strong { color: #fff; }

.df-plan .df-btn { margin-top: 22px; width: 100%; justify-content: center; }

/* ───────────────────────── FAQ (MudBlazor expansion panels, restyled) ───────────────────────── */

.df-faq-wrap { max-width: 760px; }

.df-faq .mud-expand-panel {
    border: none !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: none !important;
    background: transparent !important;
}
.df-faq .mud-expand-panel:first-of-type { border-top: 1px solid var(--line) !important; }
.df-faq .mud-expand-panel-header { padding: 22px 4px !important; min-height: unset !important; }
.df-faq .mud-expand-panel-text {
    font-family: var(--font-body) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
}
.df-faq .mud-expand-panel-content .mud-expand-panel-content-wrapper { padding: 0 4px 22px !important; }
.df-faq .df-faq-answer { font-size: 15.5px; color: var(--slate); line-height: 1.65; max-width: 62ch; }

/* ───────────────────────── Final CTA ───────────────────────── */

.df-cta {
    background: radial-gradient(120% 160% at 82% 100%, #0F2A57 0%, var(--ink-deep) 60%);
    color: #fff;
    text-align: left;
}
.df-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.df-cta h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 16ch; color: #fff; }
.df-cta p { margin-top: 14px; color: rgba(255,255,255,.68); font-size: 16px; max-width: 46ch; }
.df-cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ───────────────────────── Footer ───────────────────────── */

.df-footer { background: var(--ink-deep); color: rgba(255,255,255,.6); border-top: 1px solid var(--line-on-dark); }
.df-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding: 64px 0 40px;
}
@media (max-width: 780px) {
    .df-footer-grid { grid-template-columns: 1fr 1fr; }
}
.df-footer-brand-row { display: flex; align-items: center; gap: 10px; }
.df-footer-brand { color: #fff; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.df-footer-tag { margin-top: 12px; font-size: 14px; line-height: 1.6; max-width: 30ch; }
.df-footer-col h5 { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.df-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.df-footer-col a { font-size: 14.5px; }
.df-footer-col a:hover { color: #fff; }
.df-footer-bottom {
    border-top: 1px solid var(--line-on-dark);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ───────────────────────── 404 ───────────────────────── */

.df-404 { max-width: 520px; margin: 120px auto; text-align: center; padding: 0 24px; }
.df-404-eyebrow { font-family: var(--font-display); font-size: 15px; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.df-404 h1 { font-size: 30px; margin-bottom: 12px; }
.df-404 p { color: var(--slate); font-size: 15.5px; margin-bottom: 26px; }
