/* --- SELF-HOSTED OUTFIT FONT --- */
/* latin-ext */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/outfit-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/outfit-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/outfit-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/outfit-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(fonts/outfit-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(fonts/outfit-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(fonts/outfit-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(fonts/outfit-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- SPLASH SCREEN --- */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.splash.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #10b981;
    opacity: 0.12;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    filter: blur(60px);
    animation: glow-pulse 5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.12; }
    50% { opacity: 0.22; }
}

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: splash-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splash-enter {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Logo container */
.splash-logo {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 40px;
}

.splash-logo-svg {
    display: block;
    width: 130px;
    height: 130px;
    border-radius: 28px;
}

/* Paw pads overlay — positioned to match the SVG circles from mobile app */
.paw-pads {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.paw-pad {
    position: absolute;
    background: white;
    border-radius: 50%;
}

/* Pad positions mapped from React Native (130px container, viewBox 0-100) */
/* pad1: left:10.4, top:32.5, w:26, h:26 → scaled from RN absolute positioning */
.pad-1 {
    left: 10.4px;
    top: 32.5px;
    width: 26px;
    height: 26px;
    animation: pad-bounce 1.7s ease-in-out infinite;
    animation-delay: 0s;
}

/* pad2: left:48.1, top:10.4, w:31.2, h:31.2 */
.pad-2 {
    left: 48.1px;
    top: 10.4px;
    width: 31.2px;
    height: 31.2px;
    animation: pad-bounce 1.7s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* pad3: left:91, top:32.5, w:26, h:26 */
.pad-3 {
    left: 91px;
    top: 32.5px;
    width: 26px;
    height: 26px;
    animation: pad-bounce 1.7s ease-in-out infinite;
    animation-delay: 0.4s;
}

/* Bounce keyframes: up 12px over ~30% of cycle, down, then hold */
@keyframes pad-bounce {
    0%, 100% { transform: translateY(0); }
    18% { transform: translateY(-12px); }
    47% { transform: translateY(0); }
}

/* Text */
.splash-text {
    text-align: center;
    opacity: 0;
    animation: text-enter 0.5s ease forwards;
    animation-delay: 0.35s;
}

@keyframes text-enter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.splash-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 46px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.splash-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
    opacity: 0;
    animation: tagline-fade 0.4s ease forwards;
    animation-delay: 0.75s;
}

@keyframes tagline-fade {
    to { opacity: 1; }
}

/* --- VARIABLES --- */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* NEW VIBRANT PALETTE: Bio-Tech (Cyan, Emerald, Gold) */
    --color-primary: #0ea5e9;   /* Electric Cyan */
    --color-secondary: #10b981; /* Vibrant Emerald */
    --color-tertiary: #eab308;  /* Solar Gold */

    --color-red: #ef4444;

    /* Fresh Blue-Green Gradient */
    --gradient-main: linear-gradient(135deg, #0ea5e9 0%, #10b981 50%, #eab308 100%);
    --gradient-cool: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    --gradient-scan: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.5), transparent);

    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);
    --radius: 24px;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
    overflow-x: hidden; /* CRITICAL FIX: Prevents horizontal scrolling */
    width: 100%;
    max-width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%; /* Ensure container respects parent width */
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    /* Adjusted shadow color to match new palette */
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

section {
    padding: 100px 0;
    position: relative;
}

h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

/* --- BACKGROUND FX --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: float 10s infinite ease-in-out;
    max-width: 100vw; /* Prevent blob from pushing width */
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw; /* Ensure nav doesn't exceed viewport */
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s, padding 0.3s;
    box-sizing: border-box; /* Include padding in width calculation */
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo i { color: var(--color-primary); font-size: 1.8rem; }

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* --- FANCY HAMBURGER ICON (Updated for Mobile) --- */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    padding: 10px; /* Increased touch target area */
    z-index: 101;
    position: relative;
    background: none;
    border: none;
}

.mobile-menu-btn i {
    font-size: 2.2rem; /* Slightly larger */
    /* Gradient Text Effect for Icon */
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback color if gradient fails on some mobile browsers */
    color: var(--color-secondary);
    /* Neon Glow Effect */
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.6));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-btn:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 1));
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-img-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: var(--radius);
    transform: rotate(3deg);
    box-shadow: var(--shadow-glow);
    transition: transform 0.5s;
    max-height: 600px;
    object-fit: cover;
}

.hero-img:hover { transform: rotate(0deg) scale(1.02); }

/* --- PROBLEM SECTION --- */
.problem-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-highlight {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 10px;
}

/* --- FEATURES --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: var(--radius);
    transition: transform 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.06);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: white;
}

/* --- AI TOOL SECTION --- */
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* NEW CSS FOR AI INTERFACE MOCKUP */
.phone-mockup-container {
    position: relative;
    background: #1e293b;
    border-radius: 30px;
    border: 8px solid #334155;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    aspect-ratio: 9/16;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1543466835-00a7907e9de1?q=80&w=2874&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    /* Updated filter for Bio-Tech look */
    filter: grayscale(100%) sepia(50%) hue-rotate(130deg) saturate(1.5) contrast(1.2);
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.2), transparent 40%);
    border-bottom: 2px solid #10b981;
    animation: scan-move 2s infinite linear;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
    z-index: 10;
}

@keyframes scan-move {
    0% { top: -100%; }
    100% { top: 100%; }
}

.ai-tags {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
}

.ai-tag {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    border-radius: 12px;
    border-left: 4px solid;
    color: white;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    animation: pop-in 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.ai-tag:nth-child(1) { border-color: var(--color-red); animation-delay: 0.5s; }
.ai-tag:nth-child(2) { border-color: var(--color-tertiary); animation-delay: 1.0s; }

@keyframes pop-in {
    to { opacity: 1; transform: translateY(0); }
}

.face-box {
    position: absolute;
    top: 25%;
    left: 15%;
    width: 70%;
    height: 40%;
    border: 2px dashed rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.face-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--color-secondary);
    border-style: solid;
}
.tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }


/* --- TRACKING --- */
.tracking-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.track-step {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0.5;
    transition: 0.3s;
}

.track-step.active {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--color-primary);
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.step-dot {
    width: 12px;
    height: 12px;
    background: var(--text-muted);
    border-radius: 50%;
}

.track-step.active .step-dot {
    background: var(--color-tertiary);
    box-shadow: 0 0 10px var(--color-tertiary);
}

/* --- ECOSYSTEM GRAPHICS --- */
.graphic-card {
    height: 300px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}
.graphic-card:hover {
    transform: translateY(-5px);
}
.graphic-card i {
    font-size: 5rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 20px;
    transition: 0.3s;
}
.graphic-card:hover i {
    color: rgba(255,255,255,1);
    transform: scale(1.1);
}
.graphic-card .content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* --- STATS COUNTER --- */
.impact-section {
    background: var(--gradient-cool);
    margin: 100px 0;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat-item h3 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
    background: #000;
    padding: 80px 0 40px;
    text-align: center;
}

.footer-cta {
    margin-bottom: 60px;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.app-btn {
    background: #222;
    color: white;
    padding: 10px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid #333;
}

.app-btn:hover { background: #333; border-color: #555; }

/* --- SOCIAL LINK STYLES --- */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.social-link:hover .fa-x-twitter { color: white; }
.social-link:hover .fa-instagram { color: white; }
.social-link:hover .fa-facebook { color: white; }
.social-link:hover .fa-threads { color: white; }

/* --- NAME BADGE STYLES --- */
.name-origin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    backdrop-filter: blur(5px);
}

.origin-part {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: center;
}

.origin-word {
    font-size: 1.2rem;
    font-weight: 800;
}

.origin-meaning {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
/* Tablet (iPad) and smaller laptops */
@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
    .hero-grid, .problem-card, .ai-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero { padding-top: 120px; text-align: center; }
    .hero-text { margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; }
    .hero-img { max-width: 80%; margin: 0 auto; display: block; }
    .stats-grid { grid-template-columns: 1fr; gap: 50px; }
    .ai-tool-interface { min-height: auto; }
    .phone-mockup-container { margin-top: 40px; }

    /* SHOW HAMBURGER ON TABLET & MOBILE */
    .nav-links { display: none; }
    .mobile-menu-btn {
        display: flex !important; /* Forces display on mobile/tablet */
        align-items: center;
    }
}

/* Tablet (≤1024px) — make sure hero CTAs sit comfortably */
@media (max-width: 1024px) {
    .hero-text > div[style*="display: flex"] {
        gap: 12px;
        justify-content: center;
    }
    .hero .btn { padding: 14px 28px; font-size: 1rem; }
}

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 18px; }
    h1 { font-size: 1.9rem; line-height: 1.12; }
    h2 { font-size: 1.6rem; line-height: 1.2; }
    h3 { font-size: 1.1rem; }
    p { font-size: 0.94rem; line-height: 1.5; }
    .hero h1 { font-size: 2rem; line-height: 1.1; }
    .hero p { font-size: 0.95rem; max-width: 100%; }
    section { padding: 56px 0; }
    .feature-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 24px 20px; }
    .problem-card { padding: 28px 18px; }
    .stat-highlight { font-size: 2.6rem; }
    .hero-img { max-width: 100%; transform: rotate(0); }
    .app-badges { flex-direction: column; align-items: center; }
    .app-btn { width: 100%; justify-content: center; }

    /* Compact hero so title + text + CTAs fit one viewport */
    .hero { padding-top: 88px; min-height: auto; }
    .hero-grid { gap: 28px; }
    .hero h1 { margin-bottom: 14px; }
    .hero p { margin-bottom: 20px; }

    /* Buttons side-by-side on mobile so they don't stack and push the next section off-screen */
    .hero-text > div[style*="display: flex"] {
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
    }
    .hero .btn,
    .hero-text > div[style*="display: flex"] .btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        padding: 13px 14px;
        font-size: 0.92rem;
        margin-bottom: 0;
        white-space: nowrap;
    }

    /* Other CTA buttons elsewhere on the page stay full-width-stacked */
    section:not(.hero) .btn { width: 100%; justify-content: center; margin-bottom: 10px; font-size: 1rem; padding: 14px 24px; }

    /* Stat counters scale down */
    .stat-item h3 { font-size: 2.6rem; }

    /* Ensure name badge stacks on small screens */
    .name-origin-badge {
        flex-direction: column;
        gap: 15px;
    }
    .name-origin-badge i {
        transform: rotate(90deg);
    }
}

/* Small phones (≤360px) — slightly tighter typography, keep buttons side-by-side */
@media (max-width: 360px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .hero h1 { font-size: 1.78rem; }
    p { font-size: 0.9rem; }
    .container { padding: 0 14px; }
    .hero-text > div[style*="display: flex"] { gap: 8px; }
    .hero .btn,
    .hero-text > div[style*="display: flex"] .btn {
        font-size: 0.85rem;
        padding: 12px 10px;
    }
}

/* Tiny phones (≤320px iPhone 5/SE 1) — finally let buttons stack */
@media (max-width: 320px) {
    .hero-text > div[style*="display: flex"] { flex-wrap: wrap; }
    .hero .btn,
    .hero-text > div[style*="display: flex"] .btn {
        flex: 1 1 100%;
        font-size: 0.95rem;
        padding: 12px 16px;
    }
}
