:root {
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --dark: #0f172a;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
a { color: inherit; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.3rem; text-decoration: none; }
.logo span { color: var(--primary); }
.menu { display: flex; align-items: center; gap: 24px; }
.menu a { text-decoration: none; font-weight: 500; color: var(--muted); }
.menu a:hover { color: var(--text); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 6px 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--primary); color: #fff !important; font-weight: 600;
  text-decoration: none; border: 2px solid var(--primary); cursor: pointer;
  font: inherit; font-weight: 600; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--primary); }
.btn-small { padding: 8px 18px; }

/* Hero */
.hero { background: linear-gradient(135deg, #0f172a, #312e81); color: #fff; padding: 96px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .85rem; margin: 0 0 20px; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin: 0 0 20px; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: #cbd5e1; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }
.stats { display: flex; gap: 32px; list-style: none; padding: 0; margin: 32px 0 0; }
.stats strong { display: block; font-size: 1.6rem; }
.stats span { color: #94a3b8; font-size: .9rem; }

.hero-visual { position: relative; min-height: 320px; }
.window { background: #0b1120; border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.4); overflow: hidden; }
.window-bar { display: flex; gap: 6px; padding: 12px; background: #1e293b; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.window pre { margin: 0; padding: 20px; font-size: .85rem; color: #e2e8f0; overflow-x: auto; }
.window b { color: #c4b5fd; font-weight: 500; }
.window s { color: #86efac; text-decoration: none; }
.phone {
  position: absolute; right: -8px; bottom: -40px; width: 130px; height: 250px;
  background: #fff; border: 6px solid #1e293b; border-radius: 26px; padding: 22px 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.phone .notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 40px; height: 6px; border-radius: 6px; background: #1e293b; }
.screen span { display: block; height: 44px; border-radius: 10px; margin-bottom: 10px; background: linear-gradient(90deg, #c7d2fe, #a5f3fc); }
.screen span:nth-child(2) { background: #e2e8f0; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 8px; text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 0 0 48px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card, .project {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s; position: relative;
}
.card:hover, .project:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15,23,42,.08); }
.card h3, .project h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p, .project p { margin: 0; color: var(--muted); }
.icon { font-size: 2rem; margin-bottom: 12px; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0; }
.tags li { background: #fff; border: 1px solid var(--border); padding: 8px 18px; border-radius: 999px; font-weight: 500; }

.project { padding: 0 0 24px; overflow: hidden; }
.project h3, .project p, .project .meta { padding-inline: 24px; }
.thumb { height: 160px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.4rem; margin-bottom: 20px; }
.t1 { background: linear-gradient(135deg, #f97316, #ef4444); }
.t2 { background: linear-gradient(135deg, #6366f1, #06b6d4); }
.t3 { background: linear-gradient(135deg, #10b981, #84cc16); }
.meta { display: inline-block; margin-top: 12px; font-size: .8rem; font-weight: 600; color: var(--primary); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.pricing .card { display: flex; flex-direction: column; }
.price { margin: 8px 0 16px !important; }
.price strong { font-size: 1.8rem; color: var(--text); }
.pricing ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.pricing li { padding: 6px 0 6px 24px; position: relative; color: var(--muted); }
.pricing li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.featured { border: 2px solid var(--primary); }
.ribbon { position: absolute; top: -12px; right: 20px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

.quote { margin: 0; font-style: italic; }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-weight: 600; font-size: .9rem; color: var(--muted); }

details { border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Contact */
.contact { background: var(--dark); color: #fff; }
.contact .sub { color: #94a3b8; }
.alt-contact { text-align: center; color: #94a3b8; margin-top: 24px; }

.footer { background: #020617; color: #94a3b8; padding: 24px 0; font-size: .9rem; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .burger { display: block; }
  .menu {
    position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 16px; gap: 12px;
    border-bottom: 1px solid var(--border); display: none;
  }
  .menu.open { display: flex; }
}
