:root {
  --green-950: #06170e;
  --green-900: #0b2417;
  --green-800: #0f3320;
  --green-600: #1c6b41;
  --green-500: #2e8f59;
  --gold: #d4a418;
  --gold-soft: #f1c84b;
  --cream: #f6f4ec;
  --ink: #142019;
  --muted: #5f6c65;
  --line: #dfe5df;
  --white: #ffffff;
  --font: 'Plus Jakarta Sans', 'Noto Sans Tamil', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--green-950); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- photo backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--green-900); }
.backdrop .photo { position: absolute; inset: -4%; background: url('bg.jpg') center 45% / cover no-repeat; animation: drift 48s ease-in-out infinite alternate; }
.backdrop .sun { position: absolute; inset: -20%; mix-blend-mode: screen; animation: breathe 14s ease-in-out infinite alternate;
  background: radial-gradient(38% 30% at 72% 18%, rgba(255,226,150,.40), rgba(255,210,120,.10) 45%, transparent 70%); }
.backdrop .haze { position: absolute; inset: 0 -50%; animation: haze 60s linear infinite;
  background: linear-gradient(100deg, transparent 20%, rgba(235,245,230,.09) 35%, transparent 48%, rgba(235,245,230,.07) 62%, transparent 76%); }
.backdrop .shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,22,13,.93) 0%, rgba(7,26,16,.78) 42%, rgba(9,32,20,.42) 72%, rgba(9,32,20,.32) 100%),
              linear-gradient(0deg, rgba(5,18,11,.75) 0%, transparent 35%); }
@keyframes drift { 0% { transform: scale(1.04); } 50% { transform: scale(1.11) translate(-1.6%, -.8%); } 100% { transform: scale(1.16) translate(-3%, .6%); } }
@keyframes breathe { from { opacity: .55; transform: translateX(-1.5%); } to { opacity: 1; transform: translateX(1.5%); } }
@keyframes haze { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
@media (prefers-reduced-motion: reduce) { .backdrop .photo, .backdrop .sun, .backdrop .haze { animation: none; } }
@media (max-width: 900px) { .backdrop .shade { background: linear-gradient(180deg, rgba(6,22,13,.72), rgba(6,22,13,.88) 50%, rgba(6,22,13,.95)); } }

/* ---------- layout ---------- */
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; color: rgba(255,255,255,.86); }
.top { display: flex; align-items: center; gap: 14px; padding: 22px clamp(16px, 4vw, 48px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; background: rgba(212,164,24,.16); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.brand .mark svg { width: 21px; height: 21px; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: rgba(255,255,255,.55); letter-spacing: 0; }
.spacer { flex: 1; }
.lang { appearance: none; -webkit-appearance: none; height: 36px; padding: 0 30px 0 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; color: #fff; font: 600 .85rem var(--font); }
.lang option { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 11px; border: 1px solid transparent; font: 700 .95rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: #2b2100; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-sm { height: 38px; padding: 0 14px; font-size: .875rem; border-radius: 9px; }
.btn-green { background: var(--green-600); color: #fff; }
.btn-green:hover { background: var(--green-500); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- home ---------- */
.hero { flex: 1; display: grid; align-content: center; padding: 24px clamp(16px, 4vw, 48px) 48px; max-width: 1240px; width: 100%; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: 99px; background: rgba(212,164,24,.14); border: 1px solid rgba(212,164,24,.35); color: var(--gold-soft); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(212,164,24,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,164,24,.55); } 70% { box-shadow: 0 0 0 10px rgba(212,164,24,0); } 100% { box-shadow: 0 0 0 0 rgba(212,164,24,0); } }
h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.3rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; margin: 0 0 22px; max-width: 15ch; text-wrap: balance; }
h1 em { font-style: normal; color: var(--gold); }
:lang(ta) h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.25; letter-spacing: -.01em; max-width: 22ch; }
:lang(zh) h1 { letter-spacing: 0; line-height: 1.18; }
.lede { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; max-width: 58ch; color: rgba(255,255,255,.76); margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.14); max-width: 1100px; }
.feature { padding: 20px 20px 4px 0; }
.feature + .feature { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
.feature svg { width: 24px; height: 24px; color: var(--gold); margin-bottom: 10px; }
.feature strong { display: block; color: #fff; font-size: .98rem; margin-bottom: 4px; }
.feature span { font-size: .86rem; line-height: 1.5; color: rgba(255,255,255,.62); }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { border-left: 0; padding-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .cta .btn { flex: 1 1 100%; }
}
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } .feature + .feature { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); } .top .hide-sm { display: none; } }
.foot { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; padding: 16px clamp(16px, 4vw, 48px) 22px; font-size: .78rem; color: rgba(255,255,255,.5); }
.foot a { color: rgba(255,255,255,.6); }

/* ---------- sign in ---------- */
.auth { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); gap: 48px; align-items: start; padding: 20px clamp(16px, 4vw, 48px) 48px; max-width: 1240px; width: 100%; margin: 0 auto; }
.auth-side h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.auth-side .lede { margin-bottom: 20px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.78); }
.check-list svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.card { background: var(--white); color: var(--ink); border-radius: 18px; padding: 26px 24px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.card h2 { margin: 0 0 4px; font-size: 1.35rem; letter-spacing: -.01em; }
.card .sub { color: var(--muted); font-size: .9rem; margin: 0 0 18px; line-height: 1.5; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #eef2ee; margin-bottom: 18px; }
.tabs button { height: 38px; border: 0; border-radius: 9px; background: transparent; font: 700 .875rem var(--font); color: var(--muted); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fdf3d6; color: #6d5208; font-size: .86rem; line-height: 1.45; margin-bottom: 16px; }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; color: #34413a; }
.field input, .field select, .field textarea { width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #c8d1c9; font: 500 .95rem var(--font); color: var(--ink); background: #fff; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(28,107,65,.2); }
.field input:disabled { background: #f3f5f2; color: #9aa59e; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 4px 0 16px; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--green-600); flex-shrink: 0; }
.card .btn { width: 100%; }
.small { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 10px 0; }
.done svg { width: 48px; height: 48px; color: var(--green-600); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; gap: 28px; } .auth-side { order: 2; } }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lang { max-width: 96px; padding-right: 24px; font-size: .8rem; } .brand { font-size: 1rem; } .top { gap: 8px; } }