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

:root {
  --red-hot:    #ef4444;
  --red-deep:   #b91c1c;
  --red-dark:   #7f1d1d;
  --orange:     #f97316;
  --bg:         #0a0505;
  --bg-card:    #110909;
  --bg-card-2:  #1a0d0d;
  --border:     rgba(239,68,68,.15);
  --border-h:   rgba(239,68,68,.35);
  --text:       #f5f0f0;
  --text-muted: #9b8686;
  --gradient:   linear-gradient(135deg, #ef4444 0%, #f97316 50%, #dc2626 100%);
  --gradient-text: linear-gradient(135deg, #ef4444, #f97316, #fbbf24);
  --glow:       0 0 60px rgba(239,68,68,.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-weight: 300;
  line-height: 1.6;
}

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

/* ───── SCROLLBAR ───── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-hot); border-radius: 99px; }

/* ───── TYPOGRAPHY ───── */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.15; }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
em { font-style: normal; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ───── BUTTONS ───── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: .85rem 2rem; border-radius: 12px;
  background: var(--gradient); color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: .95rem;
  transition: all .3s ease; position: relative; overflow: hidden;
  box-shadow: 0 0 30px rgba(239,68,68,.3);
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(239,68,68,.5); }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.1); opacity: 0; transition: opacity .3s; }
.btn-primary:hover::after { opacity: 1; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: .85rem 2rem; border-radius: 12px;
  background: transparent; color: var(--text);
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--border-h); transition: all .3s ease;
}
.btn-secondary:hover { border-color: var(--red-hot); background: rgba(239,68,68,.08); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: .85rem 2rem; border-radius: 12px;
  background: rgba(255,255,255,.05); color: var(--text-muted);
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: .95rem;
  border: 1px solid rgba(255,255,255,.08); transition: all .3s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--text); }

/* ───── DEV BADGE ───── */
.dev-badge {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 9999;
  display: flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.4);
  color: #f97316; padding: .4rem 1rem; border-radius: 99px;
  font-size: .78rem; font-weight: 500; backdrop-filter: blur(10px);
  white-space: nowrap;
}
.dev-dot {
  width: 7px; height: 7px; background: #f97316; border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

/* ───── NAVBAR ───── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0; transition: all .4s ease;
}
.navbar.scrolled {
  background: rgba(10,5,5,.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: .7rem 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem;
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff; box-shadow: 0 0 20px rgba(239,68,68,.4);
  overflow: hidden;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn-nav) {
  color: var(--text-muted); font-size: .9rem; font-weight: 400;
  transition: color .3s; position: relative;
}
.nav-links a:not(.btn-nav)::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--red-hot); transition: width .3s;
}
.nav-links a:not(.btn-nav):hover { color: var(--text); }
.nav-links a:not(.btn-nav):hover::after { width: 100%; }
.btn-nav {
  padding: .5rem 1.3rem; border-radius: 8px;
  background: rgba(239,68,68,.12); border: 1px solid var(--border-h);
  font-size: .88rem; color: var(--red-hot); transition: all .3s;
}
.btn-nav:hover { background: rgba(239,68,68,.2); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ───── HERO ───── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; text-align: center; padding: 8rem 2rem 4rem;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .5;
}
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #ef4444, transparent); top: -15%; left: -10%; animation: drift1 12s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #b91c1c, transparent); bottom: -10%; right: -5%; animation: drift2 15s ease-in-out infinite; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #f97316, transparent); top: 40%; left: 60%; animation: drift3 10s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,30px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,20px); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-20px,-40px); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(239,68,68,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,68,68,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }

.badge-new {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5; padding: .4rem 1rem; border-radius: 99px;
  font-size: .8rem; font-weight: 500; margin-bottom: 2rem;
  animation: fadeUp .6s ease both;
}

.hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 4.5rem); line-height: 1.05;
  background: var(--gradient-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  min-height: 1.1em;
  animation: fadeUp .6s .15s ease both;
}

.cursor-blink {
  -webkit-text-fill-color: #ef4444;
  animation: blink .9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: clamp(.9rem, 1.8vw, 1.1rem); color: var(--text-muted);
  max-width: 560px; margin: 1.5rem auto 2.5rem;
  animation: fadeUp .6s .3s ease both;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  animation: fadeUp .6s .45s ease both;
}

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  animation: fadeIn 1s 1s ease both;
}
.scroll-arrow {
  width: 24px; height: 24px; border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted); transform: rotate(45deg);
  margin: 0 auto; animation: bounceArrow 1.5s ease-in-out infinite;
}
@keyframes bounceArrow { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(6px); } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ───── CONTAINER ───── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ───── SECTIONS ───── */
.section-label {
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em;
  color: var(--red-hot); margin-bottom: .75rem;
}
.section-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 3.5rem; line-height: 1.2;
}

/* ───── STATS ───── */
.stats-section { padding: 6rem 0; }
.stats-section .section-label,
.stats-section .section-title { text-align: center; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem; justify-items: center;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.8rem 1.5rem; text-align: center;
  transition: all .3s ease; position: relative; overflow: hidden;
  width: 100%;
}
.stat-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient); opacity: 0; transition: opacity .3s;
}
.stat-card:hover { border-color: var(--border-h); transform: translateY(-4px); box-shadow: var(--glow); }
.stat-card:hover::before { opacity: .04; }
.stat-icon { font-size: 1.8rem; margin-bottom: .8rem; display: block; }
.stat-number {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 2.2rem; background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: .85rem; margin-top: .3rem; }

/* ───── FEATURES ───── */
.features-section { padding: 6rem 0; }
.features-section .section-label,
.features-section .section-title { text-align: center; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem; transition: all .3s ease;
  position: relative; overflow: hidden;
}
.feature-card:hover { border-color: var(--border-h); transform: translateY(-5px); }
.feature-card.featured {
  grid-column: span 2; background: var(--bg-card-2);
  border-color: rgba(239,68,68,.25);
}
.feature-card.coming-soon { border-style: dashed; }
.feature-glow {
  position: absolute; inset: -40px; background: radial-gradient(circle at 30% 30%, rgba(239,68,68,.12), transparent 60%);
  pointer-events: none;
}
.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.feature-tag {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--red-hot); background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2);
  padding: .25rem .7rem; border-radius: 99px; display: inline-block; margin-bottom: .7rem;
}
.feature-card h3 { font-family: 'Syne', sans-serif; font-size: 1.25rem; margin-bottom: .6rem; }
.feature-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.65; }
.feature-cta { display: inline-block; margin-top: 1.2rem; color: var(--red-hot); font-size: .9rem; font-weight: 500; transition: gap .3s; }
.feature-cta:hover { text-decoration: underline; }

/* ───── CTA ───── */
.cta-section { padding: 6rem 0; }
.cta-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 28px; padding: 5rem 4rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-orb {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(239,68,68,.2), transparent);
  top: -100px; left: 50%; transform: translateX(-50%);
  border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.cta-card h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-card p { color: var(--text-muted); margin-bottom: 2.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ───── FOOTER ───── */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: .88rem; margin-top: 1rem; max-width: 280px; }
.footer-links h4 { font-family: 'Syne', sans-serif; font-size: .9rem; margin-bottom: 1rem; }
.footer-links a { display: block; color: var(--text-muted); font-size: .88rem; margin-bottom: .6rem; transition: color .3s; }
.footer-links a:hover { color: var(--red-hot); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .82rem;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(10,5,5,.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 6rem 2rem 3rem;
    transform: translateY(-100%); transition: transform .4s ease;
    gap: 1.5rem; z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; z-index: 1001; }
  .feature-card.featured { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .cta-card { padding: 3rem 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-badge { font-size: .7rem; padding: .35rem .8rem; top: .7rem; }
}