:root {
  --bg: #07111f;
  --bg-secondary: #0b1a2e;
  --surface: rgba(10, 24, 44, 0.7);
  --surface-strong: rgba(9, 20, 37, 0.92);
  --border: rgba(151, 233, 216, 0.18);
  --text: #eef7ff;
  --muted: #9ab1c7;
  --primary: #74f2cc;
  --primary-strong: #1ec8b2;
  --accent: #8db8ff;
  --shadow: 0 24px 80px rgba(2, 10, 22, 0.45);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(30, 200, 178, 0.24), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(141, 184, 255, 0.15), transparent 24%),
    linear-gradient(180deg, #04101b 0%, #08162a 40%, #050c17 100%);
  color: var(--text);
  font-family: "Space Grotesk", "Noto Sans Thai", sans-serif;
}

body.lang-th {
  font-family: "Noto Sans Thai", "Space Grotesk", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(116, 242, 204, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 242, 204, 0.06) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 88%);
  opacity: 0.28;
}

.topbar,
main,
.stats-grid {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 16px 20px;
  backdrop-filter: blur(18px);
  background: rgba(6, 18, 33, 0.74);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.brand,
.topbar-actions,
.nav,
.language-switch,
.hero-actions,
.founder-grid {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 22px rgba(116, 242, 204, 0.7);
}

.topbar-actions {
  gap: 18px;
}

.nav {
  gap: 20px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.language-switch {
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lang-btn.is-active {
  color: #031019;
  background: linear-gradient(135deg, var(--primary), #c4fff0);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 64px 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary));
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
  letter-spacing: -0.04em;
}

.hero-text,
.glass-card p,
.tech-card p,
.timeline-item p,
.media-list a,
li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 60ch;
  margin: 22px 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #031019;
  background: linear-gradient(135deg, var(--primary), #c4fff0);
  box-shadow: 0 16px 42px rgba(116, 242, 204, 0.24);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  position: relative;
  min-height: 560px;
}

.hero-card,
.stat-card,
.glass-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(13, 31, 56, 0.88), rgba(7, 18, 34, 0.7));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: absolute;
  width: min(100%, 360px);
  padding: 24px;
}

.status-card {
  top: 24px;
  right: 10px;
}

.metric-card {
  bottom: 28px;
  left: 14px;
}

.float-card {
  animation: floatY 6s ease-in-out infinite;
}

.card-label,
.pill,
.timeline-year,
.stat-label,
.founder-grid small {
  display: inline-block;
  color: var(--primary);
}

.hero-card strong,
.glass-card h3,
.tech-card h3 {
  display: block;
  margin: 10px 0 10px;
  font-size: 1.3rem;
}

.panel-orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(116, 242, 204, 0.14);
}

.orbit-one {
  width: 400px;
  height: 400px;
  animation: spin 22s linear infinite;
}

.orbit-two {
  width: 520px;
  height: 520px;
  border-style: dashed;
  animation: spinReverse 28s linear infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.stat-card {
  padding: 22px;
}

.stat-value {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700;
}

.content-section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 64px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}

.two-column,
.solution-grid,
.tech-grid,
.impact-grid {
  display: grid;
  gap: 18px;
}

.two-column,
.impact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.solution-grid {
  grid-template-columns: repeat(2, 1fr);
}

.tech-grid {
  grid-template-columns: repeat(4, 1fr);
}

.glass-card,
.tech-card {
  padding: 28px;
}

.founders-card {
  margin-top: 18px;
}

.founder-grid {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.founder-grid div {
  display: grid;
  gap: 8px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(116, 242, 204, 0.08);
  border: 1px solid rgba(116, 242, 204, 0.16);
}

ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  overflow: hidden;
}

.timeline-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(116, 242, 204, 0.55), transparent);
}

.timeline-year {
  margin-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 700;
}

.media-list {
  display: grid;
  gap: 14px;
}

.media-list a {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.media-list a:hover,
.media-list a:focus-visible {
  transform: translateX(6px);
  color: var(--text);
  background: rgba(141, 184, 255, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media (max-width: 1080px) {
  .hero,
  .solution-grid,
  .impact-grid,
  .two-column,
  .tech-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-panel {
    min-height: 420px;
  }

  .hero-card {
    position: relative;
    width: 100%;
  }

  .status-card,
  .metric-card {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .hero-panel {
    display: grid;
    gap: 18px;
  }

  .panel-orbit {
    opacity: 0.35;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions,
  .nav,
  .founder-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 12px;
  }

  .content-section {
    padding: 48px 0;
  }

  .glass-card,
  .tech-card,
  .hero-card,
  .stat-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
