:root {
  --bg: #15141a;
  --band: #1d1c24;
  --panel: #211f29;
  --panel-2: #25232e;
  --line: #2a2833;
  --line-2: #34313f;
  --edge: #4a4657;
  --text: #f5efe4;
  --text-soft: #cfc9d8;
  --muted: #aba5b8;
  --faint: #8e889c;
  --accent: #f6ad55;
  --accent-hover: #fbd38d;
  --tile-1: #fbd38d;
  --tile-2: #f6ad55;
  --tile-3: #4fd1c5;
  --tile-4: #7f9cf5;
  --ink: #15141a;
  --heading: "Poppins", system-ui, sans-serif;
  --body: "Hind Madurai", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.2; margin: 0; color: var(--text); }
p { margin: 0; }
[lang="ta"] { font-family: var(--body); }

a { color: var(--tile-1); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--tile-1); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
@media (min-width: 1100px) { .wrap { padding: 0 48px; } }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
@media (min-width: 900px) { .site-header .wrap { height: 88px; } }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; padding: 8px 0; }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--heading); font-weight: 600; font-size: 19px; }
@media (max-width: 479px) { .brand-name { display: none; } }
.mark { display: grid; grid-template-columns: repeat(2, 14px); gap: 3px; flex-shrink: 0; }
.mark span { height: 14px; border-radius: 4px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--text); text-decoration: none; font-size: 16px; padding: 12px 9px; border-radius: 8px; }
.nav a:hover { color: var(--tile-1); }
.nav .nav-cta { display: none; }
@media (min-width: 900px) {
  .nav { gap: 20px; }
  .nav a { font-size: 17px; padding: 10px 8px; }
  .nav .nav-cta {
    display: inline-flex; margin-left: 12px; padding: 12px 20px; border-radius: 12px;
    background: var(--accent); color: var(--ink); font-family: var(--heading); font-weight: 600; font-size: 15px;
  }
  .nav .nav-cta:hover { background: var(--accent-hover); color: var(--ink); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 12px; border: 0; cursor: pointer;
  font-family: var(--heading); font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn-ghost { color: var(--text); box-shadow: inset 0 0 0 1px var(--edge); }
.btn-ghost:hover { background: var(--panel); color: var(--text); }
.btn svg { flex-shrink: 0; }
@media (min-width: 900px) { .btn { min-height: 54px; } }

.kicker {
  font-family: var(--heading); font-weight: 600; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
@media (min-width: 900px) { .kicker { font-size: 14px; } }

/* Hero */
.hero { padding: 36px 0 44px; }
.hero .wrap { display: grid; gap: 22px; grid-template-areas: "copy" "board" "actions"; }
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-family: var(--heading); font-weight: 600; font-size: 15px; color: var(--tile-1); }
.hero h1 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 520px; }
.actions { grid-area: actions; display: flex; flex-direction: column; gap: 12px; }
.actions .btn-ghost { display: none; }

.board-wrap { grid-area: board; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.board { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile {
  height: 78px; border: 0; border-radius: 14px; padding: 0; cursor: pointer;
  font-family: var(--heading); font-weight: 700; font-size: 36px; color: var(--ink);
  transition: transform 0.18s ease;
}
.tile:hover { transform: translateY(-3px); }
.board.shuffling .tile { animation: flip 0.45s ease; }
@keyframes flip { 50% { transform: rotateX(90deg) scale(0.9); } }
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:hover { transform: none; }
  .board.shuffling .tile { animation: none; }
}
.acronym { font-family: var(--heading); font-weight: 500; font-size: 14px; color: var(--muted); text-align: center; }
.acronym b { color: var(--tile-1); font-weight: 700; }
.t1 { background: var(--tile-1); }
.t2 { background: var(--tile-2); }
.t3 { background: var(--tile-3); }
.t4 { background: var(--tile-4); }

@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; row-gap: 26px;
    grid-template-areas: "copy board" "actions board";
  }
  .hero-copy { gap: 26px; align-self: end; }
  .eyebrow { font-size: 16px; }
  .lede { font-size: 20px; }
  .actions { flex-direction: row; align-self: start; }
  .actions .btn-ghost { display: inline-flex; }
  .board-wrap { align-self: center; }
  .board {
    width: 380px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
    padding: 18px; background: var(--panel); border-radius: 28px;
  }
  .tile { height: 172px; border-radius: 20px; font-size: 84px; }
  .acronym { font-size: 16px; }
}

/* Sections */
section { padding: 44px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.band { background: var(--band); }
.section-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }

/* Workbench */
.bench { display: grid; gap: 20px; }
.bench-copy { display: flex; flex-direction: column; gap: 20px; }
.bench-copy > p { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 540px; }
.phone { display: none; }
.q-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.q {
  height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-weight: 700; font-size: 22px; background: var(--line); color: var(--edge);
}
.q.t1, .q.t2, .q.t3, .q.t4 { color: var(--ink); }
.q.t1 { background: var(--tile-1); }
.q.t2 { background: var(--tile-2); }
.q.t3 { background: var(--tile-3); }
.q.t4 { background: var(--tile-4); }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.steps .bar { height: 5px; border-radius: 3px; background: var(--line-2); }
.steps .done .bar { background: var(--tile-3); }
.steps .now .bar { background: var(--accent); }
.steps .label { font-family: var(--heading); font-weight: 600; font-size: 13px; line-height: 1.3; }
.steps .now .label { color: var(--accent); }
.steps .next .label { color: var(--muted); }
.steps .state { display: none; font-size: 14px; color: var(--faint); }
.steps .now .state { color: var(--muted); }
.steps .full { display: none; }

.early {
  display: flex; flex-direction: column; gap: 12px; margin-top: 4px;
  padding: 20px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 16px;
}
.early h3 { font-size: 17px; font-weight: 600; }
.early p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.early .fine { font-size: 13px; color: var(--faint); }
.early .fine a { color: var(--muted); }

@media (min-width: 900px) {
  .bench { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .bench-copy { gap: 28px; }
  .bench-copy > p { font-size: 19px; }
  .phone {
    display: flex; flex-direction: column; justify-content: center; gap: 12px; justify-self: center;
    width: 300px; height: 600px; padding: 18px; border-radius: 44px;
    background: #0e0d12; border: 10px solid var(--line);
  }
  .phone .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .phone .q { height: 74px; border-radius: 14px; font-size: 28px; }
  .phone .wraps {
    margin-top: 18px; text-align: center; font-family: var(--heading); font-weight: 600;
    font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
  }
  .q-row { display: none; }
  .steps { gap: 8px; }
  .steps .bar { height: 6px; }
  .steps .label { font-size: 15px; }
  .steps .state { display: block; }
  .steps .full { display: inline; }
  .early { max-width: 540px; padding: 26px 28px; gap: 14px; border-radius: 18px; }
  .early h3 { font-size: 19px; }
  .early p { font-size: 16px; }
  .early .fine { font-size: 14px; }
  .early .btn { align-self: flex-start; }
}

/* Name */
.name { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.name-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.name-big { font-family: var(--heading); font-weight: 700; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.15; letter-spacing: -0.02em; }
.name-sum { font-family: var(--heading); font-weight: 600; font-size: clamp(24px, 2.8vw, 40px); color: var(--tile-1); }
.name-grid { display: grid; gap: 16px; width: 100%; max-width: 1040px; text-align: left; }
.name-card { background: var(--panel); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.name-card h3 { font-size: 18px; font-weight: 600; }
.name-card p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.mini-tiles { display: flex; gap: 8px; }
.mini-tiles span {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-weight: 700; font-size: 14px; color: var(--ink);
}
@media (min-width: 900px) {
  .name { gap: 44px; }
  .name-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .name-card { padding: 28px 32px; }
}

/* Contact */
.contact { display: flex; flex-direction: column; gap: 20px; }
.contact-copy { display: flex; flex-direction: column; gap: 8px; }
.contact-copy p { font-size: 18px; color: var(--muted); }
.email-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 4px 4px 4px 16px;
}
.email-pill a { font-family: var(--heading); font-weight: 600; font-size: 16px; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.email-pill a:hover { color: var(--tile-1); }
.copy {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 44px; padding: 0 14px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--line-2); color: var(--text); font-family: var(--heading); font-weight: 600; font-size: 14px;
}
.copy:hover { background: var(--edge); }
@media (min-width: 900px) {
  .contact { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .contact-copy .section-title { font-size: 34px; }
  .email-pill { border-radius: 14px; padding: 6px 6px 6px 22px; }
  .email-pill a { font-size: 20px; padding-right: 14px; }
  .copy { height: 48px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 28px; }
.site-footer a { color: var(--muted); padding: 6px 0; }
.site-footer a:hover { color: var(--text); }
@media (min-width: 900px) {
  .site-footer { font-size: 15px; }
  .site-footer .wrap { height: 72px; padding-top: 0; padding-bottom: 0; }
}

/* Privacy policy */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 808px; }
@media (min-width: 900px) { .doc { padding: 72px 0 96px; } }
.back { display: inline-block; margin-bottom: 28px; font-size: 16px; text-decoration: none; }
.doc h1 { font-size: clamp(34px, 4vw, 46px); line-height: 1.15; }
.doc .meta { margin-top: 12px; color: var(--muted); font-size: 17px; }
.doc h2 { margin-top: 44px; font-weight: 600; font-size: 22px; }
.doc p, .doc ul { margin-top: 12px; font-size: 18px; line-height: 1.7; color: var(--text-soft); }
.doc .intro { margin-top: 28px; }
.doc ul { padding-left: 24px; }
.doc li + li { margin-top: 6px; }

/* 404 */
.lost { min-height: calc(100vh - 88px); display: flex; align-items: center; justify-content: center; padding: 64px 0; text-align: center; }
.lost .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.lost .mini-tiles { gap: 12px; }
.lost .mini-tiles span { width: 80px; height: 80px; border-radius: 14px; font-size: 40px; }
.lost .mini-tiles span.small { font-size: 32px; }
@media (min-width: 900px) {
  .lost .mini-tiles span { width: 96px; height: 96px; font-size: 48px; }
  .lost .mini-tiles span.small { font-size: 40px; }
}
.lost h1 { margin-top: 12px; font-size: clamp(64px, 10vw, 88px); line-height: 1; }
.lost p { color: var(--muted); font-size: 18px; max-width: 520px; }
@media (min-width: 900px) { .lost p { font-size: 20px; } }
.lost .btn { margin-top: 12px; }
