/* ============================================================
   Proxera Website — Dark Modern Stylesheet
   Inspired by kairos.wenisch.tech design system
============================================================ */

/* -- Reset -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* -- Design Tokens -- */
:root {
  --bg-base:      #07070f;
  --bg-card:      #0e0e1a;
  --bg-card2:     #14141f;
  --border:       rgba(255, 255, 255, .07);
  --primary:      #6366f1;
  --primary-glow: rgba(99, 102, 241, .35);
  --accent:       #22d3ee;
  --accent-glow:  rgba(34, 211, 238, .25);
  --purple:       #a855f7;
  --purple-glow:  rgba(168, 85, 247, .3);
  --green:        #10b981;
  --green-glow:   rgba(16, 185, 129, .3);
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-subtle:  #64748b;
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   .3s cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--primary); color: #fff; }

/* -- Particles Canvas -- */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .45;
}

/* -- Skip Link -- */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem; top: 1rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  background: #fff;
  color: #000;
  z-index: 999;
  text-decoration: none;
}

/* -- Container -- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(7, 7, 15, .82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.02em;
}

.logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.logo-img {
  width: 32px; height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.6rem;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: #fff;
  box-shadow: 0 4px 24px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.nav-cta { font-size: .875rem; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }

/* ============================================================
   SECTION HELPERS
============================================================ */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .2);
  padding: .28rem .8rem;
  border-radius: 99px;
  margin-bottom: .9rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: .75rem auto 0;
  max-width: 560px;
}
.section-header.center .section-subtitle { text-align: center; }

/* -- Scroll Reveal -- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 800px;
  background: radial-gradient(ellipse at center,
    rgba(99, 102, 241, .15) 0%,
    rgba(34, 211, 238, .06) 45%,
    transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .25);
  color: #a5b4fc;
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem 1.1rem;
  border-radius: 99px;
  margin-bottom: 1.75rem;
  animation: fadeDown .7s ease both;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseRing 1.8s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
  50%       { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.05;
  animation: fadeDown .7s .1s ease both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradShift 6s ease-in-out infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 1.25rem auto 0;
  animation: fadeDown .7s .2s ease both;
}

.hero-actions {
  display: flex;
  gap: .9rem;
  margin-top: 2.25rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeDown .7s .3s ease both;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 2.25rem;
  animation: fadeDown .7s .42s ease both;
}
.hero-pills span {
  font-size: .79rem;
  font-weight: 500;
  padding: .32rem .85rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .03);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--text-subtle);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  animation: fadeIn 1.5s 1s ease both;
}

.mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--text-subtle);
  border-radius: 12px;
  position: relative;
}
.wheel {
  position: absolute;
  left: 50%; top: 5px;
  transform: translateX(-50%);
  width: 3px; height: 7px;
  background: var(--text-subtle);
  border-radius: 2px;
  animation: wheelScroll 1.5s ease-in-out infinite;
}
@keyframes wheelScroll {
  0%   { opacity: 1; top: 5px; }
  100% { opacity: 0; top: 17px; }
}

/* ============================================================
   FLOW DIAGRAM
============================================================ */
#flow {
  background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, .04) 50%, transparent);
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0 1.5rem;
  padding: 1rem 0;
  overflow-x: auto;
  gap: 0;
}

/* Nodes */
.fnode {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  min-width: 145px;
  flex-shrink: 0;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.fnode-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.fnode:hover { transform: translateY(-4px); }
.fnode:hover .fnode-glow { opacity: 1; }

.fnode.highlight {
  border-color: rgba(99, 102, 241, .45);
  box-shadow: 0 0 40px rgba(99, 102, 241, .18);
}

/* per-color node glow and hover */
.fnode[data-color="cyan"]    .fnode-glow { background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, .15), transparent 70%); }
.fnode[data-color="primary"] .fnode-glow { background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, .15), transparent 70%); }
.fnode[data-color="purple"]  .fnode-glow { background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, .15), transparent 70%); }
.fnode[data-color="green"]   .fnode-glow { background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, .15), transparent 70%); }

.fnode[data-color="cyan"]:hover    { border-color: var(--accent);   box-shadow: 0 0 30px rgba(34, 211, 238, .18); }
.fnode[data-color="primary"]:hover { border-color: var(--primary);  box-shadow: 0 0 30px rgba(99, 102, 241, .25); }
.fnode[data-color="purple"]:hover  { border-color: var(--purple);   box-shadow: 0 0 30px rgba(168, 85, 247, .2); }
.fnode[data-color="green"]:hover   { border-color: var(--green);    box-shadow: 0 0 30px rgba(16, 185, 129, .2); }

.fnode-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.fnode-name { font-size: .88rem; font-weight: 700; }
.fnode-sub  { font-size: .71rem; color: var(--text-subtle); margin-top: .2rem; }

/* Connectors */
.fconn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  flex: 1;
  min-width: 80px;
  max-width: 140px;
  padding: 0 .4rem;
}

.fconn-label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.fconn-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(99, 102, 241, .5), rgba(34, 211, 238, .7));
  position: relative;
  border-radius: 1px;
}

.fconn.bidir .fconn-line {
  background: linear-gradient(90deg, rgba(168, 85, 247, .7), rgba(99, 102, 241, .6), rgba(34, 211, 238, .7));
}

.fconn-particle {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, .7);
  animation: particleFlow 2.2s linear infinite;
  display: block;
}

.fconn.bidir .fconn-particle:first-child {
  animation-name: particleFlow;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(168, 85, 247, .7);
}
.fconn.bidir .fconn-particle:last-child {
  animation-name: particleFlowRev;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(99, 102, 241, .7);
}

@keyframes particleFlow {
  0%   { left: 0;                     opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: calc(100% - 10px);     opacity: 0; }
}
@keyframes particleFlowRev {
  0%   { left: calc(100% - 10px);     opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 0;                     opacity: 0; }
}

.fconn-arrow {
  font-size: .95rem;
  color: var(--accent);
  line-height: 1;
}

.fconn-badge {
  font-size: .62rem;
  font-weight: 600;
  color: var(--purple);
  background: rgba(168, 85, 247, .1);
  border: 1px solid rgba(168, 85, 247, .25);
  border-radius: 99px;
  padding: .18rem .6rem;
  white-space: nowrap;
  text-align: center;
}

.flow-note {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 600px;
  margin: 0 auto;
}
.flow-note strong { color: var(--text); }
.flow-note em     { color: var(--accent); font-style: normal; }

/* ============================================================
   FEATURES
============================================================ */
#features {
  background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, .04) 50%, transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  transition-delay: var(--delay, 0s);
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, .06), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  border-color: rgba(99, 102, 241, .4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .2);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.feature-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   ARCHITECTURE / SECURITY
============================================================ */
#architecture {
  padding: 5rem 0;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.arch-card:hover {
  border-color: rgba(34, 211, 238, .28);
  transform: translateX(4px);
}
.arch-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--accent);
}
.arch-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   USE CASES
============================================================ */
#use-cases {
  background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, .04) 50%, transparent);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.usecase-card:hover {
  border-color: rgba(168, 85, 247, .32);
  transform: translateY(-3px);
}
.usecase-icon {
  font-size: 1.75rem;
  margin-bottom: .75rem;
}
.usecase-card h3 {
  font-size: .98rem;
  font-weight: 700;
  margin-bottom: .45rem;
}
.usecase-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   QUICKSTART
============================================================ */
#quickstart {
  background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, .03) 50%, transparent);
}

.quickstart-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color var(--transition);
}
.step-card:hover { border-color: rgba(99, 102, 241, .38); }

.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.step-body h4 { font-size: .92rem; font-weight: 700; margin-bottom: .2rem; }
.step-body p  { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

.quickstart-docs-cta {
  margin-top: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.quickstart-docs-cta p {
  color: var(--text-muted);
  font-size: .92rem;
}


  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
}

.tab-btn {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .45rem 1.1rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Code Blocks */
.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}

.code-block-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.code-lang-badge {
  font-size: .7rem;
  background: rgba(99, 102, 241, .2);
  color: #a5b4fc;
  padding: .15rem .55rem;
  border-radius: 4px;
  font-weight: 600;
}

.code-block pre {
  padding: 1.25rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .8rem;
  line-height: 1.75;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}

.code-block pre .c  { color: #64748b; font-style: italic; }
.code-block pre .kw { color: var(--accent); }
.code-block pre .k  { color: #f9a8d4; }
.code-block pre .v  { color: #fde68a; }
.code-block pre .s  { color: #86efac; }

.tab-panel         { display: none; }
.tab-panel.active  { display: block; }

/* ============================================================
   FAQ
============================================================ */
#faq { padding: 5rem 0; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(99, 102, 241, .4); }

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.faq-btn:hover { background: rgba(255, 255, 255, .03); }

.faq-icon {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .42s cubic-bezier(.4, 0, .2, 1);
}
.faq-item.open .faq-body { max-height: 300px; }

.faq-body p {
  padding: 0 1.25rem 1.1rem;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   CTA
============================================================ */
#cta { padding: 6rem 0; }

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -130px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, .18), transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .9rem;
  position: relative;
}
.cta-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2.25rem;
  position: relative;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.02em;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: .875rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  font-size: .8rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.footer-copy a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-copy a:hover { color: var(--text); }

/* ============================================================
   KEYFRAMES
============================================================ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 960px) {
  .quickstart-layout { grid-template-columns: 1fr; }
  .code-side { min-width: 0; overflow: hidden; }
  .code-block pre { font-size: .72rem; }
  .tab-btn { padding: .45rem .75rem; font-size: .78rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }

  section { padding: 4rem 0; }
  #hero    { padding: 6rem 1.5rem 4rem; }

  .features-grid,
  .usecase-grid  { grid-template-columns: 1fr; }
  .arch-grid     { grid-template-columns: 1fr; }

  .hero-title    { font-size: clamp(2.4rem, 9vw, 3.8rem); }
  .cta-box       { padding: 2.5rem 1.5rem; }
  .footer-inner  { flex-direction: column; align-items: flex-start; }

  .flow-diagram {
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
  }
  .fconn {
    flex-direction: row;
    min-width: auto;
    max-width: none;
    width: 55px;
    padding: 0;
  }
  .fconn-label,
  .fconn-badge  { display: none; }
  .fconn-line   { flex: 1; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }

  .flow-diagram { flex-direction: column; align-items: center; }
  .fconn {
    width: 2px;
    height: 40px;
    flex-direction: column;
  }
  .fconn-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(99, 102, 241, .5), rgba(34, 211, 238, .7));
  }
  .fconn-arrow { display: none; }
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  #particles-canvas { display: none; }
}
