:root {
    --void: #080B10;
    --surface: #0F141C;
    --surface-2: #161D28;
    --surface-3: #1C2531;
    --border: rgba(255, 255, 255, 0.08);
    --border-hi: rgba(255, 255, 255, 0.14);
    --mint: #2FE0B0;
    --mint-dim: #1F9E7C;
    --violet: #8B7EFF;
    --text-hi: #EEF2F4;
    --text-lo: #8A93A3;
    --text-faint: #5B6472;
    --max: 1180px;
    --radius: 8px;
    --shadow: 0 30px 110px rgba(0, 0, 0, 0.48);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--void);
}

body {
    min-width: 320px;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-hi);
    background:
        radial-gradient(circle at 20% 8%, rgba(139, 126, 255, 0.14), transparent 25%),
        radial-gradient(circle at 82% 4%, rgba(47, 224, 176, 0.10), transparent 24%),
        linear-gradient(180deg, var(--void) 0%, var(--surface) 38%, var(--void) 100%);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 50% 0%, black, transparent 72%);
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.serif {
    font-family: 'Fraunces', serif;
}

.ambient-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
}

.page-glow {
    position: fixed;
    inset: -20%;
    z-index: -4;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 20%, rgba(47, 224, 176, 0.14), transparent 32%),
        radial-gradient(circle at 35% 62%, rgba(139, 126, 255, 0.13), transparent 28%),
        radial-gradient(circle at 82% 58%, rgba(47, 224, 176, 0.10), transparent 26%);
    filter: blur(22px);
    animation: auroraDrift 14s ease-in-out infinite alternate;
}

/* HEADER / NAV */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 11, 16, 0.68);
    backdrop-filter: blur(24px) saturate(140%);
}

.nav-shell {
    width: min(var(--max), calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-hi);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--mint), var(--violet));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
}

.nav-links a {
    padding: 8px 12px;
    color: var(--text-lo);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 180ms ease;
}

.nav-links a:hover {
    color: var(--text-hi);
    background: rgba(255, 255, 255, 0.08);
}

.nav-access-btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.94rem;
    border: 1px solid transparent;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, filter 180ms ease;
}

/* one dominant solid CTA per section: mint fill, no gradient */
.btn-primary {
    color: #04211A;
    background: var(--mint);
    box-shadow: 0 18px 44px rgba(47, 224, 176, 0.22);
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

/* secondary CTAs: outline / ghost, never a gradient fill */
.nav-access-btn,
.btn-secondary,
.btn-ghost {
    color: var(--text-hi);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-hi);
    backdrop-filter: blur(18px);
}

.nav-access-btn:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 224, 176, 0.4);
    background: var(--surface-2);
}

.nav-access-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-access-paciente {
    border-color: rgba(139, 126, 255, 0.32);
    color: var(--violet);
}

.nav-access-paciente:hover {
    border-color: rgba(139, 126, 255, 0.5);
    background: var(--surface-2);
}

.nav-access-clinico {
    border-color: rgba(47, 224, 176, 0.32);
    color: var(--mint);
}

.nav-access-clinico:hover {
    border-color: rgba(47, 224, 176, 0.5);
    background: var(--surface-2);
}

/* HERO */

.hero-cinematic {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 96px 0 34px;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 64px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 1fr);
    align-items: center;
    gap: clamp(34px, 5vw, 72px);
}

.hero-copy {
    max-width: 560px;
}

.eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mint);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(47, 224, 176, 0.15);
}

.hero-content h1 {
    max-width: 640px;
    margin: 20px 0 0;
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(2.6rem, 4.6vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--text-hi);
    text-wrap: balance;
    animation: titleReveal 1s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-content h1 em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(100deg, var(--mint) 10%, #7FE8CC 45%, var(--violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 500px;
    margin: 20px 0 0;
    color: var(--text-lo);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    font-weight: 400;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-hi);
}

.trust-label {
    font-size: 0.72rem;
    color: var(--text-faint);
}

.trust-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

/* PRODUCT STAGE MOCKUP */

.hero-product-stage {
    position: relative;
    min-height: 500px;
    perspective: 1400px;
}

.hero-product-stage::before {
    content: "";
    position: absolute;
    inset: auto 7% 4% 8%;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(47, 224, 176, 0.16), transparent 64%);
    filter: blur(18px);
}

.odontogram-bg {
    position: absolute;
    top: -30px;
    right: -40px;
    width: 60%;
    max-width: 440px;
    height: auto;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.product-window,
.floating-module {
    border: 1px solid var(--border-hi);
    border-radius: var(--radius);
    background: rgba(22, 29, 40, 0.78);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.main-window {
    position: absolute;
    inset: 30px 6% auto 0;
    min-height: 340px;
    overflow: hidden;
    z-index: 2;
    animation: dashboardFloat 8s ease-in-out infinite;
}

.window-bar {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
}

.window-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2A3240;
}

.window-bar strong {
    margin-left: auto;
    color: var(--text-lo);
    font-size: 0.78rem;
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    min-height: 290px;
    padding: 16px;
}

.product-sidebar {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 10px;
    padding: 12px 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
}

.product-sidebar i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--text-faint);
    background: transparent;
    font-size: 0.95rem;
}

.product-sidebar i:nth-child(2) {
    color: var(--mint);
    background: var(--surface-3);
}

.calendar-preview {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--text-faint);
    font-weight: 600;
    font-size: 0.78rem;
}

.calendar-header strong {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-lo);
    font-weight: 600;
}

.appointment-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 60px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.appointment-row.active {
    border-color: var(--border-hi);
    background: var(--surface-3);
}

.appointment-row span {
    font-family: 'JetBrains Mono', monospace;
    color: var(--mint);
    font-size: 0.82rem;
    font-weight: 500;
}

.appointment-row strong,
.floating-module strong {
    display: block;
    color: var(--text-hi);
    font-size: 0.92rem;
    font-weight: 600;
}

.appointment-row small {
    display: block;
    color: var(--text-faint);
    font-size: 0.78rem;
}

.appointment-tag {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(47, 224, 176, 0.14);
    color: var(--mint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: center;
}

.floating-module {
    position: absolute;
    z-index: 3;
    min-width: 180px;
    padding: 16px;
    animation: chipFloat 6.5s ease-in-out infinite;
}

.floating-module span {
    display: block;
    color: var(--text-faint);
    font-size: 0.74rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.floating-module i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: var(--radius);
    color: var(--mint);
    background: rgba(47, 224, 176, 0.12);
    font-size: 0.95rem;
}

.floating-module strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
}

.module-billing {
    top: 0;
    right: 0;
}

.module-clinical {
    right: -18px;
    bottom: 24px;
    animation-delay: 0.8s;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 5;
    width: 28px;
    height: 44px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 99px;
    display: grid;
    justify-items: center;
    padding-top: 8px;
    opacity: 0.8;
}

.scroll-cue span {
    width: 4px;
    height: 8px;
    border-radius: 99px;
    background: var(--mint);
    animation: scrollPulse 1.6s ease-in-out infinite;
}

/* SECTION HEADINGS */

.section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 110px 0;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 34px;
}

.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-faint);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.section-eyebrow .num {
    color: var(--mint);
}

.section-heading h2,
.final-cta h2 {
    margin: 10px 0 0;
    font-family: 'Fraunces', serif;
    font-weight: 400;
    color: var(--text-hi);
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.section-sub {
    margin-top: 14px;
    font-size: 0.98rem;
    color: var(--text-lo);
    line-height: 1.6;
    max-width: 560px;
}

/* MODULES GRID */

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.module {
    background: var(--surface);
    padding: 32px 28px;
    transition: background 200ms ease;
}

.module:hover {
    background: var(--surface-2);
}

.module-fdi {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--mint);
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.module h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-hi);
}

.module p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-lo);
    line-height: 1.6;
}

/* PRICING */

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 40px;
}

.toggle-btn {
    padding: 8px 18px;
    border-radius: 7px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-lo);
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 7px;
}

.toggle-btn.active {
    background: var(--surface-3);
    color: var(--text-hi);
}

.toggle-save {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--mint);
    background: rgba(47, 224, 176, 0.14);
    padding: 2px 6px;
    border-radius: 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card.featured {
    border-color: rgba(47, 224, 176, 0.4);
    background: linear-gradient(180deg, rgba(47, 224, 176, 0.06), var(--surface) 40%);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 28px;
    background: var(--mint);
    color: #04211A;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.price-plan-fdi {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.price-plan-name {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-hi);
    margin-bottom: 6px;
}

.price-plan-for {
    font-size: 0.82rem;
    color: var(--text-lo);
    margin-bottom: 24px;
    min-height: 36px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}

.price-currency {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    color: var(--text-lo);
}

.price-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--text-hi);
    letter-spacing: -0.01em;
}

.price-period {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.price-annual-note {
    font-size: 0.74rem;
    color: var(--mint);
    margin-bottom: 26px;
    height: 16px;
}

.price-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    flex: 1;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text-lo);
    padding: 9px 0;
    border-top: 1px solid var(--border);
}

.price-features li:first-child {
    border-top: none;
}

.price-features li::before {
    content: '\2713';
    color: var(--mint);
    font-weight: 700;
    font-size: 0.75rem;
    width: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.price-features li b {
    color: var(--text-hi);
    font-weight: 600;
}

.price-cta {
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-hi);
    color: var(--text-hi);
    transition: background 200ms ease, border-color 200ms ease;
}

.price-cta:hover {
    background: var(--surface-2);
}

.price-cta.primary {
    background: var(--mint);
    color: #04211A;
    border: none;
}

.price-cta.primary:hover {
    filter: brightness(1.08);
}

.price-footnote {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 32px;
    font-size: 0.8rem;
    color: var(--text-faint);
}

.price-footnote .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-faint);
}

/* FINAL CTA */

.final-cta {
    position: relative;
    width: min(var(--max), calc(100% - 32px));
    margin: 42px auto 0;
    min-height: 460px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border-hi);
    border-radius: var(--radius);
    background: var(--surface);
}

.cta-aurora {
    position: absolute;
    inset: -26%;
    background:
        radial-gradient(circle at 24% 36%, rgba(47, 224, 176, 0.24), transparent 24%),
        radial-gradient(circle at 70% 48%, rgba(139, 126, 255, 0.26), transparent 28%);
    filter: blur(26px);
    animation: auroraDrift 8s ease-in-out infinite alternate;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 48px 24px;
    text-align: center;
}

.final-cta p:not(.eyebrow) {
    max-width: 660px;
    margin: 18px auto 0;
    font-size: 1.02rem;
    color: var(--text-lo);
}

.final-cta .hero-actions {
    justify-content: center;
}

/* FOOTER */

.site-footer {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 82px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.75fr);
    gap: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.footer-brand p {
    max-width: 390px;
    margin-top: 16px;
    color: var(--text-lo);
}

.footer-logo .brand-mark {
    animation: logoBreath 3.6s ease-in-out infinite;
}

.footer-grid h3 {
    margin: 0 0 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-hi);
}

.footer-grid a:not(.brand) {
    display: block;
    margin: 8px 0;
    color: var(--text-lo);
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-grid a:hover {
    color: var(--text-hi);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.85rem;
}

/* SCROLL REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* KEYFRAMES */

@keyframes auroraDrift {
    from { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
    to { transform: translate3d(2%, 1%, 0) rotate(8deg) scale(1.08); }
}

@keyframes dashboardFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

@keyframes chipFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}

@keyframes titleReveal {
    from { opacity: 0; transform: translateY(28px); filter: blur(12px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes scrollPulse {
    0% { transform: translateY(0); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

@keyframes logoBreath {
    50% { box-shadow: 0 14px 42px rgba(47, 224, 176, 0.28); }
}

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

/* RESPONSIVE */

@media (max-width: 1180px) {
    .hero-layout {
        grid-template-columns: minmax(0, 0.95fr) minmax(400px, 1fr);
        gap: 34px;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 920px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero-cinematic {
        min-height: auto;
        padding-top: 104px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-top: 28px;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-product-stage {
        min-height: 480px;
    }

    .odontogram-bg {
        opacity: 0.1;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .section,
    .final-cta,
    .site-footer {
        width: min(100% - 24px, var(--max));
    }

    .brand {
        font-size: 0.95rem;
    }

    .hero-content {
        width: min(100% - 24px, var(--max));
        padding-bottom: 40px;
    }

    .hero-content h1 {
        font-size: clamp(2.3rem, 11vw, 3.2rem);
        line-height: 1.08;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .trust-row {
        gap: 16px;
    }

    .hero-actions,
    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        width: 100%;
    }

    .hero-product-stage {
        min-height: auto;
        margin-top: 32px;
    }

    .main-window {
        position: relative;
        inset: auto;
        width: 100%;
    }

    .floating-module {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: auto !important;
        margin-top: 14px;
        animation: none;
    }

    .odontogram-bg {
        display: none;
    }

    .section {
        padding: 78px 0;
    }

    .billing-toggle {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        justify-content: center;
    }

    .final-cta {
        min-height: auto;
    }

    .final-cta .hero-actions {
        justify-content: stretch;
    }
}
