:root {
  --bg: #080a12;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #f8fbff;
  --muted: #aeb8c8;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #8b5cf6;
  --brand-2: #22d3ee;
  --brand-3: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 36%), var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-glow {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}
.page-glow--one { right: -12rem; top: 12rem; background: var(--brand-2); }
.page-glow--two { left: -14rem; bottom: 2rem; background: var(--brand-3); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(8, 10, 18, 0.76);
  border-bottom-color: var(--line);
}
.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand, .nav__menu, .hero__actions, .hero__stats, .logos, .section-heading--split, .footer { display: flex; align-items: center; }
.brand { gap: 12px; font-weight: 900; letter-spacing: -0.04em; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.25);
}
.brand__text span { color: var(--brand-2); }
.nav__menu { gap: 26px; color: var(--muted); font-size: 0.95rem; }
.nav__menu a:hover { color: var(--text); }
.nav__cta, .button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-weight: 800;
}
.nav__cta { background: var(--panel); }
.nav__toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav__toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

.section { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 92px 0; }
.hero { display: grid; grid-template-columns: 1.03fr 0.97fr; gap: 48px; align-items: center; min-height: calc(100vh - 78px); }
.eyebrow { color: var(--brand-2); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 900; font-size: 0.78rem; margin: 0 0 18px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.9rem); line-height: 0.86; letter-spacing: -0.08em; margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 4vw, 4.2rem); line-height: 0.95; letter-spacing: -0.06em; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.7; }
.hero__lead { font-size: 1.15rem; max-width: 680px; }
.hero__actions { gap: 14px; flex-wrap: wrap; margin: 34px 0; }
.button { display: inline-flex; justify-content: center; align-items: center; cursor: pointer; }
.button--primary { border: 0; color: #071018; background: linear-gradient(135deg, #fff, var(--brand-2)); box-shadow: 0 18px 42px rgba(34, 211, 238, 0.2); }
.button--ghost { background: rgba(255, 255, 255, 0.04); }
.hero__stats { gap: 10px; flex-wrap: wrap; }
.hero__stats div { min-width: 145px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.hero__stats strong { display: block; font-size: 1.35rem; }
.hero__stats span { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

.browser-card { border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)); box-shadow: var(--shadow); overflow: hidden; transform: rotate(2deg); }
.browser-card__bar { height: 54px; display: flex; gap: 8px; align-items: center; padding: 0 22px; border-bottom: 1px solid var(--line); }
.browser-card__bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-3); }
.browser-card__bar span:nth-child(2) { background: #facc15; }
.browser-card__bar span:nth-child(3) { background: #34d399; }
.browser-card__body { position: relative; padding: 28px; min-height: 500px; }
.mock-hero { height: 210px; border-radius: 24px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(34, 211, 238, 0.75)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='white' stroke-opacity='.2'/%3E%3C/svg%3E"); }
.mock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.mock-grid span { height: 94px; border-radius: 20px; background: var(--panel-strong); border: 1px solid var(--line); }
.mock-panel { position: absolute; right: 14px; bottom: 58px; width: 190px; padding: 20px; border-radius: 24px; background: rgba(8, 10, 18, 0.82); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mock-panel b { color: var(--muted); font-size: 0.8rem; }
.mock-panel strong { display: block; font-size: 2.4rem; letter-spacing: -0.06em; color: var(--brand-2); }

.logos { justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--muted); border-block: 1px solid var(--line); padding-block: 28px; }
.logos span { font-weight: 900; letter-spacing: -0.03em; }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading--split { max-width: none; justify-content: space-between; gap: 30px; }
.section-heading--split p:last-child { max-width: 390px; }
.card-grid, .portfolio-grid, .timeline { display: grid; gap: 18px; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.service-card, .portfolio-card, .timeline__item, .contact__panel { border: 1px solid var(--line); border-radius: 30px; background: var(--panel); box-shadow: var(--shadow); }
.service-card { padding: 30px; min-height: 260px; }
.service-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; margin-bottom: 38px; color: #071018; background: var(--brand-2); font-weight: 900; }
.portfolio-grid { grid-template-columns: 1.2fr 0.8fr; }
.portfolio-card { padding: 16px; }
.portfolio-card--large { grid-row: span 2; }
.portfolio-card__image { min-height: 250px; border-radius: 22px; margin-bottom: 18px; }
.portfolio-card--large .portfolio-card__image { min-height: 560px; }
.portfolio-card span { color: var(--brand-2); font-weight: 800; font-size: 0.82rem; }
.gradient-one { background: radial-gradient(circle at 30% 20%, #fff, transparent 18%), linear-gradient(135deg, #8b5cf6, #0f172a 55%, #22d3ee); }
.gradient-two { background: linear-gradient(135deg, #f97316, #8b5cf6); }
.gradient-three { background: linear-gradient(135deg, #22d3ee, #111827 60%, #34d399); }
.timeline { grid-template-columns: repeat(4, 1fr); }
.timeline__item { padding: 24px; }
.timeline__item span { color: var(--brand-2); font-weight: 900; }
.contact__panel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; padding: clamp(24px, 5vw, 54px); background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.08)); }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 18px; padding: 15px 16px; color: var(--text); background: rgba(255, 255, 255, 0.08); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand-2); }
.form-note { min-height: 1.5em; margin: 0; }
.footer { justify-content: space-between; gap: 20px; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 42px; border-top: 1px solid var(--line); }
.footer p { margin: 0; }
.footer a { color: var(--brand-2); font-weight: 800; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: 0.16s; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; left: 16px; right: 16px; top: 74px; display: none; flex-direction: column; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: rgba(8, 10, 18, 0.96); }
  .nav__menu.is-open { display: flex; }
  .nav__cta { display: none; }
  .hero, .card-grid, .portfolio-grid, .timeline, .contact__panel { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .browser-card { transform: none; }
  .portfolio-card--large .portfolio-card__image, .portfolio-card__image { min-height: 280px; }
  .section-heading--split { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .hero__stats div { width: 100%; }
  .mock-panel { position: static; width: auto; margin-top: 16px; }
  .browser-card__body { min-height: auto; }
  .logos { justify-content: flex-start; }
  .footer { flex-direction: column; align-items: flex-start; }
}
