/* Shared by / and /platform: Solar tokens, day and night, type, buttons, nav, facts, browser frame, closing, footer. */
/* Solar, the palette the console and the phone app use: deep field green, a lime sun,
   coral for anything that needs a follow-up. Night keeps the same hues on a forest ground. */
:root {
  --ground: #fbfaf5;
  --ground-2: #f2f5ee;
  --surface: #ffffff;
  --ink: #10231c;
  --muted: #5b6f66;
  --line: #e2ebe4;
  --deep: #0b5c44;
  --green: #0f7a5a;
  --green-text: #0f7a5a;
  --lime: #b6f05e;
  --lime-tint: #f1fbdc;
  --mint: #e6f7ea;
  --coral: #e8542a;
  --frame: #10231c;
  --shot-shadow: 0 30px 80px -40px rgba(16, 35, 28, .45);
  --card-shadow: 0 8px 24px rgba(16, 35, 28, .06);
  --display: "Outfit", "Noto Sans Telugu", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Noto Sans Telugu", system-ui, sans-serif;
  --telugu: "Noto Sans Telugu", var(--body);
  --max: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0a1c16;
    --ground-2: #0e241c;
    --surface: #112a21;
    --ink: #e9f2ec;
    --muted: #a1b7ac;
    --line: #1f3c31;
    --green-text: #5fd3a2;
    --lime-tint: #1a2f17;
    --mint: #143326;
    --coral: #ff8a63;
    --frame: #031109;
    --shot-shadow: 0 30px 90px -40px rgba(0, 0, 0, .8);
    --card-shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0a1c16;
  --ground-2: #0e241c;
  --surface: #112a21;
  --ink: #e9f2ec;
  --muted: #a1b7ac;
  --line: #1f3c31;
  --green-text: #5fd3a2;
  --lime-tint: #1a2f17;
  --mint: #143326;
  --coral: #ff8a63;
  --frame: #031109;
  --shot-shadow: 0 30px 90px -40px rgba(0, 0, 0, .8);
  --card-shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button { font: inherit; }
button { color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.te { font-family: var(--telugu); font-weight: 700; }
.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 34em; }
.skip { position: fixed; z-index: 1000; left: 16px; top: -80px; padding: .75rem 1rem; border-radius: 12px; background: var(--ink); color: var(--ground); text-decoration: none; }
.skip:focus { top: 16px; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border-radius: 16px;
  border: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform .18s ease-out, box-shadow .18s ease-out, background-color .18s ease-out;
}
.button:hover { transform: translateY(-1px); }
.button.sun { background: var(--lime); color: #0b3a2b; box-shadow: 0 10px 30px -12px rgba(182, 240, 94, .7); }
.button.go { background: linear-gradient(135deg, #0b5c44, #0f7a5a 60%, #189968); color: #fff; }
.button.go:hover { box-shadow: 0 18px 40px -16px rgba(24, 140, 96, .6); }
.button.glass { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.button.glass:hover { background: rgba(255, 255, 255, .2); }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.quiet:hover { background: var(--surface); }

/* Navigation */
.site-nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 72px; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; white-space: nowrap; }
.brand svg { width: 38px; height: 38px; flex: none; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.button) { color: var(--muted); text-decoration: none; font-size: .98rem; padding: .5rem 0; }
.nav-links a:not(.button):hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .button { min-height: 44px; padding: .5rem 1.1rem; font-size: 1rem; }
.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 14px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon, :root[data-mode="dark"] .theme-toggle .sun-icon { display: none; }
:root[data-mode="dark"] .theme-toggle .moon { display: block; }
.menu-button { display: none; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 36px 0 20px; }
.fact { padding: 6px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.fact > span { display: block; color: var(--muted); font-size: .98rem; margin-top: .25rem; }

section.block { padding: clamp(80px, 10vw, 140px) 0 0; }

.browser { border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shot-shadow), 0 0 0 1px var(--line); }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--ground-2); }
.browser-bar span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: .9rem; }
.browser-bar svg { width: 14px; height: 14px; color: var(--green-text); }

/* Closing */
.closing { text-align: center; padding: clamp(90px, 11vw, 150px) 0 clamp(70px, 9vw, 110px); position: relative; }
.closing-sun { width: 120px; height: 60px; margin: 0 auto 28px; border-radius: 120px 120px 0 0; background: radial-gradient(circle at 50% 100%, var(--lime) 0 45%, rgba(182, 240, 94, .35) 46% 70%, rgba(182, 240, 94, 0) 71%); border-bottom: 2px solid var(--green-text); }
.closing h2 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 12em; margin-inline: auto; }
.closing .lede { margin: 1.1rem auto 0; }
.closing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner .brand { font-size: 1.1rem; color: var(--ink); }
.footer-inner .brand svg { width: 30px; height: 30px; }
.footer-links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Mobile: one text link stays in the bar, the brand word goes before it crowds. */
@media (max-width: 1020px) {
  .nav-links a:not(.button):not(.nav-keep) { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 32px); }
  .nav-inner { height: 64px; gap: .75rem; }
  .nav-links { gap: .9rem; }
  .brand { font-size: 1.15rem; }
  .brand svg { width: 34px; height: 34px; }
  .facts { grid-template-columns: 1fr; row-gap: 18px; }
  .fact, .fact:nth-child(3) { border-left: 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .browser { border-radius: 16px; }
  .browser-bar { height: 40px; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 420px) {
  .site-nav .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
