/* ============================================
   BEYOND WORDS — GLOBAL STYLES
   Mobile-first
   ============================================ */

:root {
  --bg: #0d0d0f;
  --bg2: #131316;
  --bg3: #1a1a1f;
  --card: #1e1e24;
  --card2: #252530;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);

  --accent: #4f8aff;
  --accent2: #7b6bff;
  --accent3: #ff6b6b;
  --accent-glow: rgba(79,138,255,0.25);

  --en: #a8c5ff;

  --text: #f0f0f5;
  --text2: #9898aa;
  --text3: #5a5a6e;

  --success: #4fcc8a;
  --warning: #ffb347;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-accent: 0 4px 24px rgba(79,138,255,0.3);

  /* touch-friendly minimum */
  --tap-min: 44px;
}

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  /* prevent font size inflation on orientation change */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* smooth momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--card2); border-radius: 3px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  /* account for notch on iOS */
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.nav-icon { font-size: 1.3rem; }

.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  display: none;
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(79,138,255,0.3);
  min-height: var(--tap-min);
  touch-action: manipulation;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79,138,255,0.45);
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  z-index: 99;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 16px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text2);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
}

.mobile-menu .mobile-cta {
  color: var(--accent);
  border: none;
  font-weight: 600;
  margin-top: 8px;
}

/* DESKTOP NAV */
@media (min-width: 768px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-hamburger { display: none; }
  .navbar { padding: 16px 32px; }
}

/* HERO BTN */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(79,138,255,0.35);
  min-height: var(--tap-min);
  touch-action: manipulation;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(79,138,255,0.5);
}

.hero-btn:active { transform: scale(0.97); }

/* SECTION SPACING */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  section { padding: 80px 32px; }
}
