/* =========================================================================
   PushForge landing page
   Dark glassmorphism + forge ember / cyber gradients
   ========================================================================= */

:root {
  --bg-0: #05050c;
  --bg-1: #0a0a18;
  --bg-2: #10102a;
  --ink: #eef0ff;
  --ink-dim: #a7acca;
  --ink-faint: #6b7194;

  --cyan: #22d3ee;
  --violet: #8b7cff;
  --fuchsia: #e879f9;
  --ember: #ff8a3d;
  --amber: #ffc25c;
  --green: #4ade80;
  --red: #fb7185;

  --grad-tech: linear-gradient(110deg, var(--cyan), var(--violet) 55%, var(--fuchsia));
  --grad-ember: linear-gradient(110deg, var(--amber), var(--ember) 60%, #ff5d5d);

  --glass-bg: rgba(18, 19, 42, 0.55);
  --glass-brd: rgba(160, 170, 255, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --blur: 18px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 800px at 80% -10%, #1a1440 0%, transparent 60%),
              radial-gradient(900px 700px at -10% 10%, #06283a 0%, transparent 55%),
              var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: 0.88em; }

/* ----------------------------- glass ----------------------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
}

/* ----------------------------- nav ------------------------------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 16px;
  border-radius: 16px;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.nav.scrolled {
  background: rgba(10, 10, 24, 0.78);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-mark {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 12px rgba(255, 138, 61, 0.75));
}
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--ink-dim); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.86rem;
  padding: 9px 16px; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.18s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.primary {
  background: var(--grad-ember);
  color: #1a0c02;
  box-shadow: 0 10px 30px rgba(255, 138, 61, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn.primary:hover { box-shadow: 0 14px 42px rgba(255, 138, 61, 0.55); transform: translateY(-2px); }
.btn.ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--glass-brd); color: var(--ink); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn.big { padding: 13px 22px; font-size: 0.95rem; border-radius: 13px; }

.hamburger { display: none; background: none; border: 0; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ----------------------------- hero ------------------------------ */
.hero { padding: 170px 24px 90px; min-height: 100vh; display: flex; align-items: center; }
.hero-inner { width: min(var(--maxw), 100%); margin: 0 auto; text-align: center; position: relative; }
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 124, 255, 0.28), rgba(34, 211, 238, 0.12) 40%, transparent 68%);
  filter: blur(30px); pointer-events: none; z-index: -1;
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: translateX(-50%) scale(1); opacity: 0.9; } 50% { transform: translateX(-50%) scale(1.12); opacity: 0.65; } }

.badge {
  display: inline-block; padding: 7px 15px; border-radius: 999px;
  font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.7rem, 8vw, 5.6rem); line-height: 1.02;
  letter-spacing: -0.035em; margin: 0 0 22px;
}
.grad {
  background: var(--grad-tech); -webkit-background-clip: text; background-clip: text;
  color: transparent; background-size: 220% 220%;
  animation: shift 7s ease infinite;
  filter: drop-shadow(0 6px 30px rgba(139, 124, 255, 0.35));
}
@keyframes shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-sub { max-width: 680px; margin: 0 auto 36px; color: var(--ink-dim); font-size: clamp(1rem, 2.2vw, 1.2rem); }
.hero-sub em { color: var(--ink); font-style: normal; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 58px; }

.copy-btn { position: relative; }
.copy-ico { opacity: 0.7; font-size: 0.9em; }
.copy-btn.copied { background: linear-gradient(110deg, #34d399, #22d3ee); }

/* --------------------------- terminal ---------------------------- */
.terminal { width: min(760px, 100%); margin: 0 auto; border-radius: var(--radius); overflow: hidden; text-align: left; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--glass-brd); background: rgba(0, 0, 0, 0.25); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.terminal-title { margin-left: 10px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); }
.terminal-body { margin: 0; padding: 20px 22px; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.75; color: #c9cfef; overflow-x: auto; }
.hl-g { color: var(--green); } .hl-b { color: var(--cyan); } .hl-c { color: var(--violet); }
.hl-d { color: var(--ink-faint); } .hl-r { color: var(--red); }

/* --------------------------- sections ---------------------------- */
.section { padding: 110px 24px; width: min(var(--maxw), 100%); margin: 0 auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 58px; }
.section-head.left { text-align: left; margin: 0 0 28px; }
.eyebrow {
  display: inline-block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--cyan); font-weight: 600; margin-bottom: 14px;
}
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -0.03em; margin: 0 0 14px; line-height: 1.1; }
.section-head p { color: var(--ink-dim); font-size: 1.05rem; margin: 0; }

/* ----------------------------- cards ----------------------------- */
.card {
  background: linear-gradient(160deg, rgba(30, 32, 66, 0.62), rgba(12, 13, 30, 0.62));
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(139, 124, 255, 0.4); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }

.card.feat.shipped { border-color: rgba(74, 222, 128, 0.35); }
.card.feat.shipped h3 { color: var(--green); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; overflow: hidden; }
.step::after {
  content: ""; position: absolute; inset: 0 auto auto 0; height: 3px; width: 100%;
  background: var(--grad-tech); opacity: 0.5;
}
.step-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; background: var(--grad-tech); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-family: var(--font-display); margin: 6px 0 8px; font-size: 1.2rem; }
.step p { color: var(--ink-dim); margin: 0; font-size: 0.94rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-ico { font-size: 1.9rem; margin-bottom: 12px; filter: drop-shadow(0 6px 18px rgba(255, 138, 61, 0.35)); }
.feat h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 8px; }
.feat p { color: var(--ink-dim); margin: 0; font-size: 0.94rem; }

/* --------------------------- security ---------------------------- */
.security-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 40px; }
.block-example { width: 100%; margin: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card.mini { display: flex; gap: 12px; align-items: center; padding: 18px; }
.card.mini span { color: var(--green); font-weight: 700; font-size: 1.15rem; }
.card.mini p { margin: 0; color: var(--ink-dim); font-size: 0.88rem; }

/* ----------------------------- tabs ------------------------------ */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 14px; margin: 0 auto 26px; }
.section#install { text-align: center; }
.section#install .section-head { text-align: center; }
.tabs { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
.tab {
  background: none; border: 0; color: var(--ink-dim); font-family: var(--font-body); font-weight: 600;
  font-size: 0.9rem; padding: 9px 20px; border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--grad-ember); color: #1a0c02; box-shadow: 0 8px 24px rgba(255, 138, 61, 0.35); }
.panel { display: none; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.panel.active { display: grid; animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.code-card { padding: 0; overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--glass-brd); font-size: 0.8rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; background: rgba(0,0,0,0.2); }
.copy-btn.inline { background: none; border: 1px solid var(--glass-brd); color: var(--ink-dim); padding: 3px 9px; border-radius: 7px; cursor: pointer; font-size: 0.85rem; }
.copy-btn.inline:hover { color: var(--ink); border-color: var(--violet); }
.code-card pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.8; color: #cdd3f5; }
.panel .card { height: 100%; }

/* ----------------------------- table ----------------------------- */
.table-wrap { padding: 8px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid rgba(160, 170, 255, 0.09); }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); font-weight: 600; }
td { color: var(--ink-dim); font-size: 0.94rem; }
td:first-child { color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(139, 124, 255, 0.06); }
td code { background: rgba(139, 124, 255, 0.12); border: 1px solid rgba(139, 124, 255, 0.2); padding: 3px 8px; border-radius: 7px; color: #cdd3f5; }

.roadmap { grid-template-columns: repeat(3, 1fr); }
.cta-final { padding-bottom: 140px; }
.cta-card { text-align: center; padding: 64px 28px; background: linear-gradient(150deg, rgba(41, 33, 92, 0.75), rgba(12, 13, 30, 0.8)); position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: -40% 25% auto; height: 320px; background: radial-gradient(circle, rgba(255, 138, 61, 0.28), transparent 65%); filter: blur(30px); }
.cta-card h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 12px; position: relative; }
.cta-card p { color: var(--ink-dim); margin: 0 0 26px; position: relative; }
.cta-card .btn { position: relative; }

/* ----------------------------- footer ---------------------------- */
footer { border-top: 1px solid var(--glass-brd); padding: 46px 24px; background: rgba(5, 5, 12, 0.6); }
.foot-inner { width: min(var(--maxw), 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.foot-brand { display: flex; gap: 9px; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--ink-dim); font-size: 0.9rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--cyan); }
.foot-credit { color: var(--ink-faint); font-size: 0.88rem; margin: 0; }
.foot-credit strong { color: var(--ink); }
.foot-credit a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(139,124,255,0.5); transition: color 0.2s, text-decoration-color 0.2s; }
.foot-credit a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* -------------------------- responsive --------------------------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; margin-left: auto; }
  .nav.open .nav-links { display: flex; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 4px; padding: 14px; background: rgba(10,10,24,0.96); border: 1px solid var(--glass-brd); border-radius: 14px; }
  .nav.open .nav-cta { display: flex; position: absolute; top: 240px; left: 0; right: 0; padding: 0 14px; }
  .steps, .grid, .roadmap, .security-layout, .panel, .mini-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
}
@media (max-width: 520px) {
  .section { padding: 80px 18px; }
  .tabs { flex-wrap: wrap; justify-content: center; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
