/* ============================================================
   LinkRaze — Base Styles
   Reset, variables, typography, layout
   ============================================================ */

/* Google Fonts — @import must precede all CSS rules per spec */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* Shared brand palette (--bg-*, --orange*, --text-*, --border*, --radius,
   --font-*). Source of truth: shared/linkraze-tokens.css → scripts/sync-tokens. */
@import url('tokens.css');

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

:root {
  /* Public-site-local palette — core brand tokens come from tokens.css above. */
  --bg-footer:   #060708;

  /* Orange glow intensities tuned brighter for the marketing surface */
  --orange-glow:   rgba(255, 106, 26, 0.20);
  --orange-subtle: rgba(255, 106, 26, 0.08);

  /* Text aliases & utility colors */
  --white:          #F5F7FA;
  --muted:          #7B8492;
  --text-steel:     #8B95A7;
  --success:        #3BD18A;
  --neutral-chart:  #657083;

  --radius-lg:   20px;
  --transition:  0.25s ease;

  /* ── Extended Backgrounds ────────────────────────────────────── */
  --bg-void:      #040507;
  --bg-surface-2: #1B2232;
  --bg-glass:     rgba(255, 255, 255, 0.03);

  /* ── Extended Orange Spectrum ────────────────────────────────── */
  --orange-dim:    #E55A10;
  --orange-hot:    #FF8040;
  --orange-gold:   #FFC875;
  --orange-ember:  #CC4A0A;

  /* ── Glow System ─────────────────────────────────────────────── */
  --orange-glow-sm: rgba(255, 106, 26, 0.12);
  --orange-glow-lg: rgba(255, 106, 26, 0.38);
  --orange-ambient: rgba(255, 106, 26, 0.06);

  /* ── Extended Borders ────────────────────────────────────────── */
  --border-metallic: rgba(255, 255, 255, 0.08);
  --border-orange:   rgba(255, 106, 26, 0.22);
  --border-glow:     rgba(255, 106, 26, 0.40);

  /* ── Shadow System ───────────────────────────────────────────── */
  --shadow-sm:         0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-card:       0 4px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 106, 26, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-glow:       0 0 30px rgba(255, 106, 26, 0.22), 0 0 60px rgba(255, 106, 26, 0.06);
  --shadow-glow-sm:    0 0 16px rgba(255, 106, 26, 0.18);
  --shadow-btn:        0 4px 20px rgba(255, 106, 26, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --shadow-btn-hover:  0 6px 32px rgba(255, 106, 26, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.20);

  /* ── Gradient Tokens ─────────────────────────────────────────── */
  --gradient-orange:     linear-gradient(135deg, #FF7A2E 0%, #FF5C10 100%);
  --gradient-orange-dim: linear-gradient(135deg, #E06010 0%, #CC4A0A 100%);
  --gradient-surface:    linear-gradient(180deg, #161B24 0%, #10141A 100%);
  --gradient-card-shine: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  --gradient-card-top:   linear-gradient(180deg, rgba(255, 106, 26, 0.06) 0%, transparent 100%);

  /* ── Extended Motion ─────────────────────────────────────────── */
  --transition-slow: 0.40s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }


body {
  font-family: var(--font-sans);

  /* Layered background: grid + edge glows + dark gradient base */
  background-color: var(--bg-base);
  background-image:
    /* Fine orange-tinted grid — stays fixed, creates depth as page scrolls */
    linear-gradient(rgba(255, 106, 26, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 106, 26, 0.025) 1px, transparent 1px),
    /* Left wormhole edge glow */
    radial-gradient(ellipse 40% 80% at -6% 50%, rgba(255, 106, 26, 0.10) 0%, transparent 65%),
    /* Right wormhole edge glow */
    radial-gradient(ellipse 40% 80% at 106% 50%, rgba(255, 106, 26, 0.08) 0%, transparent 65%),
    /* Top ambient depth bloom */
    radial-gradient(ellipse 75% 30% at 50% -2%, rgba(210, 80, 10, 0.05) 0%, transparent 70%),
    /* Deep dark gradient base */
    linear-gradient(175deg, #0B0C11 0%, #08090B 45%, #050609 100%);
  background-size:
    60px 60px, 60px 60px,
    auto, auto, auto, auto;
  background-repeat:
    repeat, repeat,
    no-repeat, no-repeat, no-repeat, no-repeat;
  /* Grid + edge glows stay fixed (viewport-relative depth); base scrolls */
  background-attachment:
    fixed, fixed,
    fixed, fixed,
    scroll, scroll;

  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Disable fixed attachment on mobile — iOS Safari doesn't support it cleanly */
@media (max-width: 768px) {
  body { background-attachment: scroll; }
  section { padding: 64px 0; }
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { opacity: 0.85; }

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

/* ── Typography ─────────────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 14px rgba(255, 106, 26, 0.45);
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--muted); line-height: 1.75; }

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

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 120px 0; }

.section-header {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-header p { margin-top: 1rem; font-size: 1.08rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-orange);
  color: #07080B;
  border: 1px solid rgba(255, 140, 60, 0.30);
  box-shadow: var(--shadow-btn);
  font-weight: 800;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #FF8840 0%, #FF6820 100%);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
  opacity: 1;
}
.btn-primary:active {
  background: var(--gradient-orange-dim);
  transform: translateY(0);
  box-shadow: var(--shadow-glow-sm);
}

.btn-outline {
  background: rgba(255, 106, 26, 0.04);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255, 106, 26, 0.09);
  border-color: var(--border-orange);
  color: var(--white);
  opacity: 1;
  box-shadow: 0 0 20px var(--orange-ambient);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 0.5rem 0;
}
.btn-ghost:hover { color: var(--orange); opacity: 1; }

/* ── Focus-Visible — Keyboard Navigation ─────────────────────── */
:focus-visible {
  outline: 2px solid rgba(255, 106, 26, 0.65);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* ── Reduced Motion — Disable Hover Transforms ──────────────── */
@media (prefers-reduced-motion: reduce) {
  .feature-card:hover, .use-case-card:hover, .benefit-card:hover,
  .step:hover, .testimonial-card:hover, .faq-item:hover,
  .pricing-card:hover, .pricing-card.featured:hover,
  .btn-primary:hover, .btn-outline:hover {
    transform: none;
  }
}

/* ── Custom Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-orange); }

/* ── Selection ───────────────────────────────────────────────── */
::selection { background: rgba(255, 106, 26, 0.25); color: var(--white); }

/* ── Utility: Surface Types ──────────────────────────────────── */
.surface-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-metallic);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.surface-metallic {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

/* ── Utility: Glow Effects ───────────────────────────────────── */
.glow-text {
  color: var(--orange-accent);
  text-shadow: 0 0 20px var(--orange-glow), 0 0 40px var(--orange-ambient);
}

.glow-border {
  border-color: var(--border-orange) !important;
  box-shadow: 0 0 0 1px var(--border-orange), var(--shadow-glow-sm);
}

/* (Google Fonts @import moved to top of file for correct CSS spec ordering) */
