:root {
  color-scheme: dark;
  --bg: #090d14;
  --bg-soft: #0d131d;
  --panel: #111925;
  --panel-strong: #151f2d;
  --line: #263242;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f7f9fc;
  --text-soft: #c7d0dc;
  --muted: #8d9aab;
  --orange: #ff7a00;
  --orange-light: #ffad5c;
  --orange-dark: #c75200;
  --green: #5ddeaa;
  --red: #ff8177;
  --max: 1160px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 280px;
  margin: 0;
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 122, 0, 0.11), transparent 33rem),
    radial-gradient(circle at 92% 24%, rgba(77, 115, 158, 0.1), transparent 29rem),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--orange-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 9px;
  background: #fff;
  color: #111722;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(9, 13, 20, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.28);
}

.brand span {
  color: var(--orange-light);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.89rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.site-nav .nav-status {
  margin-left: 5px;
  border: 1px solid rgba(255, 122, 0, 0.25);
  background: rgba(255, 122, 0, 0.08);
  color: var(--orange-light);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 82px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: -1;
  width: min(880px, 80vw);
  height: 430px;
  background: radial-gradient(ellipse, rgba(255, 122, 0, 0.11), transparent 66%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--orange-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
}

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

h1,
h2,
h3 {
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  margin-bottom: 23px;
  font-size: clamp(2.55rem, 5.8vw, 5rem);
  letter-spacing: -0.055em;
}

h1 .accent,
h2 .accent {
  color: var(--orange);
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 31px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.button:hover {
  border-color: #46566a;
  background: var(--panel-strong);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #1a0d02;
}

.button.primary:hover {
  border-color: #ff942f;
  background: #ff942f;
}

.button.pending,
.button[aria-disabled="true"] {
  border-color: rgba(255, 122, 0, 0.26);
  background: rgba(255, 122, 0, 0.09);
  color: var(--orange-light);
  box-shadow: none;
  cursor: not-allowed;
}

.button.pending:hover,
.button[aria-disabled="true"]:hover {
  background: rgba(255, 122, 0, 0.09);
  transform: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 122, 0, 0.11);
}

.hero-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.app-preview {
  position: relative;
  min-height: 470px;
}

.preview-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: #0b111a;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 122, 0, 0.06) inset;
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}

.preview-bar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #101721;
}

.preview-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4757;
}

.preview-bar i:first-child {
  background: var(--orange);
}

.preview-title {
  margin-left: 7px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.preview-body {
  height: calc(100% - 56px);
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
}

.preview-tools {
  border-right: 1px solid var(--line-soft);
  background: #0d141e;
  padding: 20px 14px;
}

.preview-tool {
  width: 100%;
  height: 44px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #121b28;
}

.preview-tool.active {
  border-color: rgba(255, 122, 0, 0.3);
  background: rgba(255, 122, 0, 0.12);
}

.preview-canvas {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 124px;
  gap: 14px;
  padding: 19px;
}

.video-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 60% 36%, rgba(255, 122, 0, 0.19), transparent 33%),
    linear-gradient(145deg, #1b2736, #0c121c 70%);
}

.video-stage::before {
  content: "";
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.video-stage::after {
  content: "";
  position: absolute;
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.caption-chip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: max-content;
  max-width: 84%;
  padding: 7px 13px;
  border-radius: 8px;
  background: rgba(3, 6, 10, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 850;
  transform: translateX(-50%);
}

.timeline {
  display: grid;
  grid-template-rows: 18px 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: #0c121b;
}

.timeline-line {
  position: relative;
  border-radius: 7px;
  background: #162231;
}

.timeline-line::before,
.timeline-line::after {
  content: "";
  position: absolute;
  inset-block: 5px;
  border-radius: 4px;
}

.timeline-line::before {
  left: 4%;
  width: 43%;
  background: rgba(255, 122, 0, 0.52);
}

.timeline-line::after {
  left: 50%;
  width: 28%;
  background: rgba(117, 148, 187, 0.4);
}

.timeline > span {
  width: 1px;
  height: 100%;
  margin-left: 62%;
  background: var(--orange-light);
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.55);
}

.section {
  padding: 82px 0;
}

.section-compact {
  padding: 64px 0;
}

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

.section-heading {
  max-width: 730px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin-bottom: 15px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.045em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.feature-grid,
.steps-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20, 30, 43, 0.94), rgba(13, 20, 30, 0.94));
  box-shadow: 0 15px 44px rgba(0, 0, 0, 0.16);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 122, 0, 0.23);
  border-radius: 12px;
  background: rgba(255, 122, 0, 0.1);
  color: var(--orange-light);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card p,
.card li {
  color: var(--text-soft);
  font-size: 0.91rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card ul,
.content-block ul,
.content-block ol {
  padding-left: 1.25rem;
}

.card li + li,
.content-block li + li {
  margin-top: 7px;
}

.workflow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.workflow-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
}

.workflow-copy > p {
  color: var(--text-soft);
}

.workflow-list {
  display: grid;
  gap: 11px;
  margin-top: 27px;
}

.workflow-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.workflow-item b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--panel-strong);
  color: var(--orange-light);
  font-size: 0.8rem;
}

.workflow-item p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.info-panel {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(255, 122, 0, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 122, 0, 0.13), transparent 22rem),
    linear-gradient(145deg, #151f2c, #0e151f);
  box-shadow: var(--shadow);
}

.info-panel h3 {
  margin-bottom: 13px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.info-panel p {
  color: var(--text-soft);
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px 18px;
  border: 1px solid rgba(255, 122, 0, 0.23);
  border-radius: 14px;
  background: rgba(255, 122, 0, 0.075);
  color: var(--text-soft);
}

.notice strong {
  color: var(--orange-light);
}

.notice p {
  margin: 0;
}

.notice-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.15);
  color: var(--orange-light);
  font-weight: 950;
}

.page-hero {
  padding: 76px 0 42px;
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5vw, 4.3rem);
}

.page-lead {
  max-width: 750px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 34px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.content-block {
  padding: clamp(23px, 4vw, 36px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(16, 24, 35, 0.88);
}

.content-block h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.content-block h3 {
  margin-top: 25px;
  margin-bottom: 9px;
  font-size: 1.05rem;
}

.content-block p,
.content-block li {
  color: var(--text-soft);
}

.content-block p:last-child,
.content-block ul:last-child,
.content-block ol:last-child {
  margin-bottom: 0;
}

.side-card {
  position: sticky;
  top: 102px;
  padding: 22px;
  border: 1px solid rgba(255, 122, 0, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #172231, #101822);
}

.side-card h2 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.side-card p {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.side-card .button {
  width: 100%;
  margin-top: 5px;
}

.meta-line {
  color: var(--muted);
  font-size: 0.81rem;
}

.definition-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.definition-list > div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.definition-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.definition-list dt {
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 850;
}

.definition-list dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(27px, 5vw, 48px);
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 122, 0, 0.16), transparent 23rem),
    #111a26;
}

.cta-panel h2 {
  margin-bottom: 9px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.cta-panel p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 34px;
}

.footer-copy {
  max-width: 480px;
}

.footer-copy p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

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

@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    padding-block: 14px;
    align-items: flex-start;
  }

  .site-nav {
    max-width: 560px;
    flex-wrap: wrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .app-preview {
    min-height: 430px;
  }

  .preview-shell {
    position: relative;
    transform: none;
  }

  .feature-grid,
  .steps-grid,
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    display: block;
  }

  .brand {
    margin-bottom: 11px;
  }

  .site-nav {
    justify-content: flex-start;
    margin-inline: -7px;
  }

  .site-nav a {
    padding: 7px;
    font-size: 0.79rem;
  }

  .site-nav .nav-status {
    margin-left: 0;
  }

  .hero {
    padding: 60px 0 58px;
  }

  h1 {
    letter-spacing: -0.045em;
  }

  .actions {
    align-items: stretch;
  }

  .actions .button {
    width: 100%;
  }

  .app-preview {
    min-height: 360px;
  }

  .preview-body {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .preview-tools {
    padding: 14px 9px;
  }

  .preview-tool {
    height: 37px;
  }

  .preview-canvas {
    grid-template-rows: minmax(0, 1fr) 93px;
    gap: 9px;
    padding: 11px;
  }

  .timeline {
    padding: 8px;
  }

  .feature-grid,
  .steps-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .page-hero {
    padding-top: 54px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-panel .button {
    width: 100%;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .side-card,
  .actions {
    display: none;
  }

  .content-block,
  .card {
    border: 1px solid #bbb;
    background: #fff;
    box-shadow: none;
  }

  .content-block p,
  .content-block li,
  .card p,
  .card li,
  .page-lead {
    color: #222;
  }
}
