/* ==========================================================
   NOVA — Landing Page Styles
   Mobile-first. แก้สีหลักของแบรนด์ได้ที่ตัวแปรด้านล่างนี้
   ========================================================== */

:root {
  /* --- Brand colors: แก้ตรงนี้เพื่อเปลี่ยนโทนสี --- */
  --bg: #070707;
  --bg-alt: #100608;
  --surface: #17090c;
  --surface-2: #210c11;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 70, 80, 0.22);

  --accent: #d50024;
  --accent-2: #ff173d;
  --accent-glow: rgba(255, 0, 45, 0.38);
  --accent-glow-soft: rgba(180, 0, 30, 0.18);

  --text: #ffffff;
  --text-muted: #c6b6b9;
  --text-dim: #806a6e;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --font-display: 'Kanit', sans-serif;
  --font-body: 'IBM Plex Sans Thai', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container-w: 1180px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

section { position: relative; }

/* --- Scroll reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* --- Focus visibility --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05130a;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn-primary:hover { box-shadow: 0 4px 22px var(--accent-glow); transform: translateY(-1px); }

.btn-glow { box-shadow: 0 0 18px var(--accent-glow); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 16px var(--accent-glow-soft); }
  50% { box-shadow: 0 0 30px var(--accent-glow); }
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 12px 14px;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav { display: none; }
.nav ul { display: flex; gap: 30px; }
.nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color .2s;
}
.nav a:hover { color: var(--accent); }

.header-actions { display: none; align-items: center; gap: 10px; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height .35s var(--ease), border-color .35s;
  background: var(--bg-alt);
}
.mobile-nav.is-open { max-height: 340px; border-top-color: var(--border); }
.mobile-nav ul { padding: 18px 20px 6px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--text-muted); font-size: 0.98rem; }
.mobile-nav-actions {
  display: flex;
  gap: 10px;
  padding: 10px 20px 22px;
}
.mobile-nav-actions .btn { flex: 1; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.55;
}
.hero-glow-1 {
  width: 340px; height: 340px;
  background: var(--accent-2);
  top: -120px; left: -100px;
  animation: drift1 12s ease-in-out infinite;
}
.hero-glow-2 {
  width: 300px; height: 300px;
  background: var(--accent);
  bottom: -140px; right: -80px;
  opacity: 0.28;
  animation: drift2 14s ease-in-out infinite;
}
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, 20px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-25px, -18px); } }

.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
}
.hero-network .net-lines { opacity: 0.5; }
.hero-network .net-dots { animation: pulseDots 3.6s ease-in-out infinite; }
@keyframes pulseDots { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow-soft);
  border: 1px solid rgba(57,255,140,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  margin-bottom: 18px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2.4vw, 1.1rem);
  max-width: 560px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}
.hero-actions .btn { width: 100%; }

.hero-note {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ==========================================================
   SECTION HEAD (shared)
   ========================================================== */
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 42px;
}
.section-head-sm { margin-bottom: 30px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }

/* ==========================================================
   FEATURES
   ========================================================== */
.features { padding: 70px 0; background: var(--bg-alt); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px 22px;
  transition: border-color .25s, transform .25s;
}
.feature-card:hover { border-color: rgba(57,255,140,0.3); transform: translateY(-3px); }

.feature-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-s);
  background: var(--accent-glow-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================
   PROMOTIONS
   ========================================================== */
.promotions { padding: 70px 0; }

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.promo-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 30px 24px;
  transition: transform .25s, border-color .25s;
}
.promo-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.promo-card-featured {
  border-color: rgba(57,255,140,0.35);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: 0 0 32px rgba(57,255,140,0.08);
}

.promo-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  margin-bottom: 16px;
}
.promo-badge-accent {
  background: var(--accent-glow-soft);
  border-color: rgba(57,255,140,0.3);
  color: var(--accent);
}

.promo-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.promo-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 22px; }

/* ==========================================================
   PARTNERS
   ========================================================== */
.partners { padding: 60px 0 80px; background: var(--bg-alt); }

.partners-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.partner-logo {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 14px 20px;
  transition: color .25s, border-color .25s;
}
.partner-logo:hover { color: var(--accent); border-color: rgba(57,255,140,0.3); }

/* ==========================================================
   LINE FLOAT BUTTON
   ========================================================== */
.line-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05130a;
  padding: 12px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 0 16px var(--accent-glow-soft);
  animation: breathe 3.2s ease-in-out infinite;
  transition: transform .25s var(--ease);
}
.line-float:hover { transform: scale(1.06); }
.line-float svg { width: 20px; height: 20px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.82rem; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--text-dim); font-size: 0.82rem; }
.footer-legal a:hover { color: var(--accent); }

/* ==========================================================
   RESPONSIVE — Tablet (>=640px)
   ========================================================== */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-actions .btn { width: auto; min-width: 180px; }

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

  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================================
   RESPONSIVE — Desktop (>=1024px)
   ========================================================== */
@media (min-width: 1024px) {
  .nav { display: block; }
  .header-actions { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none; }

  .hero { padding: 120px 0 100px; }
  .hero-inner { max-width: 780px; }

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

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }

  .feature-card:hover,
  .promo-card:hover { transform: translateY(-6px); }
}
