/* Arivaatral — shared stylesheet */

:root {
  --bg: #07090c;
  --bg-soft: #0d1117;
  --bg-card: #11161d;
  --line: #1e2733;
  --line-soft: #161d26;
  --ink: #eef2f7;
  --ink-mid: #9aa7b8;
  --ink-dim: #6b7888;
  --accent: #4da3ff;
  --accent-soft: rgba(77, 163, 255, 0.12);
  --green: #1f7a52;
  --gold: #d4a746;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4da3ff, #7b5cff 55%, #d4a746);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; color: #06080b; line-height: 1;
  flex: none;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--ink-mid);
  font-size: 0.925rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
}

/* ---------- type ---------- */

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 660; }
h3 { font-size: 1.12rem; font-weight: 620; letter-spacing: -0.015em; }

.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-mid); line-height: 1.6; }
.eyebrow {
  font-size: 0.76rem;
  font-weight: 640;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.muted { color: var(--ink-mid); }

section { padding: 92px 0; }
section.tight { padding: 64px 0; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 116px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -320px; left: 50%;
  width: 900px; height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(77,163,255,0.18), transparent 66%);
  pointer-events: none;
}
.hero > * { position: relative; }

.tamil {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.hero h1 { margin-bottom: 22px; }
.hero .lede { max-width: 620px; margin-bottom: 34px; }

.gradient-text {
  background: linear-gradient(100deg, #eef2f7 8%, #8ec5ff 52%, #4da3ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 580;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #06080b; }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: #33404f; background: rgba(255,255,255,0.03); }

/* ---------- cards / grids ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-mid); font-size: 0.95rem; }

.card-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* ---------- product feature card ---------- */

.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(150deg, #0f1720, #0b1016 55%, #0d130f);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 46px;
  overflow: hidden;
}
@media (max-width: 860px) { .product { grid-template-columns: 1fr; padding: 32px; gap: 32px; } }

.product-icon {
  width: 74px; height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(212,167,70,0.28);
  margin-bottom: 22px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}
.product h2 { margin-bottom: 6px; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 640;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,167,70,0.3);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 18px;
}
.product-shots {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.product-shots img {
  width: 44%;
  max-width: 200px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(0,0,0,0.55);
}
.product-shots img:nth-child(2) { transform: translateY(22px); }

/* ---------- store badges ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,0.02);
  color: var(--ink-mid);
  cursor: default;
}
.store-badge .glyph { font-size: 1.4rem; line-height: 1; color: var(--ink); }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge .txt small { font-size: 0.68rem; color: var(--ink-dim); letter-spacing: 0.03em; }
.store-badge .txt strong { font-size: 0.92rem; font-weight: 580; color: var(--ink); }

/* ---------- screenshot strip ---------- */

.shots {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots figure { margin: 0; flex: 0 0 auto; width: 236px; scroll-snap-align: center; }
.shots img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
}
.shots figcaption {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--ink-dim);
  text-align: center;
}

/* ---------- feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--line-soft);
}
.feature:first-of-type { border-top: 0; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; gap: 12px; } }
.feature h3 { color: var(--ink); }
.feature p { margin: 0; color: var(--ink-mid); }
.feature ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-mid); }
.feature li { margin-bottom: 6px; }

/* ---------- doc pages ---------- */

.doc { padding: 64px 0 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 10px; }
.doc .updated { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 40px; }
.doc h2 {
  font-size: 1.28rem;
  margin: 44px 0 12px;
  padding-top: 4px;
}
.doc h3 { margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-mid); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }

.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(77,163,255,0.24);
  border-left-width: 3px;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
}
.callout p { margin: 0; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 22px 0; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 0.93rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
td { color: var(--ink-mid); }

/* ---------- faq ---------- */

details {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--bg-card);
}
details[open] { border-color: #263242; }
summary {
  cursor: pointer;
  font-weight: 570;
  color: var(--ink);
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; float: right; color: var(--ink-dim); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 14px 0 0; color: var(--ink-mid); font-size: 0.95rem; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 52px 0 44px;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--ink-dim); font-size: 0.9rem; margin: 12px 0 0; }
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 620;
}
.footer-col a { display: block; color: var(--ink-mid); font-size: 0.92rem; margin-bottom: 9px; }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-dim);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* ---------- light mode ---------- */

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-soft: #f7f8fa;
    --bg-card: #ffffff;
    --line: #e3e7ed;
    --line-soft: #eceff3;
    --ink: #0d1117;
    --ink-mid: #55606f;
    --ink-dim: #8792a2;
    --accent: #0a66d0;
    --accent-soft: rgba(10, 102, 208, 0.08);
  }
  .nav { background: rgba(255,255,255,0.78); }
  .btn-primary { background: #0d1117; color: #fff; }
  .btn-primary:hover { background: #22303f; }
  .product { background: linear-gradient(150deg, #f6f9fc, #fbfaf6 60%, #f4f8f4); }
  .gradient-text { background: linear-gradient(100deg, #0d1117 8%, #1f6fd0 52%, #0a66d0 92%); -webkit-background-clip: text; background-clip: text; }
  .tamil { color: #8a6712; }
  .tag { color: #8a6712; border-color: rgba(138,103,18,0.3); }
  .shots img, .product-shots img { box-shadow: 0 14px 34px rgba(15,25,40,0.12); }
  .hero::before { background: radial-gradient(ellipse at center, rgba(10,102,208,0.10), transparent 66%); }
}
