/* =============================================
   GPUFunda — Shared Stylesheet
   Mytron Labs | Dark & Minimal
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --primary:     #EDEFF7;
  --secondary:   #9DA2B3;
  --muted:       #6E7180;
  --bg:          #000000;
  --bg-alt:      #1E1E24;
  --bg-hover:    #252530;
  --border:      #40424D;
  --font:        'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:      12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--primary); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { color: var(--secondary); }

/* ─── Layout ─── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

/* ─── Dot Grid Background ─── */
.grid-bg { position: relative; }
.grid-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
}
.grid-bg > * { position: relative; z-index: 1; }

/* ─── Eyebrow ─── */
.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

/* ─── Navigation — Floating Pill ─── */
nav {
  position: fixed; top: 16px; left: 50%; z-index: 100;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1140px;
  background: rgba(14,14,18,0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(64,66,77,0.55);
  border-radius: 100px;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
nav.scrolled {
  background: rgba(10,10,14,0.92);
  border-color: rgba(64,66,77,0.75);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; padding: 0 8px 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 800; color: var(--primary);
  letter-spacing: -0.01em;
}
.nav-logo img { height: 28px; width: auto; display: block; filter: grayscale(1) brightness(2); }
.nav-logo .logo-icon {
  width: 28px; height: 28px; background: var(--primary);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.nav-logo .logo-icon svg { color: #000; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(255,255,255,0.06); }
.nav-cta {
  background: var(--primary) !important; color: #000 !important;
  font-weight: 700 !important; border-radius: 100px !important;
  font-size: 0.8rem !important; letter-spacing: 0.03em !important;
  padding: 8px 20px !important; display: inline-flex !important;
  align-items: center !important; gap: 6px !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: #D3D6E0 !important; transform: translateY(-1px) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--secondary); }

/* Mobile dropdown — floats below pill */
@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: 84px; left: 24px; right: 24px;
    background: rgba(14,14,18,0.97); border: 1px solid var(--border);
    border-radius: 20px; padding: 12px; gap: 2px;
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 16px; border-radius: 12px;
    text-align: left; letter-spacing: 0.04em;
  }
  .nav-links .nav-cta {
    margin-top: 6px; justify-content: center !important;
    border-radius: 12px !important; padding: 12px 20px !important;
  }
  .hamburger { display: block; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; font-family: var(--font);
  min-height: 48px; transform: translateY(0);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: #D3D6E0; box-shadow: 0 6px 24px rgba(237,239,247,0.18); }
.btn-outline {
  background: transparent; color: var(--secondary);
  border: 1px solid var(--border);
}
.btn-outline:hover { color: var(--primary); border-color: #6B6F7E; }
.btn-ghost { background: transparent; color: var(--secondary); padding: 14px 0; transform: none; }
.btn-ghost:hover { color: var(--primary); transform: none; }
.btn-lg { padding: 16px 36px; font-size: 0.95rem; }

/* ─── Cards ─── */
.card {
  background: var(--bg-alt); border: 1px solid rgba(64,66,77,0.3);
  border-radius: var(--radius); padding: 40px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { background: var(--bg-hover); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.card-bordered { border-color: var(--border); }

/* ─── Section Number ─── */
.sec-num {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800; color: var(--border);
  line-height: 1; margin-bottom: 16px;
  transition: color 0.3s;
}
.card:hover .sec-num { color: var(--muted); }

/* ─── Grid ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
.grid-3-gap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2-gap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ─── Section Header ─── */
.section-header { max-width: 720px; margin-bottom: 64px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header .eyebrow { margin-bottom: 16px; display: block; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

/* ─── Divider ─── */
.divider { border: none; border-top: 1px solid var(--border); }

/* ─── Page Hero ─── */
.page-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { display: block; margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 20px; max-width: 700px; }
.page-hero p { font-size: 1.1rem; max-width: 560px; }

/* ─── Pill Tag ─── */
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
}
.pill-dim { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }

/* ─── Scroll Progress Bar ─── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 200;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%; transition: width 0.08s linear;
  pointer-events: none;
}

/* ─── Nav scrolled state ─── */
nav.scrolled {
  box-shadow: 0 1px 32px rgba(0,0,0,0.6);
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.15s; }
.reveal-d3 { transition-delay: 0.25s; }
.reveal-d4 { transition-delay: 0.35s; }
.reveal-d5 { transition-delay: 0.45s; }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.4s; }
.fade-up-4 { animation-delay: 0.55s; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.blink { animation: blink 2s infinite; }

/* ─── Footer ─── */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: var(--muted); }
.footer-col h4 {
  color: var(--primary); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col a { display: block; color: var(--muted); font-size: 0.875rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--muted);
}

/* ─── Chevron Arrow ─── */
.arrow-icon { transition: transform 0.2s; }
a:hover .arrow-icon, button:hover .arrow-icon { transform: translateX(3px); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .grid-3, .grid-3-gap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-3-gap, .grid-2, .grid-2-gap { grid-template-columns: 1fr; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(0,0,0,0.97); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section { padding: 64px 0; }
}
