@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("fonts/line-seed-th/LINE_Seed_Sans_TH_V1.003/Web/WOFF2/LINESeedSansTH_W_Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("fonts/line-seed-th/LINE_Seed_Sans_TH_V1.003/Web/WOFF2/LINESeedSansTH_W_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("fonts/line-seed-th/LINE_Seed_Sans_TH_V1.003/Web/WOFF2/LINESeedSansTH_W_XBd.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07111f;
  --bg-secondary: #0b1a2e;
  --bg-tertiary: #12243c;
  --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;
  --leaf: #8ecf39;
  --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: "LINE Seed Sans TH", sans-serif;
}

body.lang-th {
  font-family: "LINE Seed Sans TH", 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,
.founder-grid {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-logo {
  display: block;
  width: clamp(160px, 18vw, 224px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.brand-meta {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.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: start;
  min-height: calc(100vh - 110px);
  padding: 64px 0 28px;
  overflow: clip;
}

.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: 11ch;
  font-size: clamp(2.85rem, 6.2vw, 5.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

body.lang-th .hero h1 {
  max-width: 11ch;
  font-size: clamp(2.75rem, 6vw, 5.2rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.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: 26px 0 0;
  font-size: 1.06rem;
  text-wrap: pretty;
}

.trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.trust-inline span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.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);
}

:where(a, button):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 78%, white);
  outline-offset: 4px;
}

.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 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
  min-height: 500px;
  padding-top: 44px;
}

.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: relative;
  width: 100%;
  min-height: 100%;
  padding: 24px;
}

.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;
  font-weight: 700;
}

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

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

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

.status-card,
.metric-card {
  position: relative;
  z-index: 1;
}

.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: 800;
}

.trust-band {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 20px;
}

.trust-card,
.contact-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(9, 20, 37, 0.92), rgba(10, 25, 46, 0.78));
  box-shadow: var(--shadow);
}

.trust-card {
  padding: 24px;
}

.trust-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--leaf);
  font-weight: 700;
}

.trust-card p,
.contact-text,
.footer-inner p {
  color: var(--muted);
  line-height: 1.7;
}

.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;
  font-weight: 800;
}

.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);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  padding: 32px;
}

.contact-heading {
  margin-bottom: 0;
}

.contact-actions {
  display: grid;
  align-content: center;
  gap: 14px;
}

.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto 24px;
  padding: 0;
}

.footer-inner {
  padding: 18px 20px;
  text-align: center;
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-left: 10px;
}

.footer-links a {
  color: var(--text);
}

.legal-page {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.legal-hero {
  padding-top: 24px;
}

.legal-hero .section-heading {
  max-width: 72ch;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.legal-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 116px;
  padding: 24px;
}

.legal-nav-title,
.legal-copy h2,
.legal-copy h3 {
  margin: 0 0 14px;
}

.legal-nav-title {
  font-size: 1rem;
  color: var(--text);
}

.legal-nav {
  display: grid;
  gap: 10px;
}

.legal-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--text);
  background: rgba(141, 184, 255, 0.1);
  border-color: rgba(141, 184, 255, 0.18);
  transform: translateX(4px);
}

.legal-copy {
  display: grid;
  gap: 18px;
}

.legal-copy section {
  padding: 28px;
  scroll-margin-top: 120px;
}

.legal-copy p,
.legal-copy li,
.legal-copy address,
.legal-copy summary {
  max-width: 78ch;
  color: var(--muted);
  line-height: 1.75;
  text-wrap: pretty;
}

.legal-copy h1,
.legal-copy h2,
.legal-copy h3,
.legal-nav-title {
  text-wrap: balance;
}

.legal-copy h2 {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
}

.legal-copy h3 {
  font-size: 1.08rem;
  color: var(--leaf);
}

.legal-copy ul {
  margin-top: 14px;
}

.legal-copy strong {
  color: var(--text);
}

.inline-list {
  padding-left: 20px;
}

.note-card {
  border-left: 4px solid var(--primary);
}

.language-blocks {
  display: grid;
  gap: 20px;
}

.language-block {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.language-block h3 {
  margin-bottom: 12px;
}

.legal-copy details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  padding: 18px 20px;
}

.legal-copy summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.legal-copy details[open] summary {
  margin-bottom: 10px;
}

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

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

@keyframes heroParallax {
  from {
    transform: translateY(var(--parallax-offset, 0));
  }

  to {
    transform: translateY(calc(var(--parallax-offset, 0) * -0.35));
  }
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .parallax-scene {
    view-timeline: --hero-parallax;
  }

  .parallax-layer {
    animation: heroParallax linear both;
    animation-timeline: --hero-parallax;
    animation-range: entry 0% exit 100%;
  }
}

@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,
  .trust-band,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 7.2vw, 4.55rem);
    line-height: 1.14;
  }

  body.lang-th .hero h1 {
    font-size: clamp(2.5rem, 8.5vw, 4.4rem);
    line-height: 1.16;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding-top: 16px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }

  .panel-orbit {
    opacity: 0.35;
  }
}

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

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

  .nav {
    gap: 12px;
  }

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

  .legal-page {
    padding-bottom: 56px;
  }

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

  .brand {
    align-items: flex-start;
    flex-direction: column;
  }

  body.lang-th .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 9.2vw, 3.7rem);
    line-height: 1.16;
    letter-spacing: -0.015em;
  }

  .legal-copy section,
  .legal-aside,
  .language-block {
    padding: 22px;
  }
}

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

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

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