/* ============================================================
   base.css — design tokens, reset, typography
   Organisync marketing site
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg-primary:     #070B14;
  --bg-surface:     #0D1524;
  --bg-elevated:    #121E33;
  --bg-card:        #0F1A2E;

  --accent-blue:    #3B8BFF;
  --accent-blue-dim:#1A4B9A;
  --accent-cyan:    #00D4FF;
  --accent-amber:   #FFB800;
  --accent-green:   #00E5A0;
  --accent-red:     #FF4D6A;

  --text-primary:   #F0F4FF;
  --text-secondary: #8B9DC3;
  --text-muted:     #4A5A7A;
  --text-inverse:   #070B14;

  --border:         rgba(59, 139, 255, 0.15);
  --border-bright:  rgba(59, 139, 255, 0.35);
  --glow-blue:      0 0 24px rgba(59, 139, 255, 0.25);
  --glow-cyan:      0 0 16px rgba(0, 212, 255, 0.3);
  --glow-green:     0 0 16px rgba(0, 229, 160, 0.25);

  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --z-nav:      100;
  --z-modal:    200;
  --z-toast:    300;
}

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

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

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

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-cyan); }

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

ul, ol { list-style: none; }

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
}

/* ── Utility classes ─────────────────────────────────────── */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--accent-blue); }
.text-cyan      { color: var(--accent-cyan); }
.text-green     { color: var(--accent-green); }
.text-amber     { color: var(--accent-amber); }
.text-mono      { font-family: var(--font-mono); }
.text-center    { text-align: center; }

.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;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 2px 16px rgba(59,139,255,0.35);
}
.btn-primary:hover {
  background: #5a9fff;
  box-shadow: 0 4px 24px rgba(59,139,255,0.55);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-bright);
}
.btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59,139,255,0.06);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* ── Badge / pill ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(59,139,255,0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(59,139,255,0.25);
}

.badge-green {
  background: rgba(0,229,160,0.1);
  color: var(--accent-green);
  border-color: rgba(0,229,160,0.25);
}
.badge-amber {
  background: rgba(255,184,0,0.1);
  color: var(--accent-amber);
  border-color: rgba(255,184,0,0.25);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--accent-blue-dim);
  border-radius: 3px;
}

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background: rgba(59,139,255,0.3);
  color: var(--text-primary);
}

/* ── Google Fonts preconnect hint (loaded in index.html) ─── */
