/* The introduction uses quieter surfaces and a product-first layout. */
:root {
    --intro-bg: #fafbfd;
    --intro-surface: #ffffff;
    --intro-soft: #f1f4f8;
    --intro-text: #16202e;
    --intro-muted: #5c6878;
    --intro-border: #e2e7ed;
    --intro-blue: #2264e5;
}
.dark {
    --intro-bg: #0b1018;
    --intro-surface: #101722;
    --intro-soft: #151f2c;
    --intro-text: #eef2f7;
    --intro-muted: #9ba8ba;
    --intro-border: #243040;
    --intro-blue: #75a4ff;
}
html { scroll-padding-top: 88px; }
.nf-header {
    background: var(--intro-bg) !important;
    border-bottom: 1px solid var(--intro-border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.nf-header .nf-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 32px;
}
.nf-header-logo img { width: 132px; height: auto; }
.nf-header-nav { display: flex; gap: 26px; margin: 0 auto; }
.nf-header-nav a {
    color: var(--intro-muted);
    font-size: 13px;
    font-weight: 550;
    white-space: nowrap;
    transition: color 160ms ease;
}
.nf-header-nav a:hover { color: var(--intro-blue); }
.nf-header-actions { display: flex; align-items: center; gap: 12px; }
.nf-header .language-switcher {
    border: 0;
    background: transparent;
    box-shadow: none;
}
.nf-header .language-trigger { width: 60px; min-width: 60px; min-height: 44px; padding: 10px 6px; font-weight: 600; }
.nf-header #theme-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--intro-muted);
}
.nf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease;
}
.nf-button--primary { background: #2264e5; color: #fff; }
.nf-button--primary:hover { background: #1855cb; }
.nf-button--secondary { background: transparent; border-color: var(--intro-border); color: var(--intro-text); }
.nf-button--secondary:hover { background: var(--intro-soft); border-color: var(--intro-muted); }
.nf-button--header { min-height: 40px; padding: 10px 16px; font-size: 13px; white-space: nowrap; }
.nf-button:focus-visible,
.nf-product-tab:focus-visible,
.nf-screenshot img:focus-visible { outline: 3px solid var(--intro-blue); outline-offset: 4px; }
.nf-hero,
.nf-product { background: var(--intro-bg); color: var(--intro-text); position: relative; }
.nf-hero { margin-top: 76px; padding: 56px 0 0; overflow: hidden; }
#tma-open-hint:not(.hidden) { margin-top: 76px; }
#tma-open-hint:not(.hidden) + .nf-hero { margin-top: 0; }
.nf-hero-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.nf-eyebrow { color: var(--intro-blue); font-size: 11px; line-height: 1.5; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.nf-hero-title { margin: 22px 0 24px; font-size: clamp(44px, 4.35vw, 64px); line-height: 1.055; letter-spacing: -.045em; font-weight: 650; }
.nf-hero-title span { display: block; }
.nf-hero-title .nf-title-brand { margin-top: 4px; color: var(--intro-blue); }
.nf-hero-description { max-width: 420px; color: var(--intro-muted); font-size: 17px; line-height: 1.65; letter-spacing: 0; }
.nf-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.nf-access-note { margin-top: 16px; color: var(--intro-muted); font-size: 12px; line-height: 1.5; }
.nf-hero-visual { position: relative; min-width: 0; padding: 8px 0; }
.nf-hero-visual::before {
    content: "";
    position: absolute;
    inset: -56px -80px;
    background: radial-gradient(ellipse at center, rgba(60, 123, 240, .095), transparent 68%);
    pointer-events: none;
}
.nf-terminal-frame { position: relative; overflow: hidden; border: 1px solid var(--intro-border); border-radius: 14px; background: var(--intro-surface); box-shadow: 0 20px 48px -28px rgba(22, 38, 66, .35); }
.nf-frame-bar { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 10px 16px; border-bottom: 1px solid var(--intro-border); color: var(--intro-muted); font-size: 11px; }
.nf-frame-dots { display: flex; gap: 4px; }
.nf-frame-dots i { width: 5px; height: 5px; background: var(--intro-border); border-radius: 50%; }
.nf-frame-label { margin-left: auto; padding: 3px 7px; border-radius: 4px; background: var(--intro-soft); font-size: 10px; }
.nf-screenshot { position: relative; overflow: hidden; background: var(--intro-soft); }
.nf-screenshot img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.nf-hero-screenshot { aspect-ratio: 1.94; }
.nf-hero-screenshot img { object-position: left center; }
.nf-image-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; color: var(--intro-muted); font-size: 14px; }
.nf-screenshot [hidden], .nf-product-panel[hidden] { display: none !important; }
.nf-frame-footer { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-top: 1px solid var(--intro-border); color: var(--intro-muted); font-size: 11px; }
.nf-frame-footer .nf-icon { font-size: 14px; }
.nf-frame-expand { margin-left: auto; color: var(--intro-blue); }
.nf-hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 40px; padding: 24px 0; border-top: 1px solid var(--intro-border); }
.nf-hero-stats { display: flex; gap: 46px; }
.nf-hero-stat dt { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.nf-hero-stat dd { margin-top: 5px; color: var(--intro-muted); font-size: 11px; line-height: 1.5; }
.nf-availability { flex-shrink: 0; }
#capacity-banner,
#capacity-banner-mobile {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--intro-muted) !important;
    font-size: 11px;
    font-weight: 400;
}
#capacity-banner::before, #capacity-banner-mobile::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--intro-blue); }
#capacity-banner.bg-amber-50::before, #capacity-banner-mobile.bg-amber-50::before { background: #b97914; }
#capacity-fill, #capacity-fill-mobile { display: none; }
#capacity-banner-mobile-wrap { display: none; }
.nf-product { padding: 76px 0 88px; border-top: 1px solid var(--intro-border); border-bottom: 1px solid var(--intro-border); background: var(--intro-surface); }
.nf-product-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.nf-product-title { max-width: 570px; margin-top: 14px; font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.nf-product-lead { max-width: 340px; color: var(--intro-muted); font-size: 14px; line-height: 1.65; }
.nf-product-tabs { display: flex; gap: 28px; margin-top: 36px; border-bottom: 1px solid var(--intro-border); }
.nf-product-tab { position: relative; display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 10px 2px; background: none; color: var(--intro-muted); font-size: 14px; font-weight: 550; white-space: nowrap; }
.nf-product-tab[aria-selected="true"] { color: var(--intro-blue); }
.nf-product-tab[aria-selected="true"]::after { position: absolute; content: ""; height: 2px; background: var(--intro-blue); inset: auto 0 -1px; }
.nf-product-panel { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 40px; padding-top: 28px; animation: nf-panel-enter 220ms ease; }
.nf-product-media { aspect-ratio: 1.94; border: 1px solid var(--intro-border); border-radius: 10px; }
.nf-product-media img { object-fit: contain; }
.nf-product-media--risk img { width: 260%; max-width: none; height: auto; position: absolute; right: 0; bottom: 0; }
.nf-product-number { color: var(--intro-blue); font-size: 11px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.nf-product-copy h3 { margin: 14px 0 12px; font-size: 23px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.nf-product-copy p { color: var(--intro-muted); font-size: 14px; line-height: 1.7; }
.nf-product-copy .nf-product-detail { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--intro-border); color: var(--intro-text); font-size: 12px; }
.nf-product-hint { margin-top: 18px; color: var(--intro-muted); font-size: 11px; }
@keyframes nf-panel-enter { from { opacity: .45; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
    .nf-header-nav { gap: 18px; }
    .nf-header .nf-header-row { gap: 20px; }
    .nf-hero-layout { gap: 32px; }
    .nf-hero-actions { gap: 8px; }
    .nf-hero-actions .nf-button { padding: 12px 16px; font-size: 13px; }
    .nf-product-panel { grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; }
    .nf-hero-stats { gap: 32px; }
}
@media (max-width: 900px) {
    .nf-header-nav { display: none; }
    .nf-header-actions { margin-left: auto; }
    .nf-hero { padding-top: 56px; }
    .nf-hero-layout { grid-template-columns: 1fr; gap: 32px; }
    .nf-hero-copy { max-width: 600px; }
    .nf-hero-title { font-size: 56px; }
    .nf-hero-description { max-width: 530px; }
    .nf-hero-visual { padding: 0; }
    .nf-hero-screenshot { aspect-ratio: 1.94; }
    .nf-hero-bottom { margin-top: 36px; }
    .nf-product-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
    .nf-product-lead { max-width: 500px; }
    .nf-product-panel { grid-template-columns: 1fr; gap: 24px; }
    .nf-product-copy { max-width: 540px; }
    .nf-product-copy h3 { margin-top: 8px; }
    .nf-product-copy .nf-product-detail { margin-top: 14px; padding-top: 12px; }
}
@media (max-width: 600px) {
    html { scroll-padding-top: 76px; }
    .nf-header .nf-header-row { height: 64px; gap: 10px; }
    .nf-header-logo img { width: 98px; }
    .nf-header-actions { gap: 4px; }
    .nf-header .language-trigger { width: 48px; min-width: 48px; font-size: 11px; }
    .nf-header #theme-toggle { width: 32px; }
    .nf-button--header { min-height: 36px; padding: 9px 10px; font-size: 11px; border-radius: 7px; }
    .nf-hero { margin-top: 64px; padding-top: 38px; }
    #tma-open-hint:not(.hidden) { margin-top: 64px; }
    .nf-eyebrow { font-size: 10px; letter-spacing: .12em; }
    .nf-hero-title { font-size: clamp(38px, 10.7vw, 52px); margin: 18px 0 20px; }
    .nf-hero-description { font-size: 15px; line-height: 1.65; }
    .nf-hero-actions { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 8px; }
    .nf-hero-actions .nf-button { min-height: 46px; font-size: 14px; }
    .nf-hero-actions .nf-button--secondary { border: 0; min-height: 36px; padding: 6px; }
    .nf-access-note { font-size: 11px; margin-top: 10px; text-align: center; }
    .nf-hero-layout { gap: 28px; }
    .nf-hero-visual::before { inset: -24px; }
    .nf-frame-bar { gap: 8px; padding: 10px 12px; font-size: 10px; min-height: 38px; }
    .nf-frame-dots { display: none; }
    .nf-frame-label { font-size: 9px; }
    .nf-hero-screenshot { aspect-ratio: 1.55; }
    .nf-frame-footer { padding: 10px 12px; font-size: 10px; }
    .nf-hero-bottom { display: block; margin-top: 28px; padding: 24px 0; }
    .nf-hero-stats { display: grid; grid-template-columns: .75fr 1.35fr .9fr; gap: 16px; }
    .nf-hero-stat dt { font-size: 23px; white-space: nowrap; }
    .nf-hero-stat dd { font-size: 10px; max-width: 125px; }
    .nf-availability { margin-top: 20px; }
    #capacity-banner { display: none; }
    #capacity-banner-mobile-wrap { display: block; }
    .nf-product { padding: 44px 0 48px; }
    .nf-product-title { font-size: 31px; max-width: 350px; }
    .nf-product-lead { font-size: 14px; }
    .nf-product-tabs { gap: 0; justify-content: space-between; margin-top: 22px; }
    .nf-product-tab { font-size: 12px; gap: 6px; }
    .nf-product-tab .nf-icon { display: none; }
    .nf-product-panel { padding-top: 20px; gap: 22px; }
    .nf-product-media { aspect-ratio: 1.35; }
    .nf-product-media img { object-fit: cover; object-position: left bottom; }
    .nf-product-media--risk img { width: 370%; }
    .nf-product-copy h3 { font-size: 23px; }
}
@media (max-width: 360px) {
    .nf-header-logo img { width: 84px; }
    .nf-header .language-trigger { width: 44px; min-width: 44px; }
    .nf-header #theme-toggle { width: 28px; }
    .nf-header-actions { gap: 2px; }
    .nf-button--header { padding: 9px 8px; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
    html.scroll-smooth { scroll-behavior: auto; }
    .nf-product-panel { animation: none; }
    .nf-button { transition: none; }
}
