/* Gigayar website. Plain CSS, no build step. Colors follow the Nyongo app (lib/theme.dart). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #1a1a2e;
  --navy-2: #16213e;
  --lime: #cdff00;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  color: var(--muted);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
}
.site-nav a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}
.site-nav .lang {
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  padding: 5px 10px;
  margin-left: 6px;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-lime {
  background: var(--lime);
  color: var(--navy);
}
.btn-ghost-dark {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Sections */
section {
  padding: 88px 0;
}
.section-soft {
  background: var(--bg-soft);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 40px;
  max-width: 640px;
}

/* Home hero */
.hero {
  padding: 104px 0 96px;
  background: radial-gradient(1200px 400px at 85% -10%, #eef2ff 0%, transparent 60%), var(--bg);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 820px;
}
.hero .lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--text);
  max-width: 640px;
  margin-top: 24px;
}

/* Product cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.product {
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}
.product-nyongo {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #cbd5e1;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.product-nyongo:hover {
  transform: translateY(-3px);
}
.product-nyongo h3 {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
}
.product-nyongo .tag {
  color: var(--lime);
}
.product-nyongo .more {
  margin-top: auto;
  color: var(--lime);
  font-weight: 650;
}
.product-soon {
  border: 1.5px dashed var(--line);
  background: #fff;
}
.product-soon h3 {
  font-size: 22px;
}
.tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 16px;
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--lime);
  margin-bottom: 18px;
}
.card .icon svg {
  width: 22px;
  height: 22px;
}

/* Contact band */
.contact {
  text-align: center;
}
.contact h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 12px;
}
.contact p {
  color: var(--muted);
}
.contact .mail {
  display: inline-block;
  margin-top: 20px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  word-break: break-word;
}

/* Nyongo hero */
.n-hero {
  background: radial-gradient(900px 420px at 90% 0%, rgba(205, 255, 0, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #cbd5e1;
  padding: 96px 0 104px;
}
.n-hero .by {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.n-hero h1 {
  color: #fff;
  font-size: clamp(52px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-top: 8px;
}
.n-hero .slogan {
  color: var(--lime);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 2.8vw, 26px);
  margin-top: 12px;
}
.n-hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 600px;
  margin-top: 24px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(205, 255, 0, 0.35);
  color: var(--lime);
  font-size: 14px;
  font-weight: 600;
  margin-top: 36px;
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

/* Callout */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  border-radius: 20px;
  padding: 36px;
  background: #f7ffd6;
  border: 1px solid #e6f5a3;
}
.callout .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--lime);
  display: grid;
  place-items: center;
}
.callout h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.callout p {
  color: #3f4a1a;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.steps li {
  counter-increment: step;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 16px;
}
.steps h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.steps p {
  color: var(--muted);
  font-size: 16px;
}

/* Small link list (Nyongo page bottom) */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.link-row a {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.link-row a:hover {
  border-color: var(--ink);
}

/* Legal and help pages */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 20px 96px;
}
.doc .crumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.doc .crumb a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.doc .meta {
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.doc h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}
.doc p {
  margin: 0 0 14px;
}
.doc ul,
.doc ol {
  padding-left: 22px;
  margin: 0 0 14px;
}
.doc li {
  margin-bottom: 8px;
}
.doc li::marker {
  color: var(--muted);
}
.doc a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}
.doc .note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 15px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a {
  text-decoration: none;
  color: var(--text);
}
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid #6366f1;
  outline-offset: 2px;
  border-radius: 6px;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 64px 0;
  }
  .n-hero {
    padding: 64px 0 72px;
  }
  .site-nav a {
    padding: 8px;
  }
  .callout {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .product {
    padding: 26px;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
