:root {
    color-scheme: dark;
    --bg-color: #09090b;
    --text-color: #f4f4f5;
    --text-muted: #a1a1aa;
    --primary: #d81a1c; /* Logo Red */
    --primary-hover: #b81618;
    --accent: #d81a1c; /* Making accent red too */
    --brand-gradient: linear-gradient(135deg, #b45309 0%, #c51618 35%, #7f1012 100%);
    --primary-glow: rgba(216, 26, 28, 0.4);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', sans-serif;
    --title-gradient: linear-gradient(to right, #ffffff, #a1a1aa);
    --transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --primary-glow: rgba(216, 26, 28, 0.2);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.08);
    --title-gradient: linear-gradient(to right, #111827, #4b5563);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-gradient);
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

/* Background Grid Effect */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(var(--card-border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--card-border) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

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

h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    text-align: center;
}

section {
    padding: 6rem 0;
    position: relative;
}

section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 1rem;
    background: var(--title-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.2rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--brand-gradient);
    background-size: 200% auto;
    color: #fff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-primary.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-primary.large, .btn-secondary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary.full-width {
    width: 100%;
}

.shadow-glow {
    box-shadow: 0 4px 20px var(--primary-glow);
}
.shadow-glow:hover {
    box-shadow: 0 8px 30px var(--primary-glow);
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
    gap: 0.5rem;
    padding: 0.5rem 0;
}
.back-link:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
}

.navbar .logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: inherit;
}

.navbar .logo span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: clamp(0.55rem, 1.15vw, 1.35rem);
    list-style: none;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.nav-links .nav-tool a {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-links .nav-utility-first a {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-links .nav-tool a:hover,
.nav-links .nav-tool a:focus-visible {
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
}

.nav-links .nav-utility-first {
    border-left: 1px solid var(--card-border);
    padding-left: clamp(0.55rem, 1.15vw, 1.35rem);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5; /* Adjusted for better text contrast */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(216,26,28,0.15) 0%, transparent 60%), linear-gradient(180deg, rgba(9, 9, 11, 0.4) 0%, var(--bg-color) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6rem; /* Offset for navbar */
    padding-top: 2rem;
}

.badge {
    background: rgba(245, 124, 0, 0.1);
    border: 1px solid rgba(245, 124, 0, 0.2);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

/* About / Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.team-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.team-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.team-card p {
    color: var(--text-muted);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(216, 26, 28, 0.3);
    box-shadow: 0 10px 30px rgba(216, 26, 28, 0.05);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Insights / Posts Section */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.insight-card {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
    height: 100%;
    overflow: hidden;
}

.insight-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--card-border);
    transition: transform 0.5s ease;
}

.insight-card:hover .insight-img {
    transform: scale(1.05);
}

.insight-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.insight-tag {
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.insight-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.insight-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.read-more {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    margin-top: auto;
}

.read-more:hover {
    color: var(--primary);
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item summary {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Action / Contact Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.action-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.action-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.action-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.calendly-wrapper {
    width: 100%;
    min-width: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    margin-top: auto;
}

.calendly-wrapper .calendly-inline-widget {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
}

.calendly-wrapper iframe {
    max-width: 100%;
}

.form-illustration {
    font-size: 6rem;
    margin: 2rem 0;
    filter: drop-shadow(0 0 20px var(--card-border));
    margin-top: auto;
    margin-bottom: auto;
}

.social-links {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.social-links a.instagram-link:hover {
    border-color: #bc1888;
    box-shadow: 0 0 15px rgba(188, 24, 136, 0.3);
    color: #f4f4f5; /* Keep text white on hover */
}

/* Tools Section */
.upload-btn {
    text-decoration: none;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* Footer */
.main-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--card-border);
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-brand .logo span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

/* ==========================================================================
   Hero Marketing Grid (B2B Layout)
   ========================================================================== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    margin-top: 6rem;
}

.hero-content {
    align-items: flex-start;
    text-align: left;
    max-width: 600px;
}

.trust-badges {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-logos {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.glass-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-color);
}

.hero-mockup-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
    overflow: visible;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.1);
}

.hero-dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

/* ==========================================================================
   Metrics Band
   ========================================================================== */
.metrics-band {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    width: 100%;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.metrics-band-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.metric-item.highlight {
    color: var(--primary);
    font-weight: 600;
}

.metric-separator {
    color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Transformation Section (Before vs After)
   ========================================================================== */
.transformation {
    padding: 6rem 0;
    position: relative;
}

.transformation-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.transform-card {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.transform-card.before {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.transform-card.after {
    box-shadow: 0 0 30px rgba(245, 124, 0, 0.1);
    border-color: rgba(245, 124, 0, 0.3);
}

.transform-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.transform-header.highlight {
    color: var(--primary);
}

.transform-list {
    list-style: none;
    padding: 0;
}

.transform-list li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.transform-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Responsive */
@media (max-width: 1320px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: left 0.4s ease;
        gap: 1.25rem;
        font-size: 1.2rem;
        z-index: 999;
        margin: 0;
        padding: 2rem 1rem;
        overflow-y: auto;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links .nav-utility-first {
        border-left: none;
        border-top: 1px solid var(--card-border);
        padding: 1.25rem 0 0;
    }
}

.hero-dashboard-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: inherit;
    background: #080b10;
    object-fit: cover;
    opacity: 0;
    transition: opacity 500ms ease;
}

.hero-dashboard-video.is-ready {
    opacity: 1;
}

@media (max-width: 768px) {
    .metrics-band-content {
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    .metric-separator {
        display: none;
    }
    .transformation-grid {
        flex-direction: column;
    }
    .transform-arrow svg {
        transform: rotate(90deg);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 0;
    }
    .hero {
        padding-inline: 0;
    }
    .hero-content {
        align-items: flex-start;
    }
    .hero-image-container {
        transform: none;
    }
    .hero-testimonial-badge {
        position: relative !important;
        inset: auto !important;
        width: calc(100% - 1rem);
        max-width: 300px !important;
        margin: -1rem auto 0;
        padding: 0.75rem !important;
    }
    .hamburger {
        display: flex;
    }
    body {
        padding-bottom: 70px; /* Space for bottom navbar */
    }
    .navbar {
        padding: 1rem 1.5rem;
        flex-direction: row;
        justify-content: space-between;
        top: auto;
        bottom: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: none;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    }
    .nav-links {
        position: fixed;
        left: -100%;
        bottom: 0;
        top: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: left 0.4s ease;
        gap: 2rem;
        font-size: 1.2rem;
        z-index: 999;
        margin: 0;
        padding: 0;
        overflow-y: auto;
    }
    .nav-links .nav-utility-first {
        border-left: none;
        border-top: 1px solid var(--card-border);
        padding: 1.25rem 0 0;
    }
    .nav-links.active {
        left: 0;
    }
    .hero {
        align-items: flex-start;
        padding-top: 5rem;
    }
    .hero-content {
        margin-top: 0;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .btn-primary.large, .btn-secondary.large {
        width: 100%;
    }
    section {
        padding: 4rem 0;
    }
    .action-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   NEW COMPONENTS: Telegram, AI Chat, Sovereignty
   ========================================================================== */

/* Layout Utils */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

/* Phone Mockup (Telegram) */
.phone-mockup {
    width: 100%;
    max-width: 320px;
    height: 600px;
    margin: 0 auto;
    border: 12px solid #111827;
    border-radius: 40px;
    background: #000;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(216, 26, 28, 0.25);
    overflow: hidden;
}
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #111827;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}
.telegram-header {
    background: #1c242f;
    padding: 2.5rem 1rem 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #2d3748;
}
.tg-avatar {
    width: 36px;
    height: 36px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}
.tg-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}
.tg-subtitle {
    color: #a0aec0;
    font-size: 0.75rem;
}
.telegram-chat {
    background: #0f172a; /* Darker bg like Telegram night mode */
    height: calc(100% - 80px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 100%);
}
.tg-msg {
    background: #1e293b;
    padding: 1rem;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.5;
    position: relative;
    opacity: 0;
    animation: fadeInMsg 0.5s ease forwards;
}
.tg-msg.delay-1 { animation-delay: 0.5s; }
.tg-msg.delay-2 { animation-delay: 2s; }

.tg-time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 5px;
}
@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AI Chat Mockup */
.ai-chatbox {
    background: #111827;
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.ai-chat-header {
    background: #1f2937;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
}
.ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #9ca3af;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}
.ai-chat-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}
.msg-user, .msg-ai {
    display: flex;
    gap: 1rem;
    min-width: 0;
}
.msg-user { flex-direction: row-reverse; }
.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.msg-ai .msg-avatar {
    background: var(--brand-gradient);
    color: white;
    font-weight: bold;
}
.msg-bubble {
    background: #1f2937;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    color: #d1d5db;
    max-width: calc(100% - 50px);
    word-break: break-word;
}
.msg-user .msg-bubble {
    background: #374151;
    border-top-right-radius: 0.25rem;
}
.msg-ai .msg-bubble {
    border-top-left-radius: 0.25rem;
    border: 1px solid rgba(216, 26, 28, 0.2);
}
.ai-source {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    background: #111827;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    border-left: 3px solid var(--primary);
}
.waitlist-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.waitlist-form input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid var(--card-border);
    background: rgba(255,255,255,0.05);
    color: white;
    outline: none;
}
.waitlist-form input:focus {
    border-color: var(--primary);
}

/* Sovereignty Section */
.sovereignty-section {
    background: linear-gradient(180deg, transparent, rgba(216, 26, 28, 0.05));
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}
.badge-icon {
    font-size: 2.5rem;
    color: var(--text-color);
}
.badge-item h4 {
    color: var(--primary);
}
.badge-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Team Section */
.team-header {
    text-align: center;
    margin-bottom: 3rem;
}
.team-header h2 {
    margin-bottom: 1rem;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px -10px var(--primary);
    overflow: hidden;
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.team-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.linkedin-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

:root[data-theme="light"] .linkedin-link {
    color: #1d4ed8;
}

/* Mobile Responsive Fixes */
@media (max-width: 600px) {
    .container {
        padding-inline: 1rem;
    }
    .action-card {
        padding: 1.5rem 1rem;
    }
    .waitlist-form {
        flex-direction: column;
    }
    .ai-chat-body {
        padding: 1rem;
    }
    .telegram-chat {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-image-container:hover,
    .team-card:hover,
    .back-link:hover,
    .linkedin-link:hover {
        transform: none;
    }
}

/* FR Health annual HRV calendar */
.metrics.metrics-centered {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
}

.doctor-interpretation {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    margin-top: 16px;
}

.doctor-summary {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 22px 28px;
}

.doctor-summary-avatar {
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(12px) scale(0.92);
}

.doctor-summary-avatar img {
    display: block;
    width: 145px;
    height: 170px;
    margin: 0 auto 7px;
    border: 2px solid rgba(148, 163, 184, 0.4);
    border-radius: 26px;
    background: #fff;
    object-fit: contain;
    opacity: 1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.doctor-summary-avatar strong {
    display: block;
    color: var(--text-color);
    font-size: 0.82rem;
}

.doctor-summary-avatar .doctor-speaking {
    top: 8px;
    right: 4px;
}

.doctor-summary-speech {
    position: relative;
    min-height: 164px;
    padding: 16px 20px;
    border: 1px solid var(--card-border);
    border-radius: 18px 18px 18px 5px;
    background: rgba(59, 130, 246, 0.08);
}

.doctor-summary-speech::before {
    position: absolute;
    left: -9px;
    top: 50%;
    width: 16px;
    height: 16px;
    border-left: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background: inherit;
    content: '';
    transform: translateY(-50%) rotate(45deg);
}

.doctor-summary-speech p {
    margin: 0 0 10px;
    color: var(--text-color);
    font-size: 0.88rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(16px);
}

.doctor-summary-speech p:last-child { margin-bottom: 0; }
.doctor-summary-speech p > strong { color: var(--text-color); font-weight: 800; }
.doctor-summary.is-word-ready .doctor-summary-speech p {
    opacity: 1;
    transform: none;
}
.doctor-word {
    display: inline-block;
    opacity: 0;
    will-change: opacity, transform;
}
.doctor-summary-speech small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.doctor-summary.is-speaking .doctor-summary-avatar {
    animation: doctor-avatar-in 480ms ease-out forwards,
               doctor-speaking-bob 700ms ease-in-out 500ms 24 alternate;
}

.doctor-summary.is-speaking .doctor-speaking {
    animation: doctor-dots-in 180ms ease-out 420ms forwards,
               doctor-dots-out 180ms ease-in 20000ms forwards;
}

.doctor-avatar {
    position: relative;
    text-align: center;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.doctor-avatar img {
    display: block;
    width: 68px;
    height: 68px;
    margin: 0 auto 5px;
    border: 2px solid rgba(96, 165, 250, 0.45);
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.2);
}

.doctor-avatar strong {
    display: block;
    color: var(--text-muted);
    font-size: 0.62rem;
    line-height: 1.2;
}

.doctor-speech {
    position: relative;
    padding: 12px 13px;
    border: 1px solid var(--card-border);
    border-radius: 14px 14px 14px 4px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-color);
    font-size: 0.84rem;
    line-height: 1.5;
    opacity: 0;
    clip-path: inset(0 100% 0 0 round 14px);
}

.doctor-speech::before {
    position: absolute;
    left: -8px;
    bottom: 10px;
    width: 14px;
    height: 14px;
    border-left: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background: inherit;
    content: '';
    transform: rotate(45deg);
}

.doctor-speech small {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.doctor-speaking {
    position: absolute;
    top: 1px;
    right: -2px;
    display: flex;
    gap: 2px;
    padding: 4px 5px;
    border-radius: 999px;
    background: #2563eb;
    opacity: 0;
}

.doctor-speaking i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: white;
}

.metrics-centered.is-speaking .doctor-avatar {
    animation: doctor-speaking-bob 650ms ease-in-out calc(var(--doctor-delay) + 220ms) 3 alternate;
}

.metrics-centered.is-speaking .doctor-speech {
    animation: doctor-speech-in 850ms cubic-bezier(.22,.8,.25,1) calc(var(--doctor-delay) + 180ms) forwards;
}

.metrics-centered.is-speaking .doctor-speaking {
    animation: doctor-dots-in 180ms ease-out calc(var(--doctor-delay) + 360ms) forwards,
               doctor-dots-out 180ms ease-in calc(var(--doctor-delay) + 2100ms) forwards;
}

.metrics-centered.is-speaking .doctor-speaking i {
    animation: doctor-dot 520ms ease-in-out calc(var(--doctor-delay) + 420ms) 3 alternate;
}

.metrics-centered.is-speaking .doctor-speaking i:nth-child(2) { animation-delay: calc(var(--doctor-delay) + 510ms); }
.metrics-centered.is-speaking .doctor-speaking i:nth-child(3) { animation-delay: calc(var(--doctor-delay) + 600ms); }

@keyframes doctor-avatar-in { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes doctor-speaking-bob { to { transform: translateY(-3px) rotate(-1deg); } }
@keyframes doctor-speech-in { to { opacity: 1; clip-path: inset(0 0 0 0 round 14px); } }
@keyframes doctor-dots-in { to { opacity: 1; transform: translateY(-2px); } }
@keyframes doctor-dots-out { to { opacity: 0; } }
@keyframes doctor-dot { to { transform: translateY(-3px); } }

.hrv-calendar-panel {
    padding: 24px;
    margin-bottom: 24px;
}

.hrv-calendar-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.hrv-calendar-heading label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hrv-calendar-heading select {
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 7px 10px;
}

.hrv-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.hrv-calendar-legend span {
    padding: 5px 9px;
    border-radius: 7px;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
}

.hrv-calendar-year { display: none; }
.hrv-calendar-year.is-active { display: block; }
.hrv-calendar-year > h2 { text-align: center; margin: 4px 0 22px; }

.hrv-calendar-months {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 18px;
}

.hrv-calendar-month {
    min-height: 0;
    padding: 0;
}

.hrv-calendar-month h3 {
    margin: 0 0 4px;
    text-align: center;
    font-size: 1.1rem;
}

.hrv-calendar-weekdays,
.hrv-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(20px, 1fr));
    gap: 2px;
}

.hrv-calendar-weekdays {
    padding-bottom: 3px;
    margin-bottom: 3px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.hrv-calendar-day {
    display: grid;
    min-height: 22px;
    place-items: center;
    border-radius: 6px;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: help;
    transition: background-color 120ms ease, color 120ms ease, opacity 120ms ease, transform 120ms ease;
}

.hrv-calendar-panel.is-calendar-pending .hrv-calendar-day:not(.is-empty):not(.is-after-today):not(.is-revealed) {
    background: rgba(148, 163, 184, 0.08);
    color: transparent;
    opacity: 0.18;
    transform: scale(0.86);
}

.hrv-calendar-panel.is-calendar-pending .hrv-calendar-day.is-revealed {
    opacity: 1;
    transform: scale(1);
}

.hrv-calendar-day.is-empty { background: transparent; cursor: default; }
.hrv-week-mean { background: #bbf7d0; }
.hrv-week-strong { background: #22c55e; }
.hrv-week-warning { background: #fde047; }
.hrv-week-danger { background: #ef4444; color: #fff; }
.hrv-week-insufficient { background: #d1d5db; color: #475569; }

.hrv-calendar-day.is-today {
    outline: 3px solid #2563eb;
    outline-offset: 1px;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
}

@media (max-width: 900px) {
    .hrv-calendar-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .metrics.metrics-centered { grid-template-columns: 1fr; }
    .doctor-interpretation { grid-template-columns: 64px minmax(0, 1fr); }
    .doctor-avatar img { width: 58px; height: 58px; }
    .doctor-summary { grid-template-columns: 1fr; padding: 18px; }
    .doctor-summary-avatar img { width: 120px; height: 140px; }
    .doctor-summary-speech::before { display: none; }
    .hrv-calendar-heading { flex-direction: column; }
    .hrv-calendar-months { grid-template-columns: 1fr; }
}


/* Calendly is isolated in a cross-origin frame; no third-party script runs in the landing page. */
.calendly-wrapper .calendly-inline-frame {
    display: block;
    width: 100%;
    min-width: 320px;
    height: 480px;
    border: 0;
}
