/* ═══════════════════════════════════════════════════════════
   SIVRAJ.IN v2.0 — Premium Redesign
   Inspired by Linear / Vercel / Apple
   ═══════════════════════════════════════════════════════════ */

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

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

:root {
  --bg: #050508;
  --bg2: #08080f;
  --surface: rgba(255,255,255,0.03);
  --surface2: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --purple: #7c3aed;
  --purple2: #8b5cf6;
  --purple-soft: rgba(124,58,237,0.15);
  --purple-glow: rgba(124,58,237,0.5);
  --cyan: #06b6d4;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --text: #ededed;
  --text2: rgba(255,255,255,0.50);
  --text3: rgba(255,255,255,0.30);
  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: rgba(124,58,237,0.3); }

/* ── Nav ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5,5,8,0.6);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.nav-left { display: flex; align-items: center; gap: 2rem; }

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none; color: var(--text);
}
.nav-logo .orb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple-glow);
}

.nav-links { display: flex; gap: 0.2rem; list-style: none; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: 0.82rem; font-weight: 450;
  padding: 0.35rem 0.7rem; border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }

.nav-right { display: flex; align-items: center; gap: 0.6rem; }

.nav-btn-ghost {
  padding: 0.35rem 0.8rem; border-radius: 6px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text2); font-size: 0.82rem; font-weight: 500;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
  font-family: var(--font);
}
.nav-btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

.nav-btn {
  padding: 0.35rem 0.9rem; border-radius: 6px;
  background: var(--purple); border: none;
  color: white; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: all 0.25s; cursor: pointer;
  font-family: var(--font);
}
.nav-btn:hover { background: var(--purple2); box-shadow: 0 0 20px rgba(124,58,237,0.3); }

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

#particles-canvas {
  position: absolute; inset: 0; z-index: 0;
}

.hero-glow {
  position: absolute; top: 35%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* 3D Orb */
.orb-container {
  position: relative; z-index: 1;
  width: 180px; height: 180px;
  margin-bottom: 3rem;
  perspective: 800px;
}

.orb-3d {
  width: 100%; height: 100%; border-radius: 50%;
  position: relative;
  background: radial-gradient(ellipse at 35% 25%,
    rgba(167,139,250,0.25) 0%,
    rgba(124,58,237,0.12) 30%,
    rgba(124,58,237,0.05) 50%,
    rgba(5,5,8,0.9) 100%);
  border: 1px solid rgba(124,58,237,0.2);
  box-shadow:
    0 0 80px rgba(124,58,237,0.15),
    0 0 200px rgba(124,58,237,0.05),
    inset 0 0 60px rgba(124,58,237,0.08);
  animation: orb-breathe 6s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s;
}
.orb-3d:hover { transform: scale(1.05); }

.orb-3d::before {
  content: ''; position: absolute;
  top: 12%; left: 18%; width: 35%; height: 25%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.orb-3d::after {
  content: ''; position: absolute; inset: -2px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), transparent 50%) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude; -webkit-mask-composite: xor;
}

.orb-pulse {
  position: absolute; inset: -20px; border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.06);
  animation: pulse-ring 4s ease-out infinite;
}
.orb-pulse:nth-child(2) { animation-delay: 1.3s; }
.orb-pulse:nth-child(3) { animation-delay: 2.6s; }

@keyframes orb-breathe {
  0%, 100% { box-shadow: 0 0 80px rgba(124,58,237,0.15), 0 0 200px rgba(124,58,237,0.05); }
  50% { box-shadow: 0 0 100px rgba(124,58,237,0.25), 0 0 250px rgba(124,58,237,0.08); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Hero Text */
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 500; color: var(--text2);
  margin-bottom: 1.5rem; z-index: 1;
}
.hero-tag .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(16,185,129,0.5);
  animation: blink-soft 2s ease-in-out infinite;
}
@keyframes blink-soft { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 0.95; z-index: 1;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.hero .gradient-text {
  background: linear-gradient(135deg, var(--text) 0%, var(--purple2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero .sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text2); max-width: 480px;
  margin: 1.2rem auto 2.5rem; z-index: 1;
  font-weight: 400; line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero-ctas {
  display: flex; gap: 0.8rem; z-index: 1;
}

.cta-primary {
  padding: 0.65rem 1.4rem; border-radius: 8px;
  background: var(--purple); color: white;
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s; font-family: var(--font);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 20px rgba(124,58,237,0.2);
}
.cta-primary:hover {
  background: var(--purple2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 40px rgba(124,58,237,0.35);
  transform: translateY(-1px);
}

.cta-ghost {
  padding: 0.65rem 1.4rem; border-radius: 8px;
  background: transparent; color: var(--text2);
  font-weight: 500; font-size: 0.88rem;
  text-decoration: none; border: 1px solid var(--border);
  cursor: pointer; transition: all 0.25s; font-family: var(--font);
}
.cta-ghost:hover {
  border-color: var(--border-hover); color: var(--text);
  background: var(--surface);
}

/* ── Trusted / Metrics Bar ────────────────── */
.metrics {
  display: flex; justify-content: center; gap: 3.5rem;
  padding: 4rem 2rem 0; z-index: 1;
}
.metric { text-align: center; }
.metric-val {
  font-size: 1.8rem; font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--text), var(--text2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.metric-label { font-size: 0.75rem; color: var(--text3); margin-top: 0.2rem; font-weight: 500; }

/* ── Section ─────────────────────────────── */
section { padding: 7rem 2rem; position: relative; }

.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
}

.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--purple2);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1;
  max-width: 600px;
}

.section-desc {
  color: var(--text2); margin-top: 0.8rem;
  font-size: 1rem; max-width: 500px; line-height: 1.6;
}

.section-head { max-width: 1100px; margin: 0 auto 3.5rem; }
.section-head.center { text-align: center; }
.section-head.center .section-title,
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ── Feature Bento Grid ──────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; max-width: 1100px; margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.bento-card {
  padding: 2.5rem 2rem;
  background: var(--bg);
  transition: background 0.3s;
  position: relative;
}
.bento-card:hover { background: var(--bg2); }

.bento-card.span-2 { grid-column: span 2; }

.bento-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 1.2rem;
  background: var(--purple-soft); border: 1px solid rgba(124,58,237,0.2);
}

.bento-card[data-accent="cyan"] .bento-icon { background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.2); }
.bento-card[data-accent="green"] .bento-icon { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); }
.bento-card[data-accent="amber"] .bento-icon { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.2); }

.bento-card h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.bento-card p { color: var(--text2); font-size: 0.88rem; line-height: 1.55; }

/* ── Architecture ────────────────────────── */
.arch-flow {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}

.arch-box {
  flex: 1; padding: 2rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  text-align: center; transition: all 0.3s;
}
.arch-box:hover { border-color: var(--border-hover); background: var(--surface2); }
.arch-box .icon { font-size: 2rem; margin-bottom: 0.6rem; }
.arch-box h4 { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.arch-box p { font-size: 0.78rem; color: var(--text3); line-height: 1.5; }

.arch-connector {
  color: var(--text3); font-size: 1.2rem;
  flex-shrink: 0; animation: fade-pulse 3s ease-in-out infinite;
}
@keyframes fade-pulse { 0%,100%{opacity:0.3} 50%{opacity:0.8} }

/* ── Terminal ────────────────────────────── */
.terminal-wrap {
  max-width: 680px; margin: 3rem auto 0;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--border);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.r { background: #3b3b3b; } .t-dot.y { background: #3b3b3b; } .t-dot.g { background: #3b3b3b; }
.terminal-bar:hover .t-dot.r { background: #ef4444; }
.terminal-bar:hover .t-dot.y { background: #f59e0b; }
.terminal-bar:hover .t-dot.g { background: #22c55e; }

.terminal-body {
  padding: 1.2rem; font-family: var(--mono);
  font-size: 0.8rem; min-height: 200px; line-height: 1.9;
}
.terminal-body .prompt { color: var(--purple2); }
.terminal-body .out { color: var(--text2); }
.terminal-body .ok { color: var(--green); }
.terminal-body .cursor {
  display: inline-block; width: 7px; height: 14px;
  background: var(--purple2); vertical-align: text-bottom;
  margin-left: 2px; animation: blink-cursor 1s step-end infinite;
}
@keyframes blink-cursor { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Commands Showcase ─────────────────── */
.cmd-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.5rem; }

.cmd-row {
  display: flex; align-items: center;
  padding: 0.75rem 1.2rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.25s; gap: 1rem;
}
.cmd-row:hover { border-color: var(--border-hover); background: var(--surface2); }
.cmd-voice { flex: 1; font-size: 0.88rem; color: var(--text); font-weight: 500; }
.cmd-icon { color: var(--text3); font-size: 0.8rem; }
.cmd-action { flex: 1; font-size: 0.82rem; color: var(--text3); font-family: var(--mono); }

/* ── Hardware Grid ──────────────────────── */
.hw-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; max-width: 900px; margin: 0 auto;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}

.hw-card {
  padding: 2rem; background: var(--bg);
  transition: background 0.3s;
}
.hw-card:hover { background: var(--bg2); }
.hw-card .icon { font-size: 1.5rem; margin-bottom: 0.8rem; }
.hw-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.hw-card p { color: var(--text2); font-size: 0.85rem; margin-bottom: 0.6rem; }
.hw-card ul { list-style: none; }
.hw-card ul li {
  color: var(--text3); font-size: 0.8rem;
  padding: 0.2rem 0; display: flex; align-items: center; gap: 0.4rem;
}
.hw-card ul li::before { content: '›'; color: var(--purple2); font-weight: 700; }

/* ── CTA Section ──────────────────────── */
.cta-section {
  text-align: center; padding: 8rem 2rem;
  position: relative;
}
.cta-section::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.06), transparent 70%);
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 0.8rem; position: relative;
}
.cta-section p {
  color: var(--text2); margin-bottom: 2rem;
  font-size: 1rem; position: relative;
}

/* ── Footer ───────────────────────────── */
footer {
  padding: 2rem; text-align: center;
  border-top: 1px solid var(--border);
}
footer p { color: var(--text3); font-size: 0.78rem; }
footer a { color: var(--text2); text-decoration: none; }
footer a:hover { color: var(--purple2); }

/* ── Reveal Animations ──────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-btn-ghost { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .metrics { flex-wrap: wrap; gap: 1.5rem; }
  .arch-flow { flex-direction: column; }
  .arch-connector { transform: rotate(90deg); }
  .hw-grid { grid-template-columns: 1fr; }
  .orb-container { width: 140px; height: 140px; }
}
