/* ============================================
   3W Factory — Design System V2.0
   "Tech premium / cosmic / neural network"
   ============================================ */

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

/* --- Tokens --- */
:root {
  /* Background */
  --bg: #110F14;
  --bg-2: #1B2053;

  /* Text */
  --text: #F8F8F9;
  --text-muted: #9E9E9F;

  /* Dividers */
  --divider: rgba(248, 248, 249, 0.10);

  /* Cards */
  --card: #FFFFFF;
  --card-border: rgba(17, 15, 20, 0.10);
  --card-text: #110F14;

  /* Primary (blue) */
  --primary: #069AE8;
  --primary-hover: #0771F0;
  --primary-soft: #A3D2EF;
  --primary-soft-bg: rgba(6, 154, 232, 0.15);

  /* Purple (neon accents) */
  --purple: #5D238F;
  --purple-deep: #512059;
  --glow-purple: rgba(93, 35, 143, 0.55);

  /* States */
  --success: #1FBF75;
  --warning: #FFB020;
  --error: #FF4D4F;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.25);

  /* Spacing */
  --section-py: 80px;
  --section-px: 24px;
  --container: 1140px;
  --gutter: 24px;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Focus visible (a11y) */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 16px;
}

p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.text-highlight {
  color: var(--primary);
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* --- Section --- */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section--dark {
  background: var(--bg);
}

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

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--divider);
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-py: 56px;
    --section-px: 16px;
    --gutter: 16px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }
}
