/* =========================================================
   SARANG AI TECHNOLOGIES INC. — shared design system
   Static, dependency-free. Works on any host.
   ========================================================= */

:root {
  /* Brand */
  --brand-1: #6366f1;   /* indigo  */
  --brand-2: #8b5cf6;   /* violet  */
  --brand-grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));

  /* Per-app accents (overridden per page via [data-app]) */
  --accent: var(--brand-1);
  --accent-soft: rgba(99, 102, 241, .12);

  /* Neutrals */
  --ink: #0f1222;
  --ink-2: #3a3f57;
  --muted: #6b7188;
  --line: #e7e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-card: #ffffff;
  --white: #ffffff;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 34, .06), 0 1px 3px rgba(16, 18, 34, .04);
  --shadow-md: 0 10px 30px -12px rgba(16, 18, 34, .18);
  --shadow-lg: 0 30px 60px -20px rgba(16, 18, 34, .28);

  --maxw: 1120px;
  --nav-h: 68px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f4fb;
    --ink-2: #c7cadd;
    --muted: #9aa0bd;
    --line: #262a44;
    --bg: #0b0d1a;
    --bg-soft: #10132a;
    --bg-card: #14172e;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 10px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
  }
}

/* ---------- Per-app accent themes ---------- */
.app-roostly  { --accent: #f59e0b; --accent-soft: rgba(245,158,11,.13); }
.app-plainova { --accent: #2563eb; --accent-soft: rgba(37,99,235,.12); }
.app-petready { --accent: #f43f5e; --accent-soft: rgba(244,63,94,.12); }
.app-labelxray{ --accent: #10b981; --accent-soft: rgba(16,185,129,.13); }

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; color: var(--ink-2); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px -8px var(--brand-1); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px var(--brand-1); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-grad);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 16px -6px var(--brand-1);
}
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--ink-2); transition: background .18s, color .18s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--bg-soft); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 8vw, 96px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(50% 50% at 90% 20%, rgba(139,92,246,.18), transparent 60%),
    radial-gradient(60% 60% at 70% 100%, rgba(99,102,241,.12), transparent 60%);
}
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .25s ease, border-color .2s;
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* App card */
.app-card { position: relative; overflow: hidden; }
.app-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent);
}
.app-icon {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.app-icon svg { width: 30px; height: 30px; }
.app-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.app-card .tag { font-size: .78rem; font-weight: 600; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.app-card p { flex: 1; }
.app-card .card-link { margin-top: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.app-card .card-link svg { width: 16px; height: 16px; transition: transform .18s; }
.app-card:hover .card-link svg { transform: translateX(3px); }

/* Feature (icon + text) */
.feature .fi {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature .fi svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; }
.feature p { font-size: .96rem; margin: 0; }

/* ---------- Stat row ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { flex: 1 1 160px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stat b { display: block; font-size: 1.9rem; letter-spacing: -.02em; color: var(--ink); }
.stat span { font-size: .9rem; color: var(--muted); }

/* ---------- Split / app detail ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}

/* Phone mock */
.phone {
  width: min(280px, 78vw); aspect-ratio: 9 / 19; margin-inline: auto;
  border-radius: 38px; background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 14px; position: relative;
}
.phone::before { content:""; position:absolute; top:14px; left:50%; transform:translateX(-50%); width:36%; height:22px; background:var(--ink); opacity:.9; border-radius:0 0 14px 14px; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--bg)) , var(--bg));
  display: flex; flex-direction: column; padding: 40px 18px 18px; gap: 12px;
}
.phone-line { height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 26%, transparent); }
.phone-line.short { width: 55%; }
.phone-block { flex: 1; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------- List check ---------- */
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand-grad); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px); text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 54ch; margin-inline: auto; }
.cta-band .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.24); }
.cta-band .btn-primary { background: #fff; color: var(--brand-1); box-shadow: none; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; color: var(--ink-2); }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .muted { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer a { display: block; color: var(--ink-2); padding: 5px 0; font-size: .95rem; }
.footer a:hover { color: var(--accent); }
.footer .brand { margin-bottom: 12px; }
.footer .fine { max-width: 34ch; font-size: .9rem; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}
