/* ===================================================
   ALVEODONT — FUTURISTIC LANDING PAGE v2
   The "masterpiece" version
   Dark · Glass · 3D · Animated · Interactive
   =================================================== */

/* Fonts loaded via <link> in public.html */

/* --- Design tokens --- */
:root {
    --land-bg: #020509;
    --land-bg-alt: #060a14;
    --land-surface: rgba(25, 35, 70, 0.4);
    --land-surface-solid: #111830;
    --land-glass-border: rgba(255, 255, 255, 0.12);
    --land-glass-border-hover: rgba(0, 212, 255, 0.3);
    --land-text: #e4eaf4;
    --land-text-secondary: #8b95ad;
    --land-text-muted: #7a8599;
    --land-accent: #00d4ff;
    --land-accent-hover: #33ddff;
    --land-accent2: #a855f7;
    --land-glow: rgba(0, 212, 255, 0.12);
    --land-glow-strong: rgba(0, 212, 255, 0.3);
    --land-gradient: linear-gradient(135deg, #00d4ff, #a855f7);
    --land-gradient-subtle: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(168, 85, 247, 0.08));
    --land-radius: 16px;
    --land-radius-sm: 10px;
    --land-font-display: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    --land-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

html {
    background: var(--land-bg);
    overscroll-behavior: none;
}

body {
    font-family: var(--land-font-body);
    background: var(--land-bg);
    color: var(--land-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Animated gradient mesh background --- */
@keyframes mesh-shift {
    0%, 100% { background-position: 0% 50%, 100% 50%, 50% 100%; }
    33% { background-position: 100% 0%, 0% 100%, 50% 0%; }
    66% { background-position: 50% 100%, 50% 0%, 0% 50%; }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%, rgba(80, 40, 160, 0.08), transparent 50%),
        radial-gradient(ellipse 50% 40% at 75% 65%, rgba(0, 160, 255, 0.06), transparent 50%),
        radial-gradient(ellipse 60% 35% at 50% 85%, rgba(120, 50, 180, 0.05), transparent 50%),
        radial-gradient(ellipse 40% 30% at 85% 15%, rgba(0, 212, 255, 0.04), transparent 50%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%;
    animation: mesh-shift 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    will-change: background-position;
}

/* Dark vignette — edges fade to pure black */
.pub-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 65% 60% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Second nebula layer — slower, different phase */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 60% 30%, rgba(0, 140, 220, 0.04), transparent 50%),
        radial-gradient(ellipse 40% 50% at 30% 70%, rgba(100, 40, 160, 0.035), transparent 50%);
    background-size: 200% 200%, 200% 200%;
    animation: mesh-shift 35s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
    will-change: background-position;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) ease-out;
}

.pub-header, .pub-container, .pub-footer, .pub-scroll-top {
    position: relative;
    z-index: 1;
}


/* ==================== HEADER ==================== */

.pub-header {
    position: sticky;
    top: 0;
    z-index: var(--z-dropdown);
    background: rgba(22, 30, 60, 0.35);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 1px 8px rgba(0, 212, 255, 0.12);
}

.pub-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pub-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--land-font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--land-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.pub-brand-tagline {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--land-text-secondary);
    letter-spacing: 0.02em;
    border-left: 1px solid var(--land-glass-border);
    padding-left: 0.75rem;
    margin-left: 0.25rem;
    white-space: nowrap;
}

.pub-brand-logo { height: 32px; width: auto; border-radius: 4px; }

.pub-brand-hl {
    background: var(--land-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.pub-nav { display: flex; gap: 0.25rem; margin-left: auto; }

.pub-nav-link {
    padding: 0.5rem 0.875rem;
    color: var(--land-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--land-radius-sm);
    transition: color 0.2s, background 0.2s;
}

.pub-nav-link:hover, .pub-nav-link.active {
    color: var(--land-text);
    background: rgba(255, 255, 255, 0.05);
}

/* Focus indicators for keyboard navigation */
.pub-nav-link:focus-visible,
.pub-btn:focus-visible,
.pub-header-cta:focus-visible,
.pub-scroll-top:focus-visible,
.pub-hamburger:focus-visible {
    outline: 2px solid var(--land-accent);
    outline-offset: 2px;
}

.pub-footer a:focus-visible {
    outline: 2px solid var(--land-accent);
    outline-offset: 2px;
}

.pub-header-cta {
    padding: 0.5rem 1.25rem;
    background: var(--land-gradient);
    color: #fff;
    border-radius: var(--land-radius-sm);
    text-decoration: none;
    font-family: var(--land-font-display);
    font-size: 0.875rem;
    font-weight: 600;
    transition: opacity 0.2s, box-shadow 0.3s;
    white-space: nowrap;
    box-shadow: 0 0 20px var(--land-glow);
}

.pub-header-cta:hover { opacity: 0.9; box-shadow: 0 0 32px var(--land-glow-strong); }


.pub-nav-login, .pub-nav-register { display: none; }

/* Language dropdown */
.pub-lang-dropdown {
    position: relative;
    flex-shrink: 0;
}

.pub-lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    background: none;
    border: 1px solid var(--land-glass-border);
    border-radius: 6px;
    color: var(--land-text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--land-font-display);
    letter-spacing: 0.06em;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.pub-lang-dropdown-btn:hover {
    color: var(--land-text);
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.pub-lang-dropdown-btn:focus-visible {
    outline: 2px solid var(--land-accent);
    outline-offset: 2px;
}

.pub-lang-chevron {
    width: 10px;
    height: 10px;
    transition: transform 0.2s;
}

.pub-lang-dropdown-btn[aria-expanded="true"] .pub-lang-chevron {
    transform: rotate(180deg);
}

.pub-lang-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 120px;
    background: var(--land-surface-solid);
    border: 1px solid var(--land-glass-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.pub-lang-option {
    display: block;
    width: 100%;
    padding: 0.55rem 1rem;
    background: none;
    border: none;
    color: var(--land-text-secondary);
    font-size: 0.875rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.pub-lang-option:hover {
    color: var(--land-text);
    background: rgba(255, 255, 255, 0.06);
}

.pub-lang-option.active {
    color: var(--land-accent);
}

/* Hamburger */
.pub-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    padding: 6px;
    background: none; border: none;
    cursor: pointer;
    margin-left: auto;
}

.pub-hamburger span {
    display: block; width: 100%; height: 2px;
    background: var(--land-text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}

.pub-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pub-hamburger.active span:nth-child(2) { opacity: 0; }
.pub-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==================== HERO — Full Viewport ==================== */

.pub-hero {
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1rem, 4vmin, 4rem) 0 clamp(0.5rem, 2vmin, 2rem);
    position: relative;
}

/* Large glow orb behind hero */
.pub-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 70vmin);
    height: min(700px, 55vmin);
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.12) 0%, rgba(168, 85, 247, 0.06) 35%, transparent 65%);
    pointer-events: none;
    z-index: -1;
    animation: orb-breathe 10s ease-in-out infinite;
}

@keyframes orb-breathe {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.7; }
}

.pub-hero-content {
    max-width: min(720px, 85vw);
    margin-bottom: clamp(1rem, 3vmin, 3rem);
    background: rgba(20, 30, 60, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(12px, 2.5vmin, 24px);
    padding: clamp(1rem, 3vmin, 3rem) clamp(1.25rem, 3.5vmin, 3.5rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pub-hero-title {
    font-family: var(--land-font-display);
    font-size: clamp(1.5rem, 5vmin, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: clamp(0.5rem, 1.5vmin, 1.5rem);
    color: var(--land-text);
}

.pub-typewriter-wrap {
    background: var(--land-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.pub-cursor {
    display: inline-block;
    background: var(--land-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: none;
    margin-left: 2px;
    font-weight: 300;
    transition: opacity 0.8s ease;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.pub-cursor.blinking {
    animation: blink 0.7s step-end infinite;
}

.pub-hero-sub {
    font-size: clamp(0.85rem, 1.8vmin, 1.2rem);
    color: var(--land-text-secondary);
    max-width: 540px;
    margin: 0 auto clamp(0.75rem, 2.5vmin, 2.5rem);
    line-height: 1.6;
}

.pub-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}



/* ==================== MOCKUP SHARED ==================== */

.pub-mockup-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(15, 22, 40, 0.8);
    border-bottom: 1px solid var(--land-glass-border);
}

.pub-mockup-dot {
    width: 10px; height: 10px; border-radius: 50%; opacity: 0.6;
}

.pub-mockup-dot:nth-child(1) { background: #ff5f57; }
.pub-mockup-dot:nth-child(2) { background: #febc2e; }
.pub-mockup-dot:nth-child(3) { background: #28c840; }

.pub-mockup-url {
    flex: 1;
    height: 20px;
    margin-left: 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
}

.pub-mockup-body { display: flex; height: clamp(180px, 20vw, 260px); overflow: hidden; }

.pub-mockup-sidebar {
    width: 52px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.12), rgba(168, 85, 247, 0.08));
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.pub-mockup-sidebar-logo {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.15);
    margin-bottom: 6px;
}

.pub-mockup-sidebar-item {
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.pub-mockup-sidebar-item.active {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.12);
}

.pub-mockup-content {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.pub-mockup-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.pub-mockup-stat-card {
    height: 44px;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.06);
    position: relative;
    overflow: hidden;
}

/* Mockup table */
.pub-mockup-table { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pub-mockup-table-header { height: 18px; border-radius: 3px; background: rgba(255, 255, 255, 0.04); }
.pub-mockup-table-row { height: 22px; border-radius: 3px; background: rgba(255, 255, 255, 0.02); }
.pub-mockup-table-row:nth-child(odd) { background: rgba(255, 255, 255, 0.012); }

/* Calendar mockup */
.pub-mockup-cal-header { height: 18px; border-radius: 3px; background: rgba(255, 255, 255, 0.04); }
.pub-mockup-cal-grid { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); gap: 3px; }
.pub-mockup-cal-slot { border-radius: 3px; }
.pub-mockup-cal-slot--accent { background: var(--land-accent); opacity: 0.2; }
.pub-mockup-cal-slot--success { background: #34d399; opacity: 0.2; }
.pub-mockup-cal-slot--warning { background: #fbbf24; opacity: 0.2; }
.pub-mockup-cal-slot--purple { background: var(--land-accent2); opacity: 0.2; }

/* Patient mockup */
.pub-mockup-patient-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.pub-mockup-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--land-gradient); opacity: 0.4; flex-shrink: 0;
}
.pub-mockup-patient-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pub-mockup-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.pub-mockup-line--wide { width: 60%; }
.pub-mockup-line--narrow { width: 35%; }
.pub-mockup-tabs { display: flex; gap: 5px; margin-bottom: 4px; }
.pub-mockup-tab { height: 5px; flex: 1; border-radius: 3px; background: rgba(255, 255, 255, 0.04); }
.pub-mockup-tab.active { background: var(--land-gradient); opacity: 0.4; }


/* ==================== TRUST BAR ==================== */

.pub-trust {
    padding: 2.5rem 0;
    border-top: 1px solid var(--land-glass-border);
    border-bottom: 1px solid var(--land-glass-border);
    margin-bottom: 1rem;
}

.pub-trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pub-trust-label {
    font-family: var(--land-font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--land-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pub-trust-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pub-trust-pill {
    padding: 0.4rem 1rem;
    background: rgba(30, 42, 80, 0.2);
    border: 1px solid var(--land-glass-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--land-text-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pub-trust-pill-num {
    font-family: var(--land-font-display);
    font-weight: 700;
    color: var(--land-accent);
}

.pub-trust-pill--accent {
    border-color: var(--land-glass-border-hover);
    color: var(--land-accent);
    font-weight: 600;
}


/* ==================== BUTTONS ==================== */

.pub-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: var(--land-radius-sm);
    font-family: var(--land-font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
}

.pub-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.25) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pub-btn:active::after { opacity: 1; transition: opacity 0s; }
.pub-btn:active { transform: scale(0.97); }

.pub-btn-primary {
    background: var(--land-gradient);
    color: #fff;
    box-shadow: 0 0 28px var(--land-glow), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pub-btn-primary:hover {
    box-shadow: 0 0 44px var(--land-glow-strong), 0 4px 28px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.pub-btn-secondary {
    background: var(--land-surface);
    color: var(--land-text);
    border: 1px solid var(--land-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pub-btn-secondary:hover {
    border-color: var(--land-glass-border-hover);
    box-shadow: 0 0 24px var(--land-glow);
    transform: translateY(-2px);
}


/* ==================== SECTIONS ==================== */

.pub-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.pub-section { padding: clamp(3rem, 5vw, 5rem) 0; }

.pub-section-cta { text-align: center; margin-top: 2.5rem; }

.pub-section-title {
    font-family: var(--land-font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--land-text);
    letter-spacing: -0.02em;
    text-align: center;
}

.pub-section-title::after {
    content: '';
    display: block;
    width: 48px; height: 3px;
    background: var(--land-gradient);
    border-radius: 2px;
    margin: 0.75rem auto 0;
    box-shadow: 0 0 12px var(--land-glow);
}

.pub-section-sub {
    font-size: 1.0625rem;
    color: var(--land-text-secondary);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}


/* ==================== FEATURE GRID ==================== */

.pub-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pub-bento-card {
    background: rgba(30, 42, 80, 0.2);
    border: 1px solid var(--land-glass-border);
    border-radius: var(--land-radius);
    padding: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1.25rem, 2vw, 2rem);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

/* Gradient top accent line */
.pub-bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--land-gradient);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.pub-bento-card:hover::before { opacity: 1; }

.pub-bento-card:hover {
    border-color: var(--land-glass-border-hover);
    box-shadow: 0 0 40px var(--land-glow), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pub-bento-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    position: relative;
    transition: box-shadow 0.3s, border-color 0.3s;
}

/* Gradient ring on hover */
.pub-bento-card:hover .pub-bento-icon {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 24px var(--land-glow), inset 0 0 12px rgba(0, 212, 255, 0.06);
}

.pub-bento-icon svg {
    width: 24px;
    height: 24px;
    color: var(--land-accent);
}

.pub-bento-card h3 {
    font-family: var(--land-font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--land-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.pub-bento-card p {
    font-size: 0.8125rem;
    color: var(--land-text-secondary);
    line-height: 1.65;
}


/* --- Financial mockup --- */
.pub-mockup-finance-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding-top: 8px;
}

.pub-mockup-bar {
    flex: 1;
    height: var(--h, 50%);
    background: var(--land-gradient);
    border-radius: 3px 3px 0 0;
    opacity: 0.35;
}

.pub-mockup-bar:nth-child(even) { opacity: 0.2; }

.pub-mockup-stat--revenue { border-left: 3px solid var(--land-accent); }
.pub-mockup-stat--invoices { border-left: 3px solid var(--land-accent2); }
.pub-mockup-stat--payments { border-left: 3px solid #34d399; }

/* --- Booking mockup --- */
.pub-mockup-body--no-sidebar { padding: 0; }
.pub-mockup-body--no-sidebar .pub-mockup-content { padding: 16px 20px; }

.pub-mockup-booking-header {
    height: 20px;
    width: 50%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 12px;
}

.pub-mockup-booking-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pub-mockup-booking-step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
}

.pub-mockup-booking-step.active {
    background: var(--land-gradient);
    opacity: 0.6;
}

.pub-mockup-booking-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    flex: 1;
}

.pub-mockup-booking-slot {
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-mockup-booking-slot.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.08);
}

.pub-mockup-booking-btn {
    height: 32px;
    border-radius: 8px;
    background: var(--land-gradient);
    opacity: 0.4;
    width: 40%;
    margin-left: auto;
}

/* --- Lab mockup --- */
.pub-mockup-lab-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pub-mockup-lab-card {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pub-mockup-lab-card .pub-mockup-line { flex: 1; }
.pub-mockup-lab-card .pub-mockup-line--wide { width: auto; }
.pub-mockup-lab-card .pub-mockup-line--narrow { width: auto; flex: 0.5; }

.pub-mockup-lab-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pub-mockup-lab-status--sent { background: var(--land-accent); }
.pub-mockup-lab-status--progress { background: #fbbf24; }
.pub-mockup-lab-status--done { background: #34d399; }


/* ==================== PRODUCT SHOWCASE ==================== */

.pub-showcase-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.pub-showcase-row--reverse { direction: rtl; }
.pub-showcase-row--reverse > * { direction: ltr; }

.pub-showcase-mockup {
    border-radius: var(--land-radius);
    border: 1px solid var(--land-glass-border);
    overflow: hidden;
    background: var(--land-surface-solid);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(0.92);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s, border-color 0.3s;
}

.pub-showcase-mockup.visible {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1);
}

.pub-showcase-mockup:hover {
    border-color: var(--land-glass-border-hover);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.5), 0 0 40px var(--land-glow);
}

.pub-showcase-text h3 {
    font-family: var(--land-font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 700;
    color: var(--land-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.pub-showcase-text p {
    font-size: 1rem;
    color: var(--land-text-secondary);
    line-height: 1.7;
}


/* ==================== TIMELINE ==================== */

.pub-timeline {
    display: flex;
    justify-content: center;
    gap: 0;
    position: relative;
    padding: 2rem 0;
}

.pub-timeline-track {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-50%);
    border-radius: 1px;
    overflow: hidden;
}

.pub-timeline-progress {
    height: 100%;
    width: 0%;
    background: var(--land-gradient);
    border-radius: 1px;
    transition: width 0.6s ease-out;
    box-shadow: 0 0 12px var(--land-glow);
}

.pub-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 280px;
    z-index: 1;
    padding: 0 1rem;
}

.pub-timeline-dot {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--land-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
    position: relative;
}

.pub-timeline-dot span {
    font-family: var(--land-font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--land-text-muted);
    transition: color 0.4s;
}

.pub-timeline-step.lit .pub-timeline-dot {
    border-color: var(--land-accent);
    box-shadow: 0 0 24px var(--land-glow-strong);
    background: var(--land-surface-solid);
}

.pub-timeline-step.lit .pub-timeline-dot span {
    color: var(--land-accent);
}

.pub-timeline-card {
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.4s;
}

.pub-timeline-step.lit .pub-timeline-card {
    opacity: 1;
}

.pub-timeline-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--land-gradient-subtle);
    border: 1px solid rgba(0, 212, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.pub-timeline-icon svg { width: 22px; height: 22px; color: var(--land-accent); }

.pub-timeline-card h3 {
    font-family: var(--land-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--land-text);
    margin-bottom: 0.4rem;
}

.pub-timeline-card p {
    font-size: 0.8125rem;
    color: var(--land-text-secondary);
    line-height: 1.6;
}


/* ==================== PRICING ==================== */

.pub-pricing { text-align: center; }

.pub-pricing-card {
    background: rgba(30, 42, 80, 0.2);
    border: 1px solid var(--land-glass-border);
    border-radius: var(--land-radius);
    padding: clamp(2rem, 3.5vw, 3.5rem) clamp(2rem, 5vw, 5rem);
    max-width: 1000px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

/* Top gradient accent line (matches bento cards) */
.pub-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--land-gradient);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.pub-pricing-card:hover::before { opacity: 1; }

.pub-pricing-card:hover {
    border-color: var(--land-glass-border-hover);
    box-shadow: 0 0 40px var(--land-glow), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pub-pricing-card h3 {
    font-family: var(--land-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--land-text);
    margin-bottom: 0.75rem;
}

.pub-pricing-card p {
    font-size: 1rem;
    color: var(--land-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: none;
}


/* ==================== FINAL CTA ==================== */

.pub-cta {
    text-align: center;
    padding: clamp(3rem, 6vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}

.pub-cta > h2 {
    font-family: var(--land-font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff, var(--land-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

.pub-cta > p {
    font-size: 1.125rem;
    color: var(--land-text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
}




/* ==================== FOOTER ==================== */

.pub-footer {
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 -1px 8px rgba(0, 212, 255, 0.12);
    padding: clamp(2rem, 3vw, 3rem) 0 0;
    margin-top: clamp(1rem, 2vw, 2rem);
    background: var(--land-bg-alt);
}

.pub-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.pub-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.pub-footer-col { display: flex; flex-direction: column; gap: 0.5rem; }

.pub-footer-col h4 {
    font-family: var(--land-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--land-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.pub-footer-col a, .pub-footer-col span {
    font-size: 0.8125rem;
    color: var(--land-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.pub-footer-col a:hover { color: var(--land-accent); }

.pub-footer-brand {
    font-family: var(--land-font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--land-text);
}

.pub-footer-tagline {
    font-size: 0.8125rem;
    color: var(--land-text-muted);
    max-width: 260px;
    margin-top: 0.25rem;
    line-height: 1.5;
}

.pub-footer-bottom {
    border-top: 1px solid var(--land-glass-border);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--land-text-muted);
}


/* ==================== SCROLL ANIMATIONS ==================== */

.pub-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.pub-reveal-child {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Directional scroll reveals */
.pub-scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pub-scroll-reveal[data-reveal="left"] { transform: translateX(-40px); }
.pub-scroll-reveal[data-reveal="right"] { transform: translateX(40px); }
.pub-scroll-reveal.visible { opacity: 1; transform: none; }

/* SVG stroke draw */
@keyframes pub-stroke-draw {
    from { stroke-dashoffset: var(--stroke-length); }
    to { stroke-dashoffset: 0; }
}

.pub-bento-icon svg path,
.pub-bento-icon svg line,
.pub-bento-icon svg polyline,
.pub-bento-icon svg circle,
.pub-bento-icon svg rect,
.pub-timeline-icon svg path,
.pub-timeline-icon svg line,
.pub-timeline-icon svg polyline,
.pub-timeline-icon svg circle,
.pub-timeline-icon svg rect {
    stroke-dasharray: var(--stroke-length);
    stroke-dashoffset: var(--stroke-length);
}

.visible .pub-bento-icon svg path,
.visible .pub-bento-icon svg line,
.visible .pub-bento-icon svg polyline,
.visible .pub-bento-icon svg circle,
.visible .pub-bento-icon svg rect {
    animation: pub-stroke-draw 0.8s ease-out forwards;
}

.lit .pub-timeline-icon svg path,
.lit .pub-timeline-icon svg line,
.lit .pub-timeline-icon svg polyline,
.lit .pub-timeline-icon svg circle,
.lit .pub-timeline-icon svg rect {
    animation: pub-stroke-draw 0.8s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    .pub-reveal, .pub-reveal-child, .pub-scroll-reveal { opacity: 1; transform: none; transition: none; }
    .pub-bento-icon svg path, .pub-bento-icon svg line, .pub-bento-icon svg polyline, .pub-bento-icon svg circle, .pub-bento-icon svg rect,
    .pub-timeline-icon svg path, .pub-timeline-icon svg line, .pub-timeline-icon svg polyline, .pub-timeline-icon svg circle, .pub-timeline-icon svg rect {
        stroke-dasharray: none; stroke-dashoffset: 0; animation: none;
    }
    .pub-hero::before, body::before, body::after { animation: none; }
    .pub-cursor { animation: none; opacity: 1; }
    .pub-timeline-progress { transition: none !important; }
    .pub-btn::after { display: none; }
    #particle-canvas { display: none; }
}


/* ==================== SCROLL-TO-TOP ==================== */

.pub-scroll-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--land-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px var(--land-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    z-index: var(--z-sidebar);
}

.pub-scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.pub-scroll-top:hover { box-shadow: 0 0 32px var(--land-glow-strong); }
.pub-scroll-top svg { width: 20px; height: 20px; }


/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
    .pub-bento { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .pub-hero { min-height: auto; }

    .pub-hamburger { display: flex; }
    .pub-brand { margin-right: auto; }
    .pub-header-inner { gap: 0.75rem; }
    .pub-hamburger { margin-left: 0; }
    .pub-header-cta { display: flex; align-items: center; padding: 0.4rem 0.75rem; font-size: 0.8rem; white-space: nowrap; }
    .pub-nav-login { display: none; }
    .pub-nav-register { display: block; font-weight: 600; color: var(--land-accent); }
    .pub-brand-tagline { display: none; }

    .pub-nav {
        position: absolute;
        top: 68px; left: 0; right: 0;
        flex-direction: column;
        background: rgba(17, 24, 48, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--land-glass-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 2rem;
        gap: 0;
    }

    .pub-nav.open { max-height: 400px; padding: 0.5rem 1rem 1rem; }

    .pub-nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--land-glass-border);
        border-radius: 0.375rem;
    }

    .pub-nav-link:last-child { border-bottom: none; }

    .pub-bento { grid-template-columns: 1fr; }

    .pub-showcase-row, .pub-showcase-row--reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        direction: ltr;
    }

    .pub-timeline { flex-direction: column; align-items: center; gap: 1.5rem; }
    .pub-timeline-track { display: none; }
    .pub-timeline-step { max-width: 340px; }
    .pub-timeline-step.lit .pub-timeline-card,
    .pub-timeline-card { opacity: 1; }

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

    .pub-trust-inner { flex-direction: column; gap: 1rem; }
    .pub-trust-label { text-align: center; }

    .pub-hero-mockup-wrap { margin: 0 -1rem; }
}

@media (max-width: 480px) {
    .pub-brand-tagline { display: none; }
    .pub-hero-actions { flex-direction: column; align-items: center; }
    .pub-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pub-trust-pills { flex-direction: column; align-items: center; }
    .pub-container { padding: 0 1.25rem; }
    .pub-header-inner { padding: 0 1.25rem; }
}

/* Demo banner offset */
html.has-demo-banner .pub-header { top: var(--demo-banner-h, 2.2rem); }
html.has-demo-banner body { padding-top: var(--demo-banner-h, 2.2rem); }

#hero, #trust, #features, #showcase, #how-it-works, #pricing {
    scroll-margin-top: 84px;
}

html.has-demo-banner #hero,
html.has-demo-banner #trust,
html.has-demo-banner #features,
html.has-demo-banner #showcase,
html.has-demo-banner #how-it-works,
html.has-demo-banner #pricing {
    scroll-margin-top: calc(84px + var(--demo-banner-h, 36px));
}
