/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f0;
  --muted: rgba(255, 255, 255, 0.45);
  --accent: #FF6B2B;
  --radius: 16px;
  --radius-pill: 999px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─── Nav ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 20px;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 48px);
  max-width: 800px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  background: rgba(13, 13, 13, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: baseline;
  color: #f0f0f0;
}

.nav-logo .sep,
.nav-logo .o {
  display: inline-block;
  background: var(--accent);
  border-radius: 50%;
}

.nav-logo .sep { width: 4px; height: 4px; margin: 0 1px 2px; }
.nav-logo .o   { width: 9px; height: 9px; vertical-align: -3px; margin-left: 1px; }

.nav-links { display: flex; gap: 28px; }

.nav-links a { font-size: 14px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.nav-links a:hover { color: #f0f0f0; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-glass:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.btn-small { padding: 8px 18px; font-size: 13px; }

/* ─── Sections shared ───────────────────────────────────── */
section {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated orange gradient orbs — full page */
.gradient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.orb-1 {
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(255,107,43,0.55) 0%, rgba(255,61,0,0.3) 40%, transparent 70%);
  top: -30%;
  left: -25%;
  animation: drift1 12s ease-in-out infinite;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255,140,66,0.45) 0%, rgba(255,107,43,0.25) 40%, transparent 70%);
  bottom: -20%;
  right: -20%;
  animation: drift2 16s ease-in-out infinite;
}

.orb-3 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(255,69,0,0.4) 0%, rgba(255,107,43,0.2) 40%, transparent 70%);
  top: 55%;
  left: 30%;
  animation: drift3 10s ease-in-out infinite;
}

@keyframes drift1 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(18vw, 22vh); }
  50%  { transform: translate(28vw, 6vh); }
  75%  { transform: translate(12vw, 28vh); }
  100% { transform: translate(0, 0); }
}

@keyframes drift2 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-22vw, -18vh); }
  50%  { transform: translate(-12vw, -28vh); }
  75%  { transform: translate(-28vw, -12vh); }
  100% { transform: translate(0, 0); }
}

@keyframes drift3 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-18vw, 18vh); }
  50%  { transform: translate(12vw, -22vh); }
  75%  { transform: translate(-8vw, 28vh); }
  100% { transform: translate(0, 0); }
}

.hero-inner { max-width: 640px; position: relative; }

.hero-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.5;
}

/* ─── Manifesto ─────────────────────────────────────────── */
.manifesto {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
}

.manifesto blockquote {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.3;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 20px;
}

.manifesto blockquote em {
  font-style: normal;
  color: var(--accent);
}

.manifesto-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
}

/* ─── Apps ──────────────────────────────────────────────── */
.apps-grid { display: flex; flex-direction: column; gap: 16px; }

.app-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.2s;
}

.app-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

.app-card-number {
  position: absolute;
  top: 14px;
  right: 24px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -4px;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  line-height: 1;
}

.app-card-body {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.app-card-tags { display: flex; gap: 6px; }

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card-text { flex: 1; }

.app-card-text h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.app-tagline {
  font-size: 12px;
  color: var(--muted);
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars { color: #f5a623; font-size: 11px; letter-spacing: 1px; }
.rating-label { font-size: 11px; color: var(--muted); }

.tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
}

.app-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ─── Ideas ─────────────────────────────────────────────── */
.building { border-top: 1px solid var(--border); }

.building-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.building-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.building-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 480px;
}

/* ─── Stack ─────────────────────────────────────────────── */
.stack { border-top: 1px solid var(--border); }

.stack-grid { display: flex; flex-wrap: wrap; gap: 12px; }

.stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s;
}

.stack-item:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
}

.stack-icon { font-size: 16px; }
.stack-name { color: var(--muted); }

/* ─── About ─────────────────────────────────────────────── */
.about { border-top: 1px solid var(--border); }
.about-inner { max-width: 560px; }

.about h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.about p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about .btn-glass { margin-top: 8px; }

/* ─── Footer ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 14px !important;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  color: rgba(255,255,255,0.5);
}

.footer-links { display: flex; gap: 8px; }

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-links a:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ─── Animations ────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }
.fade-up.delay-6 { transition-delay: 0.6s; }
.fade-up.delay-7 { transition-delay: 0.7s; }
.fade-up.delay-8 { transition-delay: 0.8s; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { top: 12px; width: calc(100% - 24px); padding: 12px 20px; }
  .hero h1 { letter-spacing: -1px; }
  .app-card-body { padding: 20px; flex-wrap: wrap; }
  .app-card-number { font-size: 40px; }
  .app-icon { width: 48px; height: 48px; }
  .building-card { padding: 28px 20px; }
}
