/* ===== Reset & Tokens ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #0f0a1e;
  --bg-2: #160f2b;
  --surface: #1c1438;
  --fg: #f5f1ff;
  --muted: #a89fc4;
  --border: rgba(255,255,255,0.08);

  --c1: #ff6b35;
  --c2: #f7931e;
  --c3: #e84393;
  --c4: #6c5ce7;

  --grad: linear-gradient(135deg, #ff6b35 0%, #e84393 50%, #6c5ce7 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,107,53,.18), rgba(108,92,231,.18));

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 20px 60px -20px rgba(232,67,147,.35);
  --maxw: 1180px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Space Grotesk', system-ui, sans-serif; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-size: 15px;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 25px 70px -20px rgba(232,67,147,.55); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15,10,30,0.75);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.logo-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--grad); box-shadow: 0 0 20px rgba(232,67,147,.6); }
.logo-accent { color: var(--c3); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links .btn { color: #fff; }

.hamburger { display: none; background: none; border: 0; width: 40px; height: 40px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--fg); transition: transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -10% -10% 0 -10%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(255,107,53,.35), transparent 60%),
    radial-gradient(40% 50% at 80% 20%, rgba(232,67,147,.30), transparent 60%),
    radial-gradient(50% 60% at 60% 80%, rgba(108,92,231,.30), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.badge-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.badge { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); font-size: 13px; color: var(--muted); }
.display { font-size: clamp(40px, 6.5vw, 76px); margin-bottom: 24px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-family: 'Space Grotesk', sans-serif; font-size: 32px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c3); margin-bottom: 14px; font-weight: 600; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ===== Grids ===== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Cards ===== */
.card {
  padding: 32px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(232,67,147,.4); box-shadow: 0 20px 50px -25px rgba(108,92,231,.5); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== Platform ===== */
.platform {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255,255,255,0.02);
  text-align: center; transition: transform .3s, background .3s;
}
.platform:hover { transform: translateY(-3px); background: rgba(255,255,255,0.05); }
.platform h3 { font-size: 22px; margin-bottom: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.platform p { font-family: 'Space Grotesk', sans-serif; font-weight: 500; }
.platform small { color: var(--muted); }

/* ===== Portfolio ===== */
.filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.filter { padding: 8px 18px; border-radius: 999px; background: transparent; color: var(--muted); border: 1px solid var(--border); cursor: pointer; font-size: 14px; font-weight: 500; transition: all .2s; font-family: inherit; }
.filter:hover { color: var(--fg); }
.filter.active { background: var(--grad); color: #fff; border-color: transparent; }
.work { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .3s, opacity .3s; }
.work:hover { transform: translateY(-4px); }
.work-img { aspect-ratio: 4/5; }
.work figcaption { padding: 14px 18px; font-size: 14px; color: var(--muted); }
.work[hidden] { display: none; }

.g1 { background: linear-gradient(135deg, #ff6b35, #e84393); }
.g2 { background: linear-gradient(135deg, #6c5ce7, #00d2ff); }
.g3 { background: linear-gradient(135deg, #f7931e, #ff6b35); }
.g4 { background: linear-gradient(135deg, #e84393, #6c5ce7); }
.g5 { background: linear-gradient(135deg, #ff6b35, #6c5ce7); }
.g6 { background: linear-gradient(135deg, #f7931e, #e84393); }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.steps li span { font-family: 'Space Grotesk', sans-serif; font-size: 14px; color: var(--c3); font-weight: 700; letter-spacing: 0.1em; }
.steps li h3 { font-size: 20px; margin: 8px 0 10px; }
.steps li p { color: var(--muted); font-size: 15px; }

/* ===== Form ===== */
.form { display: grid; gap: 18px; padding: 36px; background: var(--surface); border-radius: 20px; border: 1px solid var(--border); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.form input, .form textarea, .form select {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg); border: 1px solid var(--border);
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--c3); }
.form textarea { resize: vertical; min-height: 100px; }
.platforms { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.platforms legend { padding: 0 6px; font-size: 14px; color: var(--muted); }
.chk { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; color: var(--fg) !important; font-size: 13px; }
.chk input { accent-color: var(--c3); }
.form button { justify-self: start; }
.form-status { font-size: 14px; min-height: 20px; }
.form-status.success { color: #4ade80; }
.form-status.error { color: #ff7085; }

/* ===== Footer ===== */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--fg); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(15,10,30,0.97); backdrop-filter: blur(14px);
    flex-direction: column; gap: 0; padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%); transition: transform .3s ease;
  }
  .nav-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links.open { transform: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .form .row { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 70px; }
  .section { padding: 80px 0; }
  .hero-stats { gap: 28px; }
}
