/* ============================================
   GutMap — Landing Page Styles
   Dark theme with teal accent
   ============================================ */
/* Fonts loaded via <link> in index.html for non-blocking render */

:root {
    --bg: #0B0F1A;
    --bg-surface: #111827;
    --bg-card: #1E293B;
    --bg-card-hover: #253348;
    --border: #1E293B;
    --border-light: #334155;

    --teal: #2DD4BF;
    --teal-dim: rgba(45, 212, 191, 0.12);
    --purple: #818CF8;
    --orange: #FB923C;
    --green: #34D399;
    --rose: #FB7185;
    --indigo: #6366F1;

    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --max-width: 1080px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

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

a:hover {
    color: #5EEAD4;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in:nth-child(2) {
    transition-delay: 0.08s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.16s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.24s;
}

.fade-in:nth-child(5) {
    transition-delay: 0.32s;
}

.fade-in:nth-child(6) {
    transition-delay: 0.40s;
}

/* ---- Gradient text ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 3px;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.lang-btn:hover {
    color: var(--text);
    background: var(--bg-card-hover);
}

.lang-btn.active {
    background: var(--teal);
    color: #0B0F1A;
}

/* Floating language menu — shown on mobile only */
.lang-float-menu {
    display: none;
    position: fixed;
    z-index: 9999;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    gap: 2px;
    min-width: 110px;
}

.lang-float-menu.open {
    display: flex;
}

.lang-float-menu .lang-btn {
    padding: 8px 14px;
    border-radius: 8px;
    justify-content: flex-start;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #5EEAD4;
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 212, 191, 0.25);
}

.btn-coming-soon {
    cursor: default;
    opacity: 0.9;
}

.btn-coming-soon:hover {
    transform: none;
    box-shadow: none;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    padding: 140px 0 40px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background:
        radial-gradient(ellipse at 40% 30%, rgba(45, 212, 191, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 65% 50%, rgba(129, 140, 248, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(52, 211, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.06);
    }
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--teal-dim);
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Hero entrance stagger ---- */
.hero-content>* {
    opacity: 0;
    animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content> :nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content> :nth-child(2) {
    animation-delay: 0.22s;
}

.hero-content> :nth-child(3) {
    animation-delay: 0.34s;
}

.hero-content> :nth-child(4) {
    animation-delay: 0.46s;
}

.hero-content> :nth-child(5) {
    animation-delay: 0.56s;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Phone showcase ---- */
.phone-showcase {
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: 240px 300px 240px;
    gap: 24px;
    justify-content: center;
    align-items: start;
    perspective: 1200px;
    text-align: left;
    max-width: 852px;
    margin-left: auto;
    margin-right: auto;
}

.phone-frame {
    background: #0b0b0d;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 44px;
    padding: 8px;
    line-height: 0;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-center {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 160px rgba(45, 212, 191, 0.1),
        0 0 60px rgba(52, 211, 153, 0.06);
    z-index: 2;
    position: relative;
}

.phone-center:hover {
    transform: translateY(-8px) scale(1.02);
}

.phone-side {
    margin-top: 40px;
    opacity: 0.85;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.phone-left {
    transform: rotateY(8deg);
}

.phone-right {
    transform: rotateY(-8deg);
}

.phone-side:hover {
    opacity: 1;
    transform: rotateY(0deg) translateY(-4px);
}

.phone-screenshot {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 36px;
    object-fit: contain;
}

/* ============================================
   Proof / Stats bar
   ============================================ */
.proof {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.proof-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

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

.proof-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: -0.02em;
}

.proof-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* ============================================
   Section header
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* ============================================
   Features
   ============================================ */
.features {
    padding: 100px 0;
}

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

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(45, 212, 191, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2), 0 0 32px rgba(45, 212, 191, 0.04);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--teal-dim);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon.icon-purple {
    background: rgba(129, 140, 248, 0.12);
    color: var(--purple);
}

.feature-icon.icon-orange {
    background: rgba(251, 146, 60, 0.12);
    color: var(--orange);
}

.feature-icon.icon-green {
    background: rgba(52, 211, 153, 0.12);
    color: var(--green);
}

.feature-icon.icon-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: var(--indigo);
}

.feature-icon.icon-rose {
    background: rgba(251, 113, 133, 0.12);
    color: var(--rose);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   How it works
   ============================================ */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-surface);
}

.steps-showcase {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.step-row {
    display: flex;
    gap: 48px;
    align-items: center;
}

.step-row-reverse {
    flex-direction: row-reverse;
}

.step-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--purple));
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-bottom: 16px;
}

.step-text h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.step-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.step-visual {
    flex: 0 0 320px;
    width: 320px;
}

.phone-sm {
    width: 100%;
}

/* ============================================
   Symptoms section
   ============================================ */
.symptoms-section {
    padding: 100px 0;
}

.symptom-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.symptom-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.symptom-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--chip-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.symptom-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--chip-color);
    box-shadow: 0 0 8px var(--chip-color);
}

.symptoms-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* ============================================
   Disclaimer
   ============================================ */
.disclaimer-section {
    padding: 40px 0;
}

.disclaimer-card {
    background: rgba(251, 146, 60, 0.06);
    border: 1px solid rgba(251, 146, 60, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    text-align: center;
}

.disclaimer-card h3 {
    color: var(--orange);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.disclaimer-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 100px 0;
    background: var(--bg-surface);
}

.faq-list {
    max-width: 640px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-item summary {
    padding: 20px 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    transition: color var(--transition);
}

.faq-item summary:hover {
    color: var(--teal);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform var(--transition);
}

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

.faq-item p {
    padding: 0 0 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    animation: faqReveal 0.35s ease-out;
}

@keyframes faqReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Final CTA
   ============================================ */
.final-cta {
    padding: 80px 0;
}

.cta-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.08), rgba(129, 140, 248, 0.06));
    border: 1px solid rgba(45, 212, 191, 0.12);
    border-radius: var(--radius-lg);
    padding: 64px 32px;
}

.cta-card h2 {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    margin-bottom: 4px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-analytics {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    max-width: 720px;
    margin-top: 12px;
    line-height: 1.5;
    flex-basis: 100%;
}

/* ============================================
   Legal pages (privacy, terms)
   ============================================ */
.legal {
    padding: 100px 0 60px;
    flex: 1;
}

.legal h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.scope-notice {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 14px 18px;
    border-left: 3px solid var(--accent, #27D4B6);
    background: rgba(39, 212, 182, 0.06);
    border-radius: 6px;
    margin-bottom: 48px;
}

.legal section {
    margin-bottom: 36px;
}

.legal h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--teal);
}

.legal p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal ul {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 12px;
}

.legal li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    /* Push lang + hamburger to the right as a group */
    .nav-content {
        justify-content: flex-start;
    }

    /* Strip the pill — just a small icon trigger */
    .lang-switcher {
        margin-left: auto;
        background: none;
        border: none;
        padding: 0;
        gap: 0;
    }

    .lang-switcher .lang-btn:not(.active) {
        display: none;
    }

    /* Active button: no teal, just text + chevron */
    .lang-switcher .lang-btn.active {
        background: none;
        color: var(--text-secondary);
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .lang-switcher .lang-btn.active::after {
        content: ' ▾';
        font-size: 0.6rem;
        opacity: 0.6;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 110px 0 40px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .phone-showcase {
        grid-template-columns: 240px;
        gap: 12px;
    }

    .phone-side {
        display: none;
    }

    .proof-items {
        flex-wrap: wrap;
        gap: 24px;
    }

    .proof-divider {
        display: none;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

    .steps-showcase {
        gap: 48px;
    }

    .step-row,
    .step-row-reverse {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .step-visual {
        flex: 0 0 240px;
        width: 240px;
        margin: 0 auto;
    }

    .step-number {
        margin: 0 auto 16px;
    }

    .cta-card {
        padding: 40px 20px;
    }

    .cta-card h2 {
        font-size: 1.6rem;
    }
}