/* ---------- Tokens ---------- */
:root {
  --bg: #06080d;
  --bg-2: #0a0e15;
  --surface: #0f141d;
  --surface-2: #131923;
  --border: #1c2531;
  --border-2: #2a3548;
  --text: #e6edf6;
  --text-dim: #9aa6b8;
  --text-muted: #5e6a7d;
  --accent: #ff5c3d;        /* coral/orange (logo match) */
  --accent-2: #ffa07a;       /* lighter coral */
  --accent-glow: rgba(255, 92, 61, 0.45);
  --danger: #f87171;
  --warn: #fbbf24;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Background FX ---------- */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 92, 61, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 92, 61, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 92, 61, 0.18), transparent 60%);
  filter: blur(40px);
}

/* ---------- Layout ---------- */
.nav, .hero, .section, .footer { position: relative; z-index: 1; }

.nav {
  max-width: 1180px; margin: 0 auto;
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 92, 61, 0.35));
}
.brand-text {
  font-family: var(--mono); font-weight: 700; font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.brand-accent { color: var(--accent); }
.brand-dot { color: var(--text-muted); font-weight: 500; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--mono); font-size: 0.85rem;
  color: var(--text-dim); transition: color .2s ease;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1180px; margin: 0 auto;
  padding: 70px 28px 90px;
}
.hero-inner { max-width: 880px; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(15, 20, 29, 0.6);
  backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 0.74rem;
  color: var(--text-dim); letter-spacing: 0.06em;
  margin-bottom: 32px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.06; letter-spacing: -0.025em;
  font-weight: 600; margin: 0 0 24px;
}
.grad {
  background: linear-gradient(120deg, #ff5c3d 0%, #ffa07a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 620px; margin: 0 0 36px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.02em;
  transition: all .2s ease;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent); color: #1a0904;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: #ff7a5c; transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Terminal ---------- */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
  max-width: 580px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.terminal-title {
  margin-left: 10px; font-family: var(--mono);
  font-size: 0.75rem; color: var(--text-muted);
}
.terminal-body {
  margin: 0; padding: 18px 20px;
  font-family: var(--mono); font-size: 0.82rem;
  line-height: 1.85;
  white-space: pre-wrap;
}
.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-out { color: var(--text-dim); display: block; padding-left: 0; }
.cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent); vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.section {
  max-width: 1180px; margin: 0 auto;
  padding: 80px 28px;
}
.section-head { margin-bottom: 48px; }
.kicker {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--accent); letter-spacing: 0.08em;
  display: block; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.02em;
  margin: 0; max-width: 720px;
}

/* About */
.about-grid {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 60px; align-items: start;
}
.about-text p {
  color: var(--text-dim); margin: 0 0 18px;
  font-size: 1.02rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }

.meta-list {
  list-style: none; padding: 0; margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.meta-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.85rem;
}
.meta-list li:last-child { border-bottom: none; }
.meta-key { color: var(--text-muted); }
.meta-val { color: var(--text); }

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: all .25s ease;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255, 92, 61, 0.08), transparent 40%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(255, 92, 61, 0.18);
}
.card:hover::before { opacity: 1; }

.card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255, 92, 61, 0.08);
  border: 1px solid rgba(255, 92, 61, 0.25);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.badge-live {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 8px #34d399;
  animation: pulse 2s ease-in-out infinite;
}

.card-title {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.card-sub {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--accent); margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.card-desc {
  color: var(--text-dim); font-size: 0.96rem;
  margin: 0 0 22px;
}
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tag {
  font-family: var(--mono); font-size: 0.72rem;
  padding: 4px 10px; border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.card-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.82rem;
  color: var(--accent);
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  background: rgba(10, 14, 21, 0.5);
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 50px 28px 30px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 30px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.95rem; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.footer-brand img { width: 24px; height: 24px; object-fit: contain; }
.footer-tag {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--text-muted); margin: 0;
  letter-spacing: 0.04em;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-family: var(--mono); font-size: 0.85rem;
  color: var(--text-dim); transition: color .2s ease;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1180px; margin: 0 auto;
  padding: 22px 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.74rem;
  color: var(--text-muted); flex-wrap: wrap; gap: 12px;
}
.mono { font-family: var(--mono); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(:last-child) { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; padding-bottom: 60px; }
  .section { padding: 60px 28px; }
}
@media (max-width: 500px) {
  .nav { padding: 18px 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .section { padding-left: 20px; padding-right: 20px; }
  .terminal-body { font-size: 0.74rem; }
}

/* Card hover spotlight */
.card { --mx: 50%; --my: 0%; }
