@font-face {
  font-family: "Line Seed Thai";
  src: url("assets/fonts/line-seed-sans-th-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Line Seed Thai";
  src: url("assets/fonts/line-seed-sans-th-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14151f;
  --ink-soft: #3a3f52;
  --muted: #646b7e;
  --soft: #f6f7fb;
  --soft-2: #eef1f8;
  --line: #e7eaf2;
  --line-soft: #eef1f7;
  --white: #ffffff;
  --night: #0a0c14;
  --night-2: #11131f;
  --purple: #6c63f5;
  --purple-deep: #564fde;
  --purple-tint: #f1effe;
  --teal: #10a596;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-phone: 46px;

  --shadow-sm: 0 1px 2px rgba(16, 19, 33, 0.04), 0 3px 8px rgba(16, 19, 33, 0.05);
  --shadow-md: 0 6px 16px -4px rgba(16, 19, 33, 0.08), 0 16px 38px -12px rgba(16, 19, 33, 0.12);
  --shadow-lg: 0 22px 60px -16px rgba(16, 19, 33, 0.24);
  --shadow-phone: 0 50px 110px -34px rgba(10, 12, 22, 0.55), 0 16px 40px -16px rgba(10, 12, 22, 0.3);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Line Seed Thai", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(108, 99, 245, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, p {
  margin-top: 0;
}

/* ============================================================ Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px var(--gutter);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(231, 234, 242, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  color: var(--purple);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav,
.header-actions,
.site-footer nav {
  display: flex;
  align-items: center;
}

.site-nav {
  gap: 28px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
  transition: right 0.22s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--purple-deep);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

.header-actions {
  gap: 10px;
}

.language-link,
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--r-sm);
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.16s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.language-link {
  min-width: 46px;
  padding: 10px 12px;
  color: var(--purple-deep);
  background: var(--purple-tint);
  border: 1px solid #ddd9fb;
}

.language-link:hover {
  background: #e7e3fd;
}

.header-cta {
  min-width: 112px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}

.header-cta:hover {
  transform: translateY(-1px);
  background: #000;
}

/* ============================================================ Buttons */
.button {
  min-width: 156px;
  padding: 14px 24px;
  border: 1px solid transparent;
  font-size: 16px;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(180deg, #7b73f7, var(--purple));
  box-shadow: 0 14px 30px -10px rgba(108, 99, 245, 0.6);
}

.button-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #6c63f5, var(--purple-deep));
  box-shadow: 0 18px 38px -10px rgba(108, 99, 245, 0.7);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  transform: translateY(-2px);
  border-color: #cfd4e3;
}

/* ============================================================ Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #f3f4fb;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(108, 99, 245, 0.42), transparent 60%),
    radial-gradient(820px 520px at 8% 110%, rgba(16, 165, 150, 0.22), transparent 60%),
    linear-gradient(168deg, #0c0e18 0%, #11131f 55%, #0c0e18 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) var(--gutter) clamp(72px, 8vw, 110px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(108, 99, 245, 0.16);
  border: 1px solid rgba(137, 130, 255, 0.32);
  color: #c4bffd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section .eyebrow,
.band .eyebrow,
.cta-section .eyebrow {
  background: var(--purple-tint);
  border-color: #e0dcfd;
  color: var(--purple-deep);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #a6a0ff, #7ce0d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 30px;
  color: rgba(233, 235, 248, 0.78);
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
}

.hero-proof div {
  padding: 16px 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-proof dt {
  margin-bottom: 4px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.hero-proof dd {
  margin: 0;
  color: rgba(233, 235, 248, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: -8% -4% -8% -4%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(124, 116, 247, 0.5), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-visual .phone {
  position: relative;
  z-index: 1;
}

/* ============================================================ Phone frame */
.phone {
  position: relative;
  width: min(300px, 76vw);
  margin-inline: auto;
  padding: 11px;
  border-radius: var(--r-phone);
  background: linear-gradient(152deg, #2a2d38 0%, #14161f 52%, #0c0d14 100%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.phone img {
  width: 100%;
  border-radius: 35px;
}

.phone-duo {
  position: relative;
  display: flex;
  justify-content: center;
  padding-right: clamp(0px, 6vw, 64px);
}

.phone-duo .phone--front {
  position: relative;
  z-index: 2;
  width: min(270px, 66vw);
}

.phone-duo .phone--back {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -6%;
  width: min(214px, 52vw);
  transform: rotate(4deg);
  opacity: 0.96;
}

/* ============================================================ Sections */
.section {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 116px) var(--gutter);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.showcase--reverse .showcase-visual {
  order: -1;
}

.section-copy h2,
.section-heading h2,
.band h2,
.cta-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 16px;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-copy p {
  max-width: 50ch;
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

/* Feature cards */
.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 26px 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #dcd9fb;
  box-shadow: var(--shadow-md);
}

.feature-kicker {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 12px;
  color: var(--purple-deep);
  background: var(--purple-tint);
  font-weight: 700;
  font-size: 15px;
}

.feature-card:nth-child(2) .feature-kicker { color: #087e74; background: #dcf7f2; }
.feature-card:nth-child(3) .feature-kicker { color: #a44d29; background: #ffe9de; }
.feature-card:nth-child(4) .feature-kicker { color: #8a5a00; background: #fff1d4; }

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Band (dark showcase) */
.band {
  position: relative;
  overflow: hidden;
  color: #f3f4fb;
  background:
    radial-gradient(900px 540px at 88% 12%, rgba(108, 99, 245, 0.3), transparent 62%),
    linear-gradient(160deg, #0c0e18, #11131f);
}

.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) var(--gutter);
}

.band .eyebrow {
  background: rgba(108, 99, 245, 0.16);
  border-color: rgba(137, 130, 255, 0.32);
  color: #c4bffd;
}

.band-copy p {
  max-width: 50ch;
  color: rgba(233, 235, 248, 0.76);
  font-size: 17px;
}

.band-visual {
  display: flex;
  justify-content: center;
}

/* Check list */
.check-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat,
    linear-gradient(135deg, var(--teal), #0c8b7d);
}

/* Data panel */
.data-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.data-panel > div {
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.data-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.section--soft {
  background: var(--soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section--soft .feature-card,
.section--soft .data-panel > div {
  background: var(--white);
}

/* CTA */
.cta-section {
  padding: clamp(72px, 9vw, 110px) var(--gutter);
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(108, 99, 245, 0.1), transparent 65%),
    var(--soft);
  border-top: 1px solid var(--line-soft);
}

.cta-section h2 {
  width: min(820px, 100%);
  margin: 0 auto 26px;
}

.cta-section .hero-actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding: 44px var(--gutter);
  color: rgba(233, 235, 248, 0.66);
  background: var(--night);
}

.site-footer strong {
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 6px 0 0;
  max-width: 38ch;
  font-size: 14px;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 22px;
  font-weight: 700;
}

.site-footer a {
  color: rgba(233, 235, 248, 0.86);
  transition: color 0.18s ease;
}

.site-footer a:hover {
  color: #fff;
}

/* ============================================================ Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================ Policy pages */
.policy-page {
  background: linear-gradient(180deg, #f7f9fc 0, #fff 360px);
}

.policy-hero,
.policy-content {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}

.policy-hero {
  padding: 86px 0 42px;
}

.policy-hero h1 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 56px);
  letter-spacing: -0.02em;
}

.policy-hero p:last-child {
  margin: 0;
  color: var(--muted);
}

.policy-content {
  padding: 0 0 86px;
}

.policy-content section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.policy-content h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
}

.policy-content p {
  margin-bottom: 14px;
}

.policy-content a {
  color: var(--purple-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.policy-content ul {
  padding-left: 22px;
  margin: 0;
}

/* ============================================================ Responsive */
@media (max-width: 960px) {
  .hero-inner,
  .showcase,
  .band-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    text-align: center;
    padding-top: clamp(48px, 9vw, 72px);
  }

  .hero-copy {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: 2;
    margin-top: 8px;
  }

  .showcase--reverse .showcase-visual {
    order: 0;
  }

  .section-copy,
  .band-copy {
    text-align: center;
  }

  .section-copy p,
  .band-copy p {
    margin-inline: auto;
  }

  .check-list {
    display: inline-grid;
    text-align: left;
  }

  .feature-list,
  .data-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 14px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .phone-duo {
    padding-right: 0;
  }

  .phone-duo .phone--back {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 16px;
    transform: none;
  }
}

@media (max-width: 460px) {
  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .feature-list,
  .data-panel {
    grid-template-columns: 1fr;
  }
}
