/* =========================================
   Demo pages — shared styles
   /demo/antenna · /demo/telco · /demo/defense · /demo/medical · …
   Inter / zinc base · academic-publication feel
   da-* = demo-anything (shared)
========================================= */

.da-hero,
.da-section,
.da-cta {
    width: 100%;
    font-family: 'Inter', 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: #27272a;
}

.da-hero *, .da-section *, .da-cta * { font-family: inherit; }

.da-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* ── Hero ───────────────────────────────── */
.da-hero {
    position: relative;
    padding: 112px 0 80px;
    color: #fafafa;
    background: #0a0a0c;
    border-bottom: 1px solid #18181b;
    overflow: hidden;
}

.da-hero .da-container { max-width: 880px; }

.da-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #a1a1aa;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.da-hero-eyebrow i { font-size: 14px; }

.da-hero-h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -1.2px;
    color: #ffffff;
    margin: 0 0 24px;
    font-family: 'Inter', 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
.da-hero-h1 em { font-style: italic; font-weight: 500; }
.da-hero-h1 sub { font-size: 0.6em; font-weight: 500; }

.da-hero-lede {
    font-size: 16px;
    line-height: 1.72;
    color: rgba(255,255,255,0.78);
    max-width: 740px;
    margin: 0 0 36px;
}
.da-hero-lede em { font-style: italic; color: rgba(255,255,255,0.92); }

.da-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────── */
.da-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 148px;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 150ms ease;
}

.da-btn--primary {
    background: #ffffff;
    color: #18181b;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.12);
}
.da-btn--primary:hover { background: #f4f4f5; color: #18181b; }

.da-btn--ghost {
    background: transparent;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
}
.da-btn--ghost:hover { background: rgba(255,255,255,0.08); color: #ffffff; }

.da-section .da-btn--primary,
.da-cta .da-btn--primary {
    background: #18181b;
    color: #ffffff;
}
.da-section .da-btn--primary:hover,
.da-cta .da-btn--primary:hover { background: #27272a; color: #ffffff; }

.da-section .da-btn--ghost,
.da-cta .da-btn--ghost {
    background: #ffffff;
    color: #18181b;
    box-shadow: inset 0 0 0 1px #e4e4e7;
}
.da-section .da-btn--ghost:hover,
.da-cta .da-btn--ghost:hover { background: #fafafa; color: #18181b; }

/* ── Sections ───────────────────────────── */
.da-section {
    padding: 96px 0;
    background: #ffffff;
}
.da-section--alt  { background: #fafafa; }
.da-section--dark {
    background: #0a0a0c;
    color: #fafafa;
}
.da-section--dark .da-h2 { color: #ffffff; }
.da-section--dark .da-section-sub { color: rgba(255,255,255,0.72); }

.da-section-head {
    max-width: 820px;
    margin: 0 0 48px;
}

.da-kicker {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #71717a;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-feature-settings: 'tnum';
}
.da-kicker--light { color: #a1a1aa; }

.da-h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.6px;
    color: #18181b;
    margin: 0 0 16px;
}
.da-h2 em { font-style: italic; font-weight: 500; }
.da-h2--light { color: #ffffff; }

.da-section-sub {
    font-size: 15.5px;
    line-height: 1.72;
    color: #52525b;
    margin: 0;
}
.da-section-sub--light { color: rgba(255,255,255,0.72); }

/* ── Spec grid (academic key/value list) ── */
.da-spec-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    border-top: 1px solid #e4e4e7;
}
@media (max-width: 720px) {
    .da-spec-grid { grid-template-columns: 1fr; }
}
.da-spec {
    display: contents;
}
.da-spec-label,
.da-spec-value {
    padding: 16px 0;
    border-bottom: 1px solid #e4e4e7;
}
.da-spec-label {
    font-size: 13px;
    font-weight: 600;
    color: #18181b;
    letter-spacing: -0.1px;
    padding-right: 28px;
}
.da-spec-value {
    font-size: 14.5px;
    color: #3f3f46;
    line-height: 1.6;
}
.da-spec-value em { font-style: italic; }
@media (max-width: 720px) {
    .da-spec-label { padding-bottom: 4px; border-bottom: none; }
    .da-spec-value { padding-top: 0; }
}

/* ── Results table ──────────────────────── */
.da-results-table {
    margin-top: 32px;
}
.da-results-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    font-size: 13.5px;
}
.da-results-table th,
.da-results-table td {
    text-align: right;
    padding: 10px 16px;
    border-bottom: 1px solid #e4e4e7;
}
.da-results-table th:first-child,
.da-results-table td:first-child {
    text-align: left;
    font-weight: 600;
}
.da-results-table thead th {
    font-weight: 600;
    color: #18181b;
    border-bottom: 2px solid #18181b;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    background: transparent;
}
.da-results-table tbody td {
    color: #3f3f46;
}
.da-results-note {
    margin-top: 14px;
    font-size: 12.5px;
    color: #71717a;
    font-style: italic;
}
.da-results-note em { font-style: italic; }

/* ── Spec grid · dark variant ──────────── */
.da-section--dark .da-spec-grid,
.da-spec-grid--dark {
    border-top-color: rgba(255,255,255,0.14);
}
.da-section--dark .da-spec-label,
.da-spec-grid--dark .da-spec-label {
    color: #ffffff;
    border-bottom-color: rgba(255,255,255,0.14);
}
.da-section--dark .da-spec-value,
.da-spec-grid--dark .da-spec-value {
    color: rgba(255,255,255,0.76);
    border-bottom-color: rgba(255,255,255,0.14);
}
.da-section--dark .da-spec-value code,
.da-spec-grid--dark .da-spec-value code {
    background: rgba(255,255,255,0.08);
    color: #f5f5f7;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12.5px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* ── Chain equations ────────────────────── */
.da-chain-equations {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 8px 20px;
    align-items: baseline;
    padding: 24px 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
}
.da-chain-equations > div { display: contents; }
.da-chain-equations span {
    font-family: 'STIX Two Text', 'STIXGeneral', Cambria, serif;
    font-size: 16px;
    color: #00d4ff;
    font-style: italic;
    text-align: right;
}
.da-chain-equations code {
    font-family: 'STIX Two Text', 'STIXGeneral', Cambria, serif;
    font-size: 16px;
    color: rgba(255,255,255,0.92);
    background: transparent;
    padding: 0;
}

/* ── Limits list ────────────────────────── */
.da-limits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 20px;
}
.da-limits li {
    padding: 22px 26px;
    background: #fafafa;
    border-left: 3px solid #d4d4d8;
    border-radius: 0 6px 6px 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: #3f3f46;
}
.da-limits li strong {
    color: #18181b;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}
.da-limits li em { font-style: italic; }

/* ── Side-by-side figures ─────────────── */
.da-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.da-figure {
    position: relative;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    overflow: hidden;
}

.da-figure img,
.da-figure video {
    width: 100%;
    height: auto;
    display: block;
    padding: 12px;
}

.da-figure figcaption {
    padding: 14px 18px;
    font-size: 13px;
    color: #52525b;
    background: #fafafa;
    border-top: 1px solid #e4e4e7;
    font-style: italic;
}

.da-figure--wide { grid-column: 1 / -1; }

/* ── Chart ──────────────────────────────── */
.da-chart-wrap {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 24px;
}
.da-chart-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Modal grid ─────────────────────────── */
.da-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 980px) {
    .da-modal-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
    .da-modal-grid .da-figure--wide { grid-column: auto; }
}

.da-math {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    color: #18181b;
    border-radius: 6px;
    font-family: 'STIX Two Text', 'STIXGeneral', 'Computer Modern', Cambria, serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: auto;
}
.da-math code {
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    white-space: nowrap;
}

/* ── Use-case grid ─────────────────────── */
.da-uses {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1080px) { .da-uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .da-uses { grid-template-columns: 1fr; } }

.da-use {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    padding: 22px;
}
.da-use i {
    font-size: 22px;
    color: #18181b;
    margin-bottom: 12px;
    display: block;
}
.da-use h4 {
    font-size: 15px;
    font-weight: 700;
    color: #18181b;
    margin: 0 0 6px;
}
.da-use p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #52525b;
    margin: 0;
}

/* ── CTA ────────────────────────────────── */
.da-cta {
    padding: 96px 0;
    background: #0a0a0c;
    color: #fafafa;
    text-align: center;
}

.da-cta-h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -1px;
    color: #ffffff;
    margin: 0 0 14px;
}

.da-cta-sub {
    font-size: 16.5px;
    line-height: 1.65;
    color: rgba(255,255,255,0.72);
    max-width: 640px;
    margin: 0 auto 36px;
}

.da-cta-buttons {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Responsive ────────────────────────── */
@media (max-width: 720px) {
    .da-hero { padding: 80px 0 56px; }
    .da-hero-h1 { font-size: 32px; letter-spacing: -0.6px; }
    .da-hero-lede { font-size: 14.5px; }
    .da-section { padding: 64px 0; }
    .da-h2 { font-size: 24px; letter-spacing: -0.4px; }
    .da-side-by-side { grid-template-columns: 1fr; gap: 20px; }
    .da-math { font-size: 14px; padding: 16px 18px; }
    .da-results-table table { font-size: 12px; }
    .da-results-table th, .da-results-table td { padding: 8px 10px; }
    .da-cta { padding: 64px 0; }
    .da-cta-h2 { font-size: 24px; }
}
