/* GaganMitra website: night-sky navy, Astrophiles blue, star gold. */
:root {
  --bg: #050812;
  --bg2: #0b1532;
  --surface: #111827;
  --line: #1f2a44;
  --text: #e8ecf6;
  --muted: #9aa6c2;
  --blue: #4aaaf5;
  --blue-soft: #8cceff;
  --gold: #ffae3d;
  --warn: #f87171;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 80% -10%, #16295a 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: Quicksand, system-ui, sans-serif; line-height: 1.2; margin: 0 0 0.6rem; }

/* A faint fixed starfield drawn with gradients (no image to load). */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 42%, #cfe6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 56%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 86%, #ffe2a3 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 90%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 50%, #fff 50%, transparent 51%);
  background-size: 640px 640px;
}

.top, main, .foot { max-width: 1100px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Quicksand, system-ui, sans-serif; font-size: 1.35rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; }
.brand i { font-style: normal; font-weight: 700; color: var(--blue); }
.top nav { display: flex; gap: 20px; font-size: 0.95rem; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 0.02em; margin: 0 0 12px; font-size: 0.95rem; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
.hero h1 span { color: var(--blue); }
.lead { color: #c9d2e8; font-size: 1.15rem; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 28px 0 22px; }
.soon {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600;
  background: linear-gradient(180deg, #8cceff, #2f8ee6); color: #04101f;
}
.link { font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pills li { border: 1px solid var(--line); background: rgba(17, 24, 39, 0.7); color: var(--muted); padding: 5px 12px; border-radius: 999px; font-size: 0.88rem; }

/* Phone frame around screenshots */
.phone {
  margin: 0; padding: 10px; border-radius: 34px; background: #0a0f1c;
  border: 1px solid #26314f; box-shadow: 0 30px 80px -30px rgba(74, 170, 245, 0.35), 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 300px; justify-self: center;
}
.phone img { border-radius: 25px; }
.hero-phone { max-width: 330px; }

/* Features */
.features { padding-bottom: 40px; }
.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature.flip > figure { order: 2; }
.feature h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.feature p { color: #c9d2e8; max-width: 34em; }
.note { color: var(--warn) !important; font-weight: 600; font-size: 0.95rem; }

.tiles { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tiles li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tiles h3 { font-size: 1.1rem; color: #fff; }
.tiles p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Languages */
.languages { text-align: center; padding: 64px 0; border-top: 1px solid var(--line); }
.languages h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.languages > p { color: var(--muted); }
.langs { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; }
.langs li { font-size: 1.35rem; padding: 10px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }

/* About */
.about { display: flex; gap: 24px; align-items: flex-start; background: linear-gradient(135deg, #0b1532, #111827); border: 1px solid var(--line); border-radius: 24px; padding: 32px; margin: 16px 0 64px; }
.about img { flex: none; border-radius: 18px; }
.about h2 { font-size: 1.6rem; }
.about p { color: #c9d2e8; margin: 0 0 0.6rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: 0.9rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.foot p { margin: 0.3rem 0; }

/* Privacy policy page */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 0 64px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.doc .muted { color: var(--muted); }
.doc p, .doc li { color: #d3dbee; }
.doc table { width: 100%; border-collapse: collapse; margin: 0.6rem 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { color: #fff; }
.doc .warn { color: var(--warn); font-weight: 600; }

/* Phones and small tablets */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature.flip > figure { order: 0; }
  .phone { max-width: 270px; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .top, main, .foot { padding-left: 16px; padding-right: 16px; }
  .top nav { gap: 14px; }
  .top nav a[href="#languages"] { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .about { flex-direction: column; padding: 24px; }
  .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; width: 100%; }
  .doc tr:first-child { display: none; }
  .doc tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { color: #fff; font-weight: 600; }
}
