/* ============================================================
   Nova Marketing — style.css
   Design tokens, CSS variables, reset, base typography
   ============================================================ */

/* ---------- Design Tokens: Light Mode (default) ---------- */
:root,
:root[data-theme="light"] {
  --bg:        #ffffff;
  --bg-2:      #f6f6f4;
  --bg-3:      #eeede9;
  --ink:       #0c0c0d;
  --ink-2:     #56565b;
  --ink-3:     #8a8a90;
  --accent:    #ff4d00;
  --accent-2:  #ff7536;
  --line:      #e5e4df;
  --card:      #ffffff;
  --glow:      rgba(255, 77, 0, .16);

  /* Typography */
  --font-sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mm:   "Noto Sans Myanmar", "Space Grotesk", system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radii */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Layout */
  --maxw: 1200px;
  --nav-h: 72px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow:    0 8px 30px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .12);

  /* Transitions */
  --t-fast: 140ms ease;
  --t:      240ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 480ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Design Tokens: Dark Mode ---------- */
:root[data-theme="dark"] {
  --bg:        #09090a;
  --bg-2:      #0f0f11;
  --bg-3:      #17171a;
  --ink:       #f5f5f3;
  --ink-2:     #a0a0a6;
  --ink-3:     #6c6c72;
  --accent:    #ff5a1a;
  --accent-2:  #ff7e45;
  --line:      #232327;
  --card:      #101013;
  --glow:      rgba(255, 90, 26, .22);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow:    0 8px 30px rgba(0, 0, 0, .5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .6);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background var(--t), color var(--t);
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---------- Base Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { color: var(--ink-2); }

/* Myanmar text */
.mm {
  font-family: var(--font-mm);
  line-height: 1.7;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: var(--space-9);
}

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-lead {
  max-width: 60ch;
  font-size: 1.08rem;
  color: var(--ink-2);
}

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

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

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

/* ---------- Scroll-reveal base state ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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