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

:root {
  --bg: #080a0e;
  --bg-2: #0e1118;
  --bg-3: #161b26;
  --bg-4: #1e2535;
  --border: #1e2535;
  --border-subtle: #141824;
  --text: #e8ecf1;
  --text-muted: #6b7a96;
  --text-dim: #3d4a5c;
  --accent: #4d9fff;
  --accent-dim: rgba(77, 159, 255, 0.12);
  --accent-glow: rgba(77, 159, 255, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-weight: 600; }

p { color: var(--text-muted); line-height: 1.7; }

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

/* =====================
   LAYOUT
   ===================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: #6aaeff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-sm {
  font-size: 14px;
  padding: 9px 18px;
}

.btn-lg {
  font-size: 16px;
  padding: 15px 32px;
  border-radius: 10px;
}

.btn-full { width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-3);
  color: var(--text);
  box-shadow: none;
  transform: translateY(-1px);
}

/* =====================
   HEADER
   ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(8, 10, 14, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.header .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.accent { color: var(--accent); }

.nav {
  display: flex;
  gap: 32px;
  flex: 1;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}

/* MOBILE NAV */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.mobile-link:hover { color: var(--text); }

.mobile-cta { margin-top: 8px; }

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(77, 159, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(77, 159, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(77, 159, 255, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* =====================
   SERVICES CARDS
   ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  margin-bottom: 20px;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* =====================
   DIFFERENTIALS
   ===================== */
.diffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 60px;
}

.diff {
  display: flex;
  gap: 24px;
}

.diff-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 2px;
}

.diff-body h3 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 10px;
}

.diff-body p { font-size: 14px; }

/* =====================
   PROCESS
   ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}

.step {
  padding: 0 24px;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid rgba(77, 159, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.step-line {
  position: absolute;
  top: 24px;
  left: calc(24px + 48px);
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--border));
}

.step-line.last { display: none; }

.step-body h3 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
}

.step-body p { font-size: 14px; }

/* =====================
   PORTFOLIO
   ===================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-img {
  aspect-ratio: 16 / 9;
  background: var(--bg-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-placeholder {
  color: var(--text-dim);
}

.portfolio-placeholder svg {
  width: 40px;
  height: 40px;
}

.portfolio-info {
  padding: 20px 24px;
}

.portfolio-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.portfolio-info h3 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 6px;
}

.portfolio-info p { font-size: 13px; }

/* =====================
   ABOUT
   ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-title { margin-top: 16px; }

.about-text p {
  margin-bottom: 16px;
  font-size: 15px;
}

.about-creds {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.cred {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.cred svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 380px;
}

.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.about-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
}

/* =====================
   CONTACT
   ===================== */
.section-contact {
  background: var(--bg-2);
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-text .section-title { margin-top: 16px; }

.contact-text p {
  margin-bottom: 32px;
  font-size: 16px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.contact-link:hover { color: var(--accent); }

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--bg-4);
}

.form-group select option { background: var(--bg-3); }

.form-note {
  font-size: 12px;
  text-align: center;
  color: var(--text-dim);
}

/* =====================
   FOOTER
   ===================== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  flex: 1;
}

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

.footer-links a {
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-links svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* =====================
   REVEAL ANIMATIONS
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.cards-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.cards-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.diffs-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.diffs-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.diffs-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.diffs-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.diffs-grid .reveal:nth-child(6) { transition-delay: 0.25s; }

.steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.steps .reveal:nth-child(4) { transition-delay: 0.3s; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step-line { display: none; }

  .step { padding: 0; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav { display: none; }
  .header .container > .btn { display: none; }
  .menu-toggle { display: flex; }

  .hero-title { font-size: clamp(32px, 8vw, 52px); }

  .hero-stats {
    gap: 24px;
  }

  .stat-divider { height: 28px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-copy { flex: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .diffs-grid { grid-template-columns: 1fr; }
}
