/* AOA Chat website: homepage, login and small pages. Same colours as the app:
   lavender → mint gradient, deep ink text, soft violet surfaces. */

:root {
    --violet: #8B5CF6;
    --violet-2: #A78BFA;
    --violet-deep: #7C3AED;
    --mint: #6EE7B7;
    --teal: #14B8A6;
    --ink: #1F1640;
    --text: #2A2350;
    --muted: #6B6585;
    --bg: #FBFAFF;
    --surface: #FFFFFF;
    --line: rgba(124, 92, 224, .12);
    --grad: linear-gradient(120deg, #A78BFA 0%, #8B7CF0 40%, #6EE7B7 100%);
    --grad-deep: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 45%, #14B8A6 100%);
    --radius: 22px;
    --shadow: 0 20px 50px rgba(76, 29, 149, .14);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--violet-deep); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
       font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--grad); color: var(--ink); box-shadow: 0 8px 22px rgba(139, 92, 246, .35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(139, 92, 246, .45); }
.btn-ghost { color: var(--violet-deep); background: transparent; }
.btn-ghost:hover { background: rgba(139, 92, 246, .08); }
.btn-glass { background: rgba(255, 255, 255, .7); color: var(--ink); border: 1.5px solid rgba(139, 92, 246, .25); backdrop-filter: blur(8px); }
.btn-white { background: #fff; color: var(--violet-deep); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.btn-outline-white { color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); background: transparent; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); }

.store-btn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 22px 0 16px; border-radius: 16px; background: #14112A; color: #fff;
             box-shadow: 0 10px 24px rgba(20, 17, 42, .3); transition: transform .15s; }
.store-btn:hover { transform: translateY(-1px); }
.store-btn span { display: flex; flex-direction: column; font-weight: 700; font-size: 18px; line-height: 1.1; }
.store-btn small { font-weight: 500; font-size: 11px; opacity: .8; letter-spacing: .02em; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
        font-size: 13px; font-weight: 700; color: var(--violet-deep); box-shadow: 0 4px 14px rgba(124, 92, 224, .1); }
.grad-text { background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-deep); margin-bottom: 12px; }
.eyebrow.light { color: #E9E3FF; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.nav.scrolled { background: rgba(251, 250, 255, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(76, 29, 149, .06); }
.nav-inner { max-width: 1180px; margin: 0 auto; height: 72px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand img { border-radius: 10px; box-shadow: 0 4px 12px rgba(124, 92, 224, .3); }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { background: rgba(139, 92, 246, .08); color: var(--violet-deep); }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 140px 24px 90px;
        background: radial-gradient(1200px 600px at 85% -10%, rgba(110, 231, 183, .25), transparent 60%),
                    radial-gradient(900px 600px at 0% 0%, rgba(167, 139, 250, .28), transparent 60%), var(--bg); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.hero-glow.g1 { width: 420px; height: 420px; background: #C4B5FD; top: 120px; left: -120px; animation: drift 14s ease-in-out infinite; }
.hero-glow.g2 { width: 380px; height: 380px; background: #A7F3D0; bottom: -80px; right: 10%; animation: drift 17s ease-in-out infinite reverse; }
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 850; margin: 22px 0 18px; letter-spacing: -.035em; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-cta.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; padding: 0; margin: 30px 0 0; font-weight: 600; color: var(--muted); font-size: 14px; }

.hero-art { position: relative; height: 620px; }
.phone { width: 280px; border-radius: 42px; padding: 10px; background: #15121F; box-shadow: 0 40px 80px rgba(46, 16, 101, .35), inset 0 0 0 2px rgba(255, 255, 255, .15); }
.phone img { width: 100%; border-radius: 33px; aspect-ratio: 388 / 780; object-fit: cover; object-position: top; }
.phone-front { position: absolute; left: 6%; top: 40px; z-index: 2; transform: rotate(-5deg); animation: bob 7s ease-in-out infinite; }
.phone-back { position: absolute; right: 2%; top: 0; transform: rotate(7deg) scale(.9); opacity: .97; animation: bob 8s ease-in-out infinite reverse; }
.float-chip { position: absolute; z-index: 3; background: #fff; border-radius: 16px; padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--ink);
              box-shadow: 0 14px 34px rgba(76, 29, 149, .18); display: flex; align-items: center; gap: 8px; animation: bob 6s ease-in-out infinite; }
.chip-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #DDD3FF, #C8F5E2); font-size: 15px; }
.chip-a { left: -4%; top: 330px; animation-delay: -1s; }
.chip-b { right: -2%; top: 470px; animation-delay: -3s; }
.chip-c { right: 26%; top: 18px; animation-delay: -2s; font-size: 13px; }
.chip-c .chip-ic { color: #5B21B6; font-weight: 900; letter-spacing: -2px; }
.float-emoji { position: absolute; font-size: 38px; z-index: 4; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .15)); animation: rise 5s ease-in-out infinite; }
.e1 { right: 12%; top: 300px; }
.e2 { left: 44%; top: 560px; animation-delay: -1.7s; font-size: 30px; }
.e3 { left: 2%; top: 90px; animation-delay: -3.2s; font-size: 32px; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes rise { 0% { translate: 0 20px; opacity: 0; scale: .7; } 20% { opacity: 1; scale: 1; } 80% { opacity: 1; } 100% { translate: 0 -70px; opacity: 0; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 40px 30px; } }

/* ---------- sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 100px 24px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head h2, .show-text h2, .web-text h2, .final-cta h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 850; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature h3 { font-size: 18px; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.f-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; box-shadow: 0 8px 18px rgba(124, 92, 224, .18); }
.fi-1 { background: linear-gradient(135deg, #DDD6FE, #A78BFA); }
.fi-2 { background: linear-gradient(135deg, #FBCFE8, #F472B6); }
.fi-3 { background: linear-gradient(135deg, #A7F3D0, #34D399); }
.fi-4 { background: linear-gradient(135deg, #FDE68A, #FBBF24); }
.fi-5 { background: linear-gradient(135deg, #BFDBFE, #60A5FA); }
.fi-6 { background: linear-gradient(135deg, #FED7AA, #FB923C); }
.fi-7 { background: linear-gradient(135deg, #99F6E4, #14B8A6); }
.fi-8 { background: linear-gradient(135deg, #E9D5FF, #C084FC); }

.showcase { display: flex; flex-direction: column; gap: 110px; }
.show-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.show-row.flip .show-phone { order: 2; }
.show-phone { display: flex; justify-content: center; position: relative; }
.show-phone::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--grad); filter: blur(40px); opacity: .35; top: 50%; translate: 0 -50%; }
.show-phone .phone { position: relative; width: 300px; }
.show-text p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.ticks li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #DDD3FF, #C8F5E2); color: #5B21B6; font-size: 13px; font-weight: 900; flex: none; }

.gallery-section { max-width: none; padding-left: 0; padding-right: 0; }
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 10px max(24px, calc((100vw - 1180px) / 2)) 30px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery img { width: 270px; height: auto; border-radius: 26px; scroll-snap-align: center; box-shadow: var(--shadow); flex: none; transition: transform .25s; }
.gallery img:hover { transform: translateY(-6px) rotate(-1deg); }

.web-card { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 60px; border-radius: 36px; background: var(--grad-deep); color: #fff;
            box-shadow: 0 30px 70px rgba(91, 33, 182, .35); overflow: hidden; position: relative; }
.web-card::after { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -150px; top: -200px; }
.web-text h2 { color: #fff; }
.web-text p { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .88); }
.laptop { position: relative; z-index: 1; }
.laptop-screen { border-radius: 16px 16px 0 0; border: 10px solid #15121F; border-bottom-width: 14px; background: #15121F; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.laptop-screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.laptop-base { height: 14px; margin: 0 -6%; background: linear-gradient(#D6D3E6, #A9A4C4); border-radius: 0 0 14px 14px; }

.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.safe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.safe span { font-size: 30px; }
.safe h3 { font-size: 18px; margin: 14px 0 8px; }
.safe p { color: var(--muted); font-size: 15px; }
.safety-link { text-align: center; margin-top: 30px; color: var(--muted); }
.safety-link a { font-weight: 700; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; color: var(--ink); }
.faq summary::after { content: "+"; font-size: 22px; color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; color: var(--muted); }

.final-cta { text-align: center; padding: 80px 24px 110px; }
.final-cta p { color: var(--muted); font-size: 18px; margin-top: 12px; }

/* ---------- footer ---------- */
.footer { background: #14112A; color: rgba(255, 255, 255, .75); padding: 60px 24px 30px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer-brand p { margin-top: 12px; max-width: 280px; font-size: 14px; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.footer-cols a { display: block; color: rgba(255, 255, 255, .7); font-size: 14px; margin: 8px 0; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { max-width: 1180px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

/* ---------- glide-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .phone-front, .phone-back, .float-chip, .float-emoji, .hero-glow { animation: none; }
}

/* ---------- login / sign-up ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: var(--grad-deep); color: #fff; padding: 120px 60px 60px; display: flex; flex-direction: column; }
.auth-side h2 { color: #fff; font-size: 40px; font-weight: 850; }
.auth-side p { color: rgba(255, 255, 255, .85); font-size: 18px; margin-top: 14px; max-width: 440px; }
.auth-side .phone { width: 250px; margin: 40px auto 0; transform: rotate(-4deg); }
.auth-side::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .08); left: -200px; bottom: -220px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 110px 24px 60px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 34px; font-weight: 850; }
.auth-card .sub { color: var(--muted); margin: 8px 0 26px; }
.tabs { display: flex; background: #F1EDFF; border-radius: 14px; padding: 4px; margin-bottom: 26px; }
.tabs button { flex: 1; height: 40px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; font-family: inherit; }
.tabs button.on { background: #fff; color: var(--violet-deep); box-shadow: 0 4px 12px rgba(124, 92, 224, .15); }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input { width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid #E4DEF7; padding: 0 16px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); transition: border .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(167, 139, 250, .2); }
.auth-card .btn { width: 100%; height: 52px; font-size: 16px; margin-top: 6px; }
.auth-msg { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; display: none; }
.auth-msg.error { display: block; background: #FFF1F3; color: #BE123C; }
.auth-msg.ok { display: block; background: #ECFDF5; color: #047857; }
.auth-link { background: none; border: 0; color: var(--violet-deep); font-weight: 700; cursor: pointer; font: inherit; font-size: 14px; padding: 0; margin-top: 14px; }
.auth-foot { margin-top: 22px; font-size: 13px; color: var(--muted); text-align: center; }

.simple-page { min-height: 70vh; display: grid; place-items: center; padding: 140px 24px 80px; }
.simple-card { text-align: center; max-width: 460px; }
.simple-emoji { font-size: 60px; }
.simple-card h1 { margin: 10px 0; }
.simple-card p { color: var(--muted); margin-bottom: 24px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
    .features, .safety { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .lead { margin: 0 auto; }
    .hero-cta, .hero-points { justify-content: center; }
    .hero-art { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
    .show-row, .web-card { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .show-row.flip .show-phone { order: 0; }
    .ticks { justify-items: center; }
    .web-card { padding: 44px 28px; }
    .auth { grid-template-columns: 1fr; }
    .auth-side { display: none; }
}
@media (max-width: 760px) {
    .nav-links { position: fixed; inset: 72px 12px auto 12px; flex-direction: column; background: #fff; border-radius: 20px; padding: 10px;
                 box-shadow: var(--shadow); display: none; margin: 0; }
    .menu-open .nav-links { display: flex; }
    .nav-burger { display: block; }
    .nav-actions .btn-ghost { display: none; }
    .nav-actions .btn { height: 40px; padding: 0 16px; font-size: 14px; }
    .features, .safety { grid-template-columns: 1fr; }
    .section { padding: 70px 20px; }
    .hero { padding: 110px 20px 60px; }
    .hero-art { height: 480px; }
    .phone { width: 220px; border-radius: 34px; }
    .phone img { border-radius: 26px; }
    .phone-front { left: 2%; }
    .chip-a { left: 0; top: 300px; }
    .chip-b { right: 0; top: 400px; }
    .float-chip { font-size: 12px; padding: 8px 10px; }
    .gallery img { width: 220px; }
    .footer-cols { gap: 40px; }
}
