/* ============================================================
   AOW D TECH — design system
   Dark modern tech · TH/EN
   ============================================================ */

:root {
  --bg: #070b12;
  --bg-2: #0b1220;
  --surface: rgba(16, 24, 39, 0.72);
  --surface-solid: #101827;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e6edf7;
  --muted: #93a1b5;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --gradient: linear-gradient(120deg, #22d3ee, #818cf8);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: "Anuphan", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Anuphan", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1120px;
  --shadow-card: 0 8px 30px rgba(2, 6, 16, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(34, 211, 238, 0.28); }

:is(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-toggle button:focus-visible { outline-offset: -2px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 300;
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
}

.skip-link:focus { top: 12px; }

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- typography ---------- */

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 700;
  margin: 14px 0 14px;
}

.section-head p { color: var(--muted); }

section { padding: 104px 0; position: relative; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand img { width: 32px; height: 32px; }
.brand .d { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 6px 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle button.active {
  background: var(--gradient);
  color: #06121a;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #06121a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hamburger {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  position: relative;
}

.hamburger span, .hamburger span::before, .hamburger span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger span { top: 20px; }
.hamburger span::before { left: 0; top: -6px; }
.hamburger span::after { left: 0; top: 6px; }

.nav.open .hamburger span { background: transparent; }
.nav.open .hamburger span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .hamburger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  position: relative;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  width: 780px;
  height: 780px;
  left: 50%;
  top: -280px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(closest-side at 65% 60%, rgba(129, 140, 248, 0.14), transparent 70%);
  filter: blur(10px);
}

.hero > .container { width: 100%; }

.hero-inner { max-width: 780px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 24, 39, 0.6);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.4vw, 66px);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero .lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 38px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 54px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: "▸"; color: var(--accent); font-size: 10px; }

/* ---------- services ---------- */

.services { background: var(--bg-2); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--shadow-card);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 20px;
}

.card .icon svg { width: 22px; height: 22px; stroke: var(--accent); }

.card h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  margin-bottom: 10px;
}

.card p { font-size: 14.8px; color: var(--muted); }

/* ---------- work / portfolio ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: var(--shadow-card);
}

.work-visual {
  aspect-ratio: 16 / 8.2;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.work-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
}

.work-visual .mark {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wv-ride { background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(7, 11, 18, 0.2) 65%); }
.wv-learn { background: linear-gradient(135deg, rgba(129, 140, 248, 0.18), rgba(7, 11, 18, 0.2) 65%); }
.wv-pos { background: linear-gradient(135deg, rgba(251, 191, 36, 0.13), rgba(7, 11, 18, 0.2) 65%); }
.wv-fin { background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(7, 11, 18, 0.2) 65%); }

.work-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.work-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-body h3 { font-family: var(--font-display); font-size: 21px; }

.work-body > p { color: var(--muted); font-size: 15px; flex: 1; }

.work-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
}

.work-points li { display: flex; gap: 9px; align-items: baseline; }
.work-points li::before { content: "◆"; font-size: 8px; color: var(--accent-2); transform: translateY(-2px); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- process ---------- */

.process { background: var(--bg-2); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.step h3 { font-family: var(--font-display); font-size: 17.5px; margin-bottom: 8px; }
.step p { font-size: 14.2px; color: var(--muted); }

/* ---------- stack ---------- */

.stack-band {
  border-block: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.5);
  padding: 40px 0;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  justify-content: center;
}

.stack-row .chip { font-size: 12.5px; padding: 7px 16px; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 18px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}

.contact-line:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateX(4px); }

.contact-line svg { width: 20px; height: 20px; stroke: var(--accent); flex-shrink: 0; }

.contact-line .cl-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.contact-line .cl-value { font-size: 15.5px; font-weight: 500; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field label { font-size: 13.5px; font-weight: 600; color: var(--muted); }

.field input, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(7, 11, 18, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-note { font-size: 12.5px; color: var(--muted); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 40px;
  background: var(--bg-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer .brand { font-size: 15px; }
.footer .brand img { width: 26px; height: 26px; }

.footer-nav { display: flex; gap: 22px; list-style: none; }
.footer-nav a { font-size: 13.5px; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }

.copyright { font-size: 13px; color: var(--muted); }

/* ---------- consent banner ---------- */

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.consent-banner p { font-size: 14px; color: var(--muted); }

.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.consent-actions .btn { padding: 9px 18px; font-size: 13.5px; }

.linklike {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
}

.linklike:hover { color: var(--text); }

/* ---------- reveal animation ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(7, 11, 18, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    display: none;
  }

  .nav.open .nav-links { display: flex; }

  .nav-links a {
    display: block;
    padding: 11px 0;
    font-size: 16px;
    width: 100%;
  }

  .hamburger { display: block; }
  .nav-cta .btn { display: none; }

  .lang-toggle button {
    padding: 11px 14px;
    min-height: 42px;
  }
}

@media (max-width: 720px) {
  section { padding: 76px 0; }

  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand span { white-space: nowrap; }
  .nav-cta { gap: 8px; }

  .grid-3 { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .hero { padding-top: 120px; }
  .hero-meta { gap: 8px 18px; }
}

@media (max-width: 420px) {
  .hero-badge {
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 16px;
    align-items: flex-start;
  }

  .hero-badge .dot { margin-top: 5px; }
}

@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .lang-toggle button { padding: 10px 11px; }
}
