/**
 * TunaSys - Premium Enterprise B2B Styles
 * Inspired by modern, ultra-clean SaaS aesthetics (e.g. Linear, Vercel)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette - Light mode */
    --bg-base: #ffffff;
    --bg-surface: #f8fafc;
    --bg-surface-hover: #f1f5f9;
    --bg-elevated: #eef2f7;

    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;

    /* Primary */
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --primary-bg: #f8fafc;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;

    /* Shadows */
    --shadow-dropdown: 0 10px 28px rgba(2, 6, 23, 0.12);
    --shadow-card: 0 1px 2px rgba(2, 6, 23, 0.08);

    /* Runtime viewport metrics (updated by JS) */
    --nav-height: 84px;
    --app-vh: 100vh;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-snap-type: none;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

body.aurora-bg {
    --aurora-color-1: #10b981;
    --aurora-color-2: #34d399;
    --aurora-color-3: #6ee7b7;
    --aurora-color-4: #2dd4bf;
    --aurora-color-5: #14b8a6;
    --aurora-speed: 90s;
    position: relative;
    isolation: isolate;
}

body.aurora-bg::before {
    content: "";
    position: fixed;
    inset: -10px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.28;
    filter: blur(10px);
    background-image:
        repeating-linear-gradient(100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16%),
        repeating-linear-gradient(100deg,
            var(--aurora-color-1) 10%,
            var(--aurora-color-2) 15%,
            var(--aurora-color-3) 20%,
            var(--aurora-color-4) 25%,
            var(--aurora-color-5) 30%);
    background-size: 300% 200%, 200% 100%;
    background-position: 50% 50%, 50% 50%;
    mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
    animation: aurora var(--aurora-speed) linear infinite;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* Clean radius */
}

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

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

/* Sharp, professional badges instead of glowing pills */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-strong);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Placeholders for when images are removed */
.visual-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border: 1px dashed var(--border-strong);
}

.visual-placeholder i {
    font-size: 2rem;
    opacity: 0.2;
}

/* Buttons - Minimalist */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    /* sharper corners */
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.btn-lg {
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-base);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: #444;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

/* ======== NAVBAR ======== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background var(--transition-fast), border var(--transition-fast);
    background: var(--bg-base);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo i {
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.nav-link:hover {
    color: var(--text-primary);
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 0.5rem;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-dropdown);
    pointer-events: none;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: background var(--transition-fast);
}

.dropdown-item:hover:not(.disabled) {
    background: var(--bg-elevated);
}

.dropdown-item-simple {
    display: block;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu-compact {
    width: auto;
    min-width: 160px;
    padding: 0.35rem;
}

.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 1rem;
    flex-shrink: 0;
}

.dropdown-content h4 {
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
    color: var(--text-primary);
}

.dropdown-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.dropdown-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-menu-glyph {
    display: inline-block;
    font-size: 1.35rem;
    line-height: 1;
}

/* ======== HERO SECTION ======== */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 700px;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}

.hero-title span {
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

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

.hero-scroll-caret {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: var(--text-secondary);
    line-height: 1;
}

.hero-scroll-caret span {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    animation: hero-caret-pulse 1.8s ease-in-out infinite;
}

.hero-scroll-caret:hover {
    color: var(--text-primary);
}

.with-scroll-caret {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-bottom: 90px;
}

.section-scroll-caret {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    color: var(--text-secondary);
    line-height: 1;
}

.section-scroll-caret span {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    animation: hero-caret-pulse 1.8s ease-in-out infinite;
}

.section-scroll-caret:hover {
    color: var(--text-primary);
}

@keyframes hero-caret-pulse {
    0%, 100% {
        opacity: 0.45;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(6px);
    }
}

.hero-visual {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ======== GENERAL SECTIONS ======== */
.section {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.snap-boundary {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.section:last-of-type {
    border-bottom: none;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ======== CLINIC POS SECTIONS ======== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.features-carousel-dots {
    display: none;
}

.features-carousel-inline .features-grid {
    margin-bottom: 2.5rem;
}

.tunapos-hero .features-carousel {
    width: 100%;
    margin-top: 1.5rem;
}

.tunapos-hero .features-carousel-inline .features-grid {
    margin-bottom: 0;
}

.tunapos-hero .features-carousel-inline .features-carousel-dots {
    margin-top: 1rem;
    margin-bottom: 0;
}

.feature-card {
    background: var(--bg-base);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    transition: border var(--transition-fast);
}

.feature-card:hover {
    border-color: #555;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-container-video-full {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.showcase-container-video-full .showcase-content {
    max-width: none;
}

.showcase-container-video-full .showcase-visual {
    width: 100%;
}

.tunapos-page .showcase-container.showcase-container-video-full {
    min-height: calc(var(--app-vh) - var(--nav-height));
    gap: 1rem;
}

.tunapos-page #waitlist.section {
    min-height: calc(var(--app-vh) - var(--nav-height));
    display: flex;
    align-items: center;
}

.tunapos-page #waitlist > .container {
    width: 100%;
}

.tunapos-page .hero.tunapos-hero,
.tunapos-page #clinic-pos .showcase-container.showcase-container-video-full,
.tunapos-page #waitlist.section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.tunapos-page #clinic-pos .showcase-container.showcase-container-video-full.snap-disabled,
.tunapos-page #waitlist.section.snap-disabled {
    scroll-snap-align: none;
}

body:not(.tunapos-page) .hero,
body:not(.tunapos-page) #about.section,
body:not(.tunapos-page) #team.section,
body:not(.tunapos-page) #waitlist.section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

body:not(.tunapos-page) #about.section.with-scroll-caret {
    height: calc(var(--app-vh) - var(--nav-height));
    min-height: calc(var(--app-vh) - var(--nav-height));
    max-height: calc(var(--app-vh) - var(--nav-height));
    padding-top: 0;
    padding-bottom: 74px;
    display: flex;
    align-items: center;
}

body:not(.tunapos-page) #about.section.with-scroll-caret > .container {
    width: 100%;
}

.tunapos-page .showcase-container.showcase-container-video-full.viewport-fit-active {
    overflow: visible;
}

.tunapos-page .showcase-container.showcase-container-video-full.viewport-fit-active .showcase-visual {
    height: var(--fit-media-height, auto);
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tunapos-page .showcase-container.showcase-container-video-full.viewport-fit-active .glass-container,
.tunapos-page .showcase-container.showcase-container-video-full.viewport-fit-active .image-carousel {
    width: 100%;
    height: 100%;
}

.tunapos-page .showcase-container.showcase-container-video-full.viewport-fit-active .image-carousel .carousel-track {
    height: 100%;
    align-items: center;
}

.tunapos-page .showcase-container.showcase-container-video-full.viewport-fit-active .feature-video,
.tunapos-page .showcase-container.showcase-container-video-full.viewport-fit-active .carousel-slide {
    width: 100%;
    height: 100%;
    max-height: none !important;
    object-fit: contain;
}

.tunapos-page .showcase-container.showcase-container-video-full.viewport-fit-active .feature-video.feature-video-fill {
    object-fit: contain;
    object-position: center;
}

.tunapos-page #waitlist.viewport-fit-active {
    display: flex;
    align-items: center;
}

.showcase-container.with-next-caret {
    position: relative;
    padding-top: 0.6rem;
    padding-bottom: 1.6rem;
    margin-bottom: 2.75rem !important;
}

.showcase-next-caret {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    color: var(--text-secondary);
    line-height: 1;
}

.showcase-next-caret span {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    animation: hero-caret-pulse 1.8s ease-in-out infinite;
}

.showcase-next-caret:hover {
    color: var(--text-primary);
}

.showcase-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.showcase-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.feature-list i {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.timed-feature-list li.is-active i {
    color: #16a34a;
    transform: scale(1.2);
}

.timed-feature-list li i {
    font-size: 1.25rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.showcase-visual {
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    overflow: hidden;
    background: var(--bg-surface);
}

.feature-img {
    width: 100%;
}

.feature-video {
    width: 100%;
    height: auto;
    display: block;
}

.image-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.5);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.carousel-dot.active {
    background: #16a34a;
    border-color: #166534;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox-content {
    width: min(100%, 980px);
    max-height: calc(100svh - 4.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-lightbox-content img,
.media-lightbox-content video {
    width: auto;
    max-width: 100%;
    max-height: calc(100svh - 4.5rem);
    border-radius: 10px;
    background: #000;
}

.media-lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.media-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.media-lightbox-nav-prev {
    left: 0.65rem;
}

.media-lightbox-nav-next {
    right: 0.65rem;
}

.media-lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(92vw, 720px);
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
    z-index: 1;
}

@media (max-width: 768px) {
    .media-lightbox-nav {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1.35rem;
    }
}

body.media-lightbox-open {
    overflow: hidden;
}

.tunapos-page .showcase-visual {
    max-width: 100%;
}

.tap-enlarge-hint {
    display: none;
    margin-top: 0.4rem;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    color: var(--text-muted);
}

/* ======== ABOUT SECTION ======== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-content .section-description {
    margin: 0 0 1.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ======== TEAM SECTION ======== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.team-carousel {
    width: 100%;
}

.team-carousel-viewport {
    overflow: hidden;
}

.team-carousel-track {
    display: flex;
    gap: 1.5rem;
}

.team-carousel-slide {
    flex: 0 0 calc((100% - 4.5rem) / 4);
}

.team-carousel-dots {
    display: none;
}

.team-card {
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
}

.team-image-wrapper {
    height: 240px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-strong);
}

.team-image-wrapper i {
    font-size: 4rem;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.team-socials {
    display: flex;
    gap: 0.75rem;
}

.team-socials a {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.team-socials a:hover {
    color: var(--text-primary);
}

/* ======== CTA SECTION ======== */
.cta-box {
    padding: 6rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ======== FOOTER ======== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
}

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

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 250px;
}

.footer-links h4 {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
}

/* ======== ANIMATIONS ======== */
/* Simplified animation for a more professional feel */
.fade-in-up {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

@keyframes aurora {
    0% {
        background-position: 50% 50%, 50% 50%;
    }
    50% {
        background-position: 350% 50%, 50% 50%;
    }
    100% {
        background-position: 50% 50%, 50% 50%;
    }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
    .showcase-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase-visual {
        order: -1;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .team-carousel-track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .team-carousel-slide {
        flex: initial;
    }

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

    .tunapos-page .feature-video,
    .tunapos-page .carousel-slide {
        width: 100%;
        height: auto;
        max-height: min(68vh, 520px);
        object-fit: contain;
        object-position: center;
        background: var(--bg-surface);
    }
}

@media (max-width: 768px) {

    .tunapos-page .hero.tunapos-hero,
    .tunapos-page #clinic-pos .showcase-container.showcase-container-video-full,
    .tunapos-page #waitlist.section {
        scroll-snap-stop: normal;
    }

    body:not(.tunapos-page) .hero,
    body:not(.tunapos-page) #about.section,
    body:not(.tunapos-page) #team.section,
    body:not(.tunapos-page) #waitlist.section {
        scroll-snap-stop: normal;
    }

    :root {
        --mobile-caret-lift: 4.4rem;
    }

    .hero-scroll-caret {
        bottom: calc(30px + var(--mobile-caret-lift) + env(safe-area-inset-bottom, 0px));
    }

    .section-scroll-caret {
        bottom: calc(26px + var(--mobile-caret-lift) + env(safe-area-inset-bottom, 0px));
    }

    .tunapos-page .tap-enlarge-hint {
        display: block;
    }

    .nav-container {
        position: relative;
        padding-right: 2.8rem;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .navbar.mobile-open .nav-container {
        align-items: center;
        position: relative;
        flex-wrap: wrap;
        padding-left: 0;
        padding-right: 0;
    }

    .navbar.mobile-open .nav-links,
    .navbar.mobile-open .nav-actions {
        display: flex;
        position: static;
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        gap: 0.35rem;
        margin-top: 0;
        padding: 0.9rem 0.75rem;
        background: var(--bg-elevated);
        z-index: 1001;
        border: none;
        border-radius: 0;
    }

    .navbar.mobile-open .nav-actions {
        padding-top: 0.25rem;
        margin-top: 0;
    }

    .navbar.mobile-open .nav-actions .btn {
        width: 100%;
        padding: 0.42rem 0.75rem;
        font-size: 0.85rem;
        min-height: 34px;
    }

    .navbar.mobile-open .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.45rem 0;
    }

    .navbar.mobile-open .nav-links {
        margin-top: 0.75rem;
        padding-bottom: 0.35rem;
    }

    .navbar.mobile-open .dropdown {
        width: 100%;
    }

    .navbar.mobile-open .dropdown-btn {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.45rem 0;
        text-align: left;
        white-space: nowrap;
    }

    .navbar.mobile-open .dropdown-menu {
        display: none;
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        margin-top: 0;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
        transform: none;
    }

    .navbar.mobile-open .dropdown.active .dropdown-menu {
        display: block;
        transform: none;
    }

    .navbar.mobile-open .dropdown-item-simple {
        background: var(--bg-elevated);
        border: none;
        border-radius: 0;
        margin-top: 0.2rem;
        padding: 0.45rem 0.75rem;
        font-size: 0.86rem;
        color: var(--text-primary);
    }

    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 18px;
        right: 16px;
        transform: none;
        z-index: 1200;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    .team-carousel-viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .team-carousel-viewport::-webkit-scrollbar {
        display: none;
    }

    .team-carousel-track {
        display: flex;
        gap: 0;
    }

    .team-carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .team-carousel-dots {
        margin-top: 1rem;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }

    .team-carousel-dot {
        width: 0.62rem;
        height: 0.62rem;
        border-radius: 999px;
        border: 1px solid rgba(15, 23, 42, 0.55);
        background: rgba(255, 255, 255, 0.7);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
        cursor: pointer;
        transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    }

    .team-carousel-dot.active {
        background: #16a34a;
        border-color: #166534;
        transform: scale(1.1);
    }

    .features-carousel-viewport {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .features-carousel-viewport::-webkit-scrollbar {
        display: none;
    }

    .features-carousel .features-grid {
        display: flex;
        grid-template-columns: none;
        min-width: 0;
        width: 100%;
        gap: 0;
        margin-bottom: 0;
    }

    .features-carousel .feature-card {
        flex: 0 0 100%;
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .features-carousel,
    .features-carousel-inline {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .features-carousel .feature-title,
    .features-carousel .feature-desc {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .features-carousel-dots {
        margin-top: 1rem;
        margin-bottom: 6rem;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }

    .features-carousel-inline .features-carousel-dots {
        margin-bottom: 2.5rem;
    }

    .features-carousel-dot {
        width: 0.62rem;
        height: 0.62rem;
        border-radius: 999px;
        border: 1px solid rgba(15, 23, 42, 0.55);
        background: rgba(255, 255, 255, 0.7);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
        cursor: pointer;
        transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    }

    .features-carousel-dot.active {
        background: #16a34a;
        border-color: #166534;
        transform: scale(1.1);
    }

    .tunapos-page .feature-video,
    .tunapos-page .image-carousel .carousel-slide {
        cursor: zoom-in;
    }

    .tunapos-page .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tunapos-page .hero {
        padding-top: 116px;
        padding-bottom: 88px;
    }

    body:not(.tunapos-page) #about.section.with-scroll-caret {
        height: calc(var(--app-vh) - var(--nav-height));
        min-height: calc(var(--app-vh) - var(--nav-height));
        max-height: calc(var(--app-vh) - var(--nav-height));
        padding-bottom: calc(78px + var(--mobile-caret-lift) + env(safe-area-inset-bottom, 0px));
    }

    .tunapos-page .hero-description {
        margin-bottom: 1.2rem;
    }

    .tunapos-page .feature-card {
        padding: 1.15rem;
    }

    .tunapos-page .feature-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 0.95rem;
    }

    .tunapos-page .showcase-container {
        gap: 1rem;
    }

    .tunapos-page #clinic-pos.section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .tunapos-page #clinic-pos > .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .tunapos-page .showcase-container.showcase-container-video-full {
        min-height: calc(var(--app-vh) - var(--nav-height));
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.65rem 0;
    }

    .tunapos-page #waitlist.section {
        min-height: calc(var(--app-vh) - var(--nav-height));
        display: flex;
        align-items: center;
        padding-top: 0;
        padding-bottom: 0;
    }

    .tunapos-page #waitlist > .container {
        width: 100%;
    }

    .tunapos-page .showcase-visual {
        order: 0;
    }

    .tunapos-page .showcase-content h3 {
        font-size: 1.35rem;
        line-height: 1.25;
        margin-bottom: 0.65rem;
    }

    .tunapos-page .showcase-content p {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .tunapos-page .feature-list {
        gap: 0.55rem;
        padding-right: 0.2rem;
    }

    .tunapos-page .feature-list li {
        align-items: flex-start;
        line-height: 1.38;
        font-size: 0.88rem;
    }

    .tunapos-page .feature-list li i {
        margin-top: 0.1rem;
        flex: 0 0 auto;
    }

    .tunapos-page .showcase-container.with-next-caret {
        margin-bottom: 1rem !important;
        padding-bottom: calc(3.2rem + var(--mobile-caret-lift) + env(safe-area-inset-bottom, 0px));
    }

    .tunapos-page .showcase-container.with-next-caret > .showcase-next-caret {
        position: absolute;
        left: 50%;
        bottom: calc(1.75rem + var(--mobile-caret-lift) + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        margin: 0;
        z-index: 3;
    }

    .tunapos-page .carousel-dots {
        bottom: 0.5rem;
    }

    .tunapos-page .feature-video,
    .tunapos-page .carousel-slide {
        max-height: 34svh;
    }
}

@media (max-width: 480px) {
    .tunapos-page .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .tunapos-page .hero-title {
        font-size: 1.85rem;
    }

    .tunapos-page .feature-card {
        padding: 1rem;
    }

    .tunapos-page .feature-title {
        font-size: 1rem;
    }

    .tunapos-page .feature-desc {
        font-size: 0.85rem;
    }

    .tunapos-page .feature-video,
    .tunapos-page .carousel-slide {
        max-height: 31svh;
    }
}

@media (max-width: 768px) and (max-height: 740px) {
    .tunapos-page .showcase-container.showcase-container-video-full {
        min-height: calc(var(--app-vh) - var(--nav-height));
        gap: 0.55rem;
        padding: 0.45rem 0;
    }

    .tunapos-page #waitlist.section {
        min-height: calc(var(--app-vh) - var(--nav-height));
    }

    .tunapos-page .showcase-content h3 {
        font-size: 1.22rem;
        margin-bottom: 0.45rem;
    }

    .tunapos-page .showcase-content p {
        font-size: 0.88rem;
        margin-bottom: 0.55rem;
    }

    .tunapos-page .feature-list {
        gap: 0.45rem;
    }

    .tunapos-page .feature-list li {
        font-size: 0.82rem;
    }

    .tunapos-page .feature-video,
    .tunapos-page .carousel-slide {
        max-height: 30svh;
    }
}
