/* ============================================================
   3rd Wave Asia — Global Design System
   Premium Minimalist | Dark-first with Light Accents
   ============================================================ */

:root {
  /* Core Palette */
  --bg: #0e1116;
  --surface: #151b24;
  --surface-2: #1c2430;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #f7f5f0;
  --text-muted: rgba(247, 245, 240, 0.72);
  --text-soft: rgba(247, 245, 240, 0.56);
  --text-faint: rgba(247, 245, 240, 0.36);

  /* Accent */
  --accent: #22c58b;
  --accent-dim: rgba(34, 197, 139, 0.12);
  --accent-glow: rgba(34, 197, 139, 0.25);
  --accent-text: #8ff0c7;

  /* Contrast */
  --light: #f7f5f0;
  --ink: #111318;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 0 40px rgba(34, 197, 139, 0.15);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

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

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 700px at 85% 5%, rgba(34, 197, 139, 0.08), transparent 55%),
    radial-gradient(600px 500px at 10% 85%, rgba(18, 60, 70, 0.3), transparent 60%);
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

h1 { font-size: clamp(44px, 8vw, 88px); line-height: 0.95; }
h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: clamp(22px, 3vw, 30px); }
h4 { font-size: clamp(18px, 2vw, 22px); }

p {
  color: var(--text-muted);
  max-width: 68ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--accent);
}

strong {
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   Layout
   ============================================================ */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   Utility Classes
   ============================================================ */

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #1dd48f;
  color: var(--ink);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

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

.btn-ghost::after {
  content: '→';
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   Focus Styles (Accessibility)
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Selection
   ============================================================ */

::selection {
  background: var(--accent-dim);
  color: var(--text);
}

/* ============================================================
   Scrollbar
   ============================================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.animate-in {
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    width: calc(100% - 32px);
  }
}
