/*
  Chaatie — Sleek AI-inspired theme
  Palette: Deep Navy #0B1220, Ink #0F1629, Electric Violet #6B5CFF, Sky Cyan #4CC9F0, Mint #5EF1D5, Slate #A5B4CF, Pure #FFFFFF
  Accents inspired by etown.com; spacing and cards inspired by thunai.ai & modern AI sites.
*/

:root {
  /* Deep blue theme aligned with header */
  --bg: #0b1220;   /* deep navy */
  --bg-2: #0f1629; /* slightly lighter panel */
  --text: #eaf2ff;
  --muted: #b8c6e8;
  --primary: #5a7eff;    /* cohesive blue */
  --accent: #4cc9f0;     /* cool cyan accent */
  --success: #4cc9f0;    /* align badge accent to blue family */
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --ring: 0 0 0 3px rgba(90,126,255,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 520px at 110% -10%, rgba(90,126,255,0.18), transparent),
    radial-gradient(700px 420px at -10% 110%, rgba(76,201,240,0.12), transparent),
    linear-gradient(180deg, #0b1220 0%, #0f1629 40%, #0b1220 100%);
  line-height: 1.6;
}

/* Language-specific font stacks for Indic scripts */
html[lang="hi"] body { font-family: 'Noto Sans Devanagari', 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
html[lang="ta"] body { font-family: 'Noto Sans Tamil', 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
html[lang="te"] body { font-family: 'Noto Sans Telugu', 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
html[lang="kn"] body { font-family: 'Noto Sans Kannada', 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 8px 12px; background: var(--primary); color: #fff; border-radius: 8px; }

/* A11y utility */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(11,18,32,0.9), rgba(11,18,32,0.6) 50%, rgba(11,18,32,0));
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { height: 54px; width: auto; filter: drop-shadow(0 4px 12px rgba(90,126,255,0.45)); }

@media (min-width: 1024px) {
  .brand img { height: 64px; }
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: none; list-style: none; padding: 0; margin: 0; gap: 18px; }
.nav a { color: var(--text); text-decoration: none; opacity: 0.9; }
.nav a:hover { opacity: 1; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: transparent; border: none; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: #dfe6ff; border-radius: 2px; }

/* Language switcher */
.lang-switcher { appearance: none; -webkit-appearance: none; background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font: inherit; cursor: pointer; }
.lang-switcher:focus-visible { outline: none; box-shadow: var(--ring); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav ul { display: flex; }
}

/* Mobile nav dropdown */
.nav.open ul { display: flex; flex-direction: column; position: absolute; top: 56px; right: 0; background: rgba(15,22,41,0.96); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.45); min-width: 200px; }
.nav.open ul a { padding: 8px 10px; border-radius: 8px; }
.nav.open ul a:hover { background: rgba(255,255,255,0.06); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-small { padding: 9px 14px; font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #7ea0ff); border-color: transparent; box-shadow: 0 10px 20px rgba(90,126,255,.35); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: rgba(255,255,255,0.06); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #37d7ff); color: #08101f; border-color: transparent; }

/* Hero */
.hero { padding: 72px 0 32px; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.hero h1 { font-size: clamp(32px, 3.4vw, 54px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 18px); margin: 0 0 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 16px; }
.quick-points { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 16px; color: #cbd8ff; padding: 0; margin: 18px 0 0; list-style: none; }
.quick-points li { display: inline-flex; align-items: center; gap: 8px; }

.hero-visual { display: grid; place-items: center; }
.device { width: 270px; height: 560px; border-radius: 36px; background: linear-gradient(180deg,#0e1730,#091226); border: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow); position: relative; }
.device-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0b1220; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
.device-screen { position: absolute; inset: 8px; border-radius: 30px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02)), radial-gradient(600px 400px at 50% -10%, rgba(107,92,255,0.25), transparent), #0c1324; overflow: hidden; }
.device-shot { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; opacity:.9; mix-blend-mode: screen; }
.screen-gradient { position: absolute; inset: 0; background: radial-gradient(420px 260px at 80% 10%, rgba(47,107,255,0.20), transparent), radial-gradient(320px 220px at 20% 90%, rgba(0,194,255,0.16), transparent), radial-gradient(260px 180px at 50% 70%, rgba(255,147,59,0.10), transparent); animation: glowShift 10s ease-in-out infinite alternate; }
@keyframes glowShift { from { transform: translateY(0); filter: hue-rotate(0deg) saturate(110%);} to { transform: translateY(-4%); filter: hue-rotate(12deg) saturate(130%);} }
.glass-card { position: absolute; left: 14px; right: 14px; bottom: 18px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 6px 30px rgba(0,0,0,0.4); backdrop-filter: blur(10px); }
.glass-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.glass-badge { font-size: 12px; color: #08101f; background: var(--success); padding: 4px 8px; border-radius: 999px; font-weight: 700; }
.glass-dot { width: 6px; height: 6px; background: #ff6b6b; border-radius: 999px; box-shadow: 0 0 0 4px rgba(255,107,107,0.15); }
.glass-pill { font-size: 12px; color: #eaf1ff; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); }
.glass-content h3 { margin: 0 0 4px; font-size: 16px; }
.glass-content p { margin: 0; color: #b9c7ea; font-size: 13px; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* Sections */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 24px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(24px,2.6vw,36px); }
.section-head p { margin: 0; color: var(--muted); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: #c7d4f5; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); }
.icon.gradient { background: linear-gradient(135deg, rgba(47,107,255,0.55), rgba(0,194,255,0.55)); border: none; }
.icon .glyph { width: 22px; height: 22px; display:block; margin: 9px; color: rgba(255,255,255,0.92); }

/* How */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.steps li { position: relative; padding: 18px 16px 16px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.step-num { position: absolute; top: -14px; left: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(180deg, var(--primary), #66a3ff); color: #fff; font-weight: 800; box-shadow: 0 8px 20px rgba(47,107,255,.35); }

/* Download */
.download { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02)), radial-gradient(900px 520px at 85% 0%, rgba(90,126,255,0.18), transparent), radial-gradient(780px 440px at 10% 120%, rgba(76,201,240,0.12), transparent), var(--bg-2); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.download-grid { display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--text); border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); }
.store small { display: block; font-size: 11px; color: #cbd8ff; }
.store-apple { background: linear-gradient(135deg, rgba(107,92,255,0.25), rgba(107,92,255,0.05)); }
.store-play { background: linear-gradient(135deg, rgba(76,201,240,0.25), rgba(76,201,240,0.05)); }
.download-visual { position: relative; min-height: 160px; border-radius: var(--radius); border: 1px solid var(--border); background: radial-gradient(360px 240px at 70% 30%, rgba(107,92,255,0.18), transparent), radial-gradient(340px 260px at 30% 70%, rgba(94,241,213,0.18), transparent), rgba(255,255,255,0.04); box-shadow: var(--shadow); }
.download-visual .badge { position: absolute; top: 14px; left: 14px; background: #fff; color: #0b1220; border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: 12px; }
.download-visual .orb { position: absolute; right: 18px; bottom: 18px; width: 80px; height: 80px; border-radius: 999px; background: radial-gradient(circle at 30% 30%, #2f6bff, #00c2ff); filter: blur(2px) saturate(120%); box-shadow: 0 10px 40px rgba(47,107,255,.45); }

@media (min-width: 920px) {
  .download-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* CTA */
.cta { padding: 64px 0 72px; }
.cta-card { display: grid; place-items: center; gap: 12px; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 32px 0; background: linear-gradient(0deg, rgba(255,255,255,0.03), rgba(255,255,255,0)); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer-brand .brand { margin-bottom: 8px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 24px; }
.footer-nav h4 { margin: 0 0 6px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav a { color: var(--text); text-decoration: none; opacity: .85; }
.footer-nav a:hover { opacity: 1; }
.contact { list-style: none; padding: 0; margin: 10px 0 0; color: var(--muted); }
.contact a { color: var(--muted); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 16px; padding-top: 16px; text-align: center; }
.muted { color: var(--muted); }

@media (min-width: 840px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}

/* Utilities */
img { max-width: 100%; height: auto; }
::selection { background: rgba(107,92,255,0.35); color: #fff; }

/* Partners row */
.partners { display:flex; gap:28px; flex-wrap:wrap; align-items:center; justify-content:center; }
.partner-logo { opacity:.9; filter: grayscale(100%) brightness(1.05); transition: transform .2s ease, filter .2s ease, opacity .2s ease; image-rendering:auto; }
.partner-logo:hover { transform: translateY(-2px) scale(1.02); filter: grayscale(0%) brightness(1.0); opacity:1; }
.partner-logo.color { filter: none; opacity: .95; }
.partner-logo.color:hover { transform: translateY(-2px) scale(1.02); filter: none; opacity: 1; }
