/* ========================================
   AVTOCHAT LANDING — MOBILE-FIRST CSS
   ======================================== */

/* --- Variables --- */
:root {
    --bg: #080e1a;
    --bg-2: #0c1424;
    --card: #111c2e;
    --card-2: #162035;
    --border: rgba(255,255,255,0.07);
    --border-bright: rgba(37,99,235,0.35);
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --blue-glow: rgba(37, 99, 235, 0.2);
    --purple-glow: rgba(124, 58, 237, 0.12);
    --text: #e8eef8;
    --text-2: #8a99b8;
    --text-3: #4a5a78;
    --green: #34d399;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 40%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-blue { color: var(--blue-light); }
.text-muted { color: var(--text-2); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-md); }

/* --- Navbar --- */
.navbar {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 999;
    padding: 0;
    transition: background 0.3s, border-color 0.3s;
}
.navbar .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1140px;
    margin: 0 auto;
}
.navbar.scrolled {
    background: rgba(8, 14, 26, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo-mark {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--blue) 0%, #818cf8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; fill: white; }

/* --- Glow Blobs --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.blob-1 { width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; top: -15%; left: -20%; background: radial-gradient(circle, rgba(37,99,235,0.18), transparent 70%); }
.blob-2 { width: 50vw; height: 50vw; max-width: 600px; max-height: 600px; top: 10%; right: -15%; background: radial-gradient(circle, var(--purple-glow), transparent 70%); }
.blob-3 { width: 50vw; height: 50vw; max-width: 600px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, var(--blue-glow), transparent 70%); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 60px;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    text-align: center;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 20px;
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--blue-light);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--text-2);
    max-width: 520px;
    margin: 0 auto 36px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}
.stats-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.stat-val {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}
.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-2);
    font-weight: 500;
}
.divider-dot {
    width: 1px;
    height: 40px;
    background: var(--border);
    align-self: center;
}

/* Phone Mockup */
.mockup-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}
.phone {
    width: 280px;
    height: 560px;
    background: var(--card);
    border-radius: 38px;
    border: 7px solid #1e2a3f;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(4deg) translateY(-4px);
    transition: transform 0.5s ease;
    flex-shrink: 0;
}
.phone:hover { transform: rotateY(-3deg) rotateX(1deg) translateY(-12px); }
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 26px;
    background: #0d1424;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}
.phone-screen {
    height: 100%;
    padding: 36px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.phone-header {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 4px;
}
.phone-tabs {
    display: flex;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid var(--border);
}
.phone-tab {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.7rem;
    border-radius: 7px;
    color: var(--text-2);
    font-weight: 500;
}
.phone-tab.active {
    background: rgba(37,99,235,0.18);
    color: #93c5fd;
    font-weight: 600;
}
.phone-input-card {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
}
.phone-input-label {
    font-size: 0.65rem;
    color: var(--text-3);
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.phone-plate {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    letter-spacing: 2px;
}
.phone-msg-card {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.phone-msg-emoji { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.phone-msg-body { font-size: 0.72rem; color: var(--text); }
.phone-msg-body strong { display: block; margin-bottom: 3px; font-size: 0.75rem; }
.phone-msg-body span { color: var(--text-2); }
.phone-send-btn {
    margin-top: auto;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.phone-home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    background: var(--bg-2);
    padding: 80px 0;
    position: relative;
}
.section-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 12px;
}
.section-title {
    text-align: center;
    font-size: clamp(1.7rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}
.section-sub {
    text-align: center;
    color: var(--text-2);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 48px;
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.feat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37,99,235,0.04), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.feat-card:hover { transform: translateY(-6px); border-color: var(--border-bright); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.feat-card:hover::before { opacity: 1; }
.feat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(37,99,235,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--blue-light);
    border: 1px solid rgba(37,99,235,0.2);
}
.feat-icon svg { width: 26px; height: 26px; }
.feat-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
    padding: 80px 0;
    position: relative;
}
.how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
.how h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 32px; }
.steps { display: flex; flex-direction: column; gap: 24px; }
.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37,99,235,0.12);
    border: 1px solid rgba(37,99,235,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #93c5fd;
    flex-shrink: 0;
}
.step-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.step-body p { font-size: 0.88rem; color: var(--text-2); }
.notif-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}
.notif-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.75rem;
    color: var(--text-3);
}
.notif-app-name { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-2); }
.notif-dot { width: 6px; height: 6px; background: var(--blue-light); border-radius: 50%; }
.notif-bubble {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}
.notif-bubble strong { display: block; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }
.notif-bubble p { font-size: 0.82rem; color: var(--text-2); line-height: 1.5; }
.notif-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.notif-btn {
    flex: 1;
    text-align: center;
    padding: 9px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}
.notif-btn-primary { background: var(--blue); color: #fff; }
.notif-btn-ghost { background: rgba(255,255,255,0.06); color: var(--text-2); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-box {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(124,58,237,0.08) 100%);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: var(--radius-xl);
    padding: 52px 24px;
    text-align: center;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(37,99,235,0.15), transparent 60%);
    pointer-events: none;
}
.cta-box h2 {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
    position: relative;
}
.cta-box p {
    color: var(--text-2);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.store-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    position: relative;
}
.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 13px 22px;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    min-width: 160px;
}
.store-btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.store-btn:active { transform: translateY(0); }
.store-icon { font-size: 1.6rem; }
.store-text { display: flex; flex-direction: column; align-items: flex-start; }
.store-text span { font-size: 0.7rem; color: var(--text-2); }
.store-text strong { font-size: 1rem; font-weight: 700; color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    color: var(--text-2);
    font-size: 0.88rem;
    margin-top: 12px;
    max-width: 260px;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
}
.link-col h5 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 14px;
}
.link-col a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-2);
    margin-bottom: 10px;
    transition: color 0.2s;
}
.link-col a:hover { color: var(--blue-light); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-3);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — TABLET (600px+)
   ============================================================ */
@media (min-width: 600px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-links { grid-template-columns: repeat(3, 1fr); }
    .phone { width: 300px; height: 600px; }
    .hero-title { letter-spacing: -2px; }
}

/* ============================================================
   RESPONSIVE — DESKTOP (900px+)
   ============================================================ */
@media (min-width: 900px) {
    .hero {
        padding: 130px 0 80px;
    }
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .hero-sub { margin-inline-start: 0; }
    .hero-actions { justify-content: flex-start; }
    .stats-row { justify-content: flex-start; }
    .badge { margin-inline-start: 0; }

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

    .how { padding: 100px 0; }
    .how-grid { grid-template-columns: 1fr 1fr; gap: 64px; }

    .cta { padding: 100px 0; }
    .cta-box { padding: 72px 60px; }

    .footer-top { grid-template-columns: 1.5fr 2.5fr; }
    footer { padding: 72px 0 32px; }

    .phone { width: 320px; height: 640px; }
    .mockup-wrap { justify-content: flex-end; }
}

@media (min-width: 1100px) {
    .container { padding: 0 32px; }
    .phone { width: 340px; height: 660px; }
}

/* ============================================================
   SAFE AREA (iPhone notch)
   ============================================================ */
@supports (padding: max(0px)) {
    .navbar .inner { padding-top: max(16px, env(safe-area-inset-top)); }
}
