/* ============================================================
   Fulgor Design System  ·  fulgorlabs.com
   Built with website-design-skill — Direction: CORPORATE PREMIUM (light)
   Type: Clash Display + Satoshi · 8px grid · physics-based motion
   ============================================================ */

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

:root {
  /* ── Light canvas ── */
  --white:     #FFFFFF;
  --bg:        #FFFFFF;
  --bg-soft:   #F5F7FB;   /* alternating sections */
  --surface:   #FFFFFF;
  --surface-2: #FAFBFE;
  --tint:      #EEF3FF;   /* primary-tinted wash */

  /* ── Ink & lines ── */
  --ink:    #0C1320;   /* headings */
  --text:   #3A475E;   /* body */
  --muted:  #6B7A92;
  --faint:  #9AA6BC;
  --border:   #E6EAF1;
  --border-2: #D7DEEA;
  --hairline: #EDF0F6;

  /* ── Brand ── */
  --primary:    #2A6BFF;   /* electric blue */
  --primary-600:#1B54E0;
  --primary-50: #EEF3FF;
  --accent:     #06B6D4;   /* cyan accent, used sparingly */
  --secure:     #0BB07B;   /* success / VPN green */
  --gold:       #F5A623;   /* stars */
  --warn:       #F2547B;

  /* compat aliases (kept so shared rules don't break) */
  --fulgor:  var(--primary);
  --fulgor2: var(--accent);

  --grad:      linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  --grad-text: linear-gradient(95deg, #2A6BFF 0%, #2BB6E6 55%, #06B6D4 100%);

  /* ── Type (skill: Clash Display + Satoshi) ── */
  --font-display: 'Clash Display', 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Satoshi', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-sans:    var(--font-body);
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale — Major Third (1.25) per skill */
  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-base:1rem;
  --text-lg:  1.25rem;
  --text-xl:  1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;
  --text-5xl: 3.815rem;

  /* 8px spacing grid */
  --space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-6: 48px; --space-8: 64px; --space-12: 96px; --space-16: 128px;

  /* ── Metrics ── */
  --container: 1200px;
  --nav-h: 72px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --gap: 24px;
  --section-py: clamp(72px, 9vw, 128px);

  /* Soft, premium shadows */
  --shadow-xs: 0 1px 2px rgba(16,32,64,0.05);
  --shadow-sm: 0 4px 14px rgba(16,32,64,0.06);
  --shadow-md: 0 16px 48px rgba(16,32,64,0.10);
  --shadow-lg: 0 30px 80px rgba(16,32,64,0.14);

  /* ── Easing (skill) ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:   cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
p, a, button, strong, em, li, label, input, textarea, select { font-family: inherit; }
strong { color: var(--ink); font-weight: 600; }

::selection { background: rgba(42,107,255,0.16); color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

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

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

.section { padding: var(--section-py) 0; position: relative; z-index: 1; }

.section--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-head { max-width: 600px; margin-bottom: var(--space-8); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--primary); opacity: 0.6; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }

/* ── Headings ── */
.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, var(--text-5xl));
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, var(--text-3xl));
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lead {
  margin-top: var(--space-2);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Grid ── */
.grid { display: grid; gap: var(--gap); align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }

/* ── Card ── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-2); }

.card--surface { background: var(--surface-2); }

.card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary-50);
  border: 1px solid rgba(42,107,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-3);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-spring);
}
.card__icon svg { width: 22px; height: 22px; }
.card:hover .card__icon { background: var(--primary); color: #fff; transform: translateY(-2px); }

.card__body { flex: 1; }
.card__text { margin-top: 10px; font-size: var(--text-sm); line-height: 1.65; color: var(--muted); }

.card__tag {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-2);
  padding: 5px 11px;
  border-radius: 100px;
  align-self: flex-start;
}
.card__footer { margin-top: auto; padding-top: var(--space-3); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(42,107,255,0.28);
}
.btn--primary:hover { background: var(--primary-600); box-shadow: 0 12px 32px rgba(42,107,255,0.36); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-2);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-in-out), border-color 0.3s var(--ease-in-out), box-shadow 0.3s var(--ease-in-out), backdrop-filter 0.3s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* Text-only wordmark logo */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo em { font-style: normal; color: var(--primary); }

.nav__links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out-expo);
}
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  padding: 11px 20px !important;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(42,107,255,0.28);
  transition: background 0.2s, transform 0.15s var(--ease-spring) !important;
}
.nav__cta:hover { background: var(--primary-600) !important; transform: translateY(-2px); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

/* ── Footer ── */
.footer { background: var(--bg-soft); border-top: 1px solid var(--hairline); padding: var(--space-12) 0 var(--space-4); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.footer__brand p { margin-top: var(--space-2); max-width: 300px; font-size: var(--text-sm); line-height: 1.7; color: var(--muted); }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: var(--space-2);
}
.footer__col ul { list-style: none; }
.footer__col li + li { margin-top: 12px; }
.footer__col a { font-size: var(--text-sm); color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--faint);
}
.footer__bottom a { color: var(--primary); text-decoration: none; }
.footer__bottom a:hover { color: var(--primary-600); }

/* ── Stat ── */
.stat {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, var(--text-4xl));
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label { margin-top: 12px; font-size: var(--text-sm); color: var(--muted); }

/* ── Reveal (skill: scroll-triggered) ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo); }
.reveal.is-visible, .reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 20px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
