/* ===== Tokens ===== */
:root {
  --bg: #0b0f18;
  --surface: #111827;
  --surface-alt: #0f172a;
  --text: #e7ecf3;
  --muted: #9aa4b2;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #7c5cff;
  --primary-600: #6b4ce6;
  --accent: #00ddc9;
  --accent-600: #00b8aa;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --header-h: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--primary);
  text-decoration: none;
}
ul, ol {
  list-style: none;
}

/* ===== Utilities ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1001;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
  z-index: 900;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  font-size: 18px;
  line-height: 1;
}
.back-to-top:hover {
  box-shadow: 0 14px 36px rgba(124, 92, 255, 0.5);
}
.back-to-top.visible {
  display: inline-flex;
  opacity: 1;
}
.back-to-top:active {
  transform: translateY(1px);
}
/* Hide back-to-top on small screens */
@media (max-width: 400px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    right: 10px;
    bottom: 20px;
  }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11, 15, 24, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  letter-spacing: -0.4px;
  font-size: 22px;
}
.brand .accent { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.menu-toggle { display: none; }
.hamburger {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-links a {
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--text);
  outline: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline-offset: 3px;
  outline: 2px solid var(--accent);
}
.btn-large { padding: 16px 26px; font-size: 16px; }
.btn-small { padding: 10px 14px; font-size: 14px; }
.btn-full { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(124, 92, 255, 0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(124, 92, 255, 0.25), transparent),
    radial-gradient(900px 600px at 80% 20%, rgba(0, 221, 201, 0.18), transparent),
    radial-gradient(600px 500px at 60% 100%, rgba(124, 92, 255, 0.12), transparent);
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 6px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.hero-text h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-text p {
  color: #c9d4e3;
  font-size: 18px;
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  height: 360px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.9;
}
.orb-1 {
  width: 220px;
  height: 220px;
  background: var(--primary);
  top: 0;
  left: 20px;
}
.orb-2 {
  width: 180px;
  height: 180px;
  background: var(--accent);
  bottom: 10px;
  right: 0;
  opacity: 0.7;
}
.orb-3 {
  width: 110px;
  height: 110px;
  background: #ff6b6b;
  bottom: 60px;
  left: 100px;
  opacity: 0.55;
}
.code-stack {
  position: absolute;
  top: 20px;
  left: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(6px);
}
.skeleton-line {
  height: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18));
  border-radius: 4px;
}
.skeleton-line.short { width: 40%; }

/* ===== Section Title ===== */
.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-subtitle {
  color: var(--muted);
  margin-bottom: 36px;
  font-size: 17px;
}
.section-subtitle.helper {
  display: block;
  text-align: center;
  margin-top: -16px;
  font-size: 15px;
  opacity: .95;
}

/* ===== Section Dividers ===== */
.pain-points {
  padding: 80px 0 100px;
  position: relative;
  border-top: 1px solid var(--border);
}
.services {
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 500px at 50% 40%, rgba(0, 221, 201, 0.12), transparent),
    linear-gradient(180deg, transparent 0%, var(--surface-alt) 30%, transparent 100%);
  position: relative;
  border-top: 1px solid var(--border);
}
.process {
  padding: 80px 0 100px;
  position: relative;
  border-top: 1px solid var(--border);
}
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ===== Pain / Solution ===== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}
.pain-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}
.pain-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.pain-card h3 { margin-bottom: 8px; }
.pain-card p { color: var(--muted); font-size: 15px; }

.solution {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.12), rgba(0, 221, 201, 0.08));
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: var(--radius);
  padding: 28px;
}
.solution-inner h3 { margin-bottom: 10px; font-size: 20px; }
.solution-inner p { color: var(--muted); margin-bottom: 14px; }
.checklist {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  color: #d6e2f0;
  font-weight: 500;
}
@media (max-width: 720px) {
  .checklist { grid-template-columns: 1fr; }
}

/* ===== Services / Packages ===== */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.package {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.package:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}
.package.featured {
  border-color: rgba(124, 92, 255, 0.85);
  box-shadow: 0 20px 60px rgba(124, 92, 255, 0.35), 0 0 0 1px rgba(124, 92, 255, 0.6), 0 0 30px rgba(124, 92, 255, 0.35);
}
.badge {
  display: inline-block;
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}
.package-header { margin-bottom: 8px; }
.package-header h3 { font-size: 22px; }
.price {
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
}
.price::after {
  content: "one-time";
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.package > p { color: var(--muted); margin: 10px 0 18px; font-size: 15px; }
.feature-list {
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: #cfd6e2;
  margin-bottom: 20px;
}
.feature-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 800;
}
.package .btn-full { margin-top: auto; }

/* ===== Process ===== */
.process-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.35);
}
.process-item {
  transform: translateY(14px);
}
.process-item h3 { margin-bottom: 6px; font-size: 18px; }
.process-item p { color: var(--muted); font-size: 15px; }

/* ===== Portfolio ===== */
.portfolio {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, var(--surface-alt) 28%, transparent 100%);
  position: relative;
  border-top: 1px solid var(--border);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.project {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.project:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}
.project-thumb {
  height: 180px;
}
.project-placeholder {
  height: 100%;
  background:
    radial-gradient(700px 400px at 10% 10%, rgba(124, 92, 255, 0.35), transparent),
    linear-gradient(180deg, #0b0f18, #111827);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
}
.project-placeholder.dark {
  background:
    radial-gradient(700px 400px at 90% 80%, rgba(0, 221, 201, 0.25), transparent),
    linear-gradient(180deg, #0b0f18, #111827);
}
.project-placeholder.pastel {
  background:
    radial-gradient(700px 400px at 40% 70%, rgba(255, 167, 145, 0.3), transparent),
    linear-gradient(180deg, #0b0f18, #111827);
}
.project-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.project-name {
  font-size: 18px;
  font-weight: 800;
}
.project-body {
  padding: 16px;
}
.project-body h3 { margin-bottom: 6px; }
.project-body p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.link-arrow {
  font-weight: 700;
  color: var(--accent);
}
.link-arrow::after {
  content: " →";
  transition: transform 0.2s ease;
  display: inline-block;
}
.link-arrow:hover::after { transform: translateX(3px); }

/* ===== Testimonials ===== */
.testimonials {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.testimonial p {
  font-size: 16px;
  margin-bottom: 14px;
  color: #dbe3ee;
  line-height: 1.6;
}
.testimonial footer {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.testimonial cite { font-style: normal; color: var(--text); font-weight: 600; }
.stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }

/* ===== FAQ ===== */
.faq {
  padding: 70px 0 100px;
  background: linear-gradient(180deg, transparent 0%, var(--surface-alt) 28%, transparent 100%);
  border-top: 1px solid var(--border);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(255, 255, 255, 0.18); }
.faq-question {
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  text-align: left;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 2px 4px;
}
.faq-question::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"]::after {
  content: "−";
  transform: rotate(0deg);
}
.faq-answer {
  color: var(--muted);
  margin-top: 14px;
  padding-right: 40px;
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  padding: 120px 0 140px;
  position: relative;
  border-top: 1px solid var(--border);
}
.contact::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(800px 500px at 30% 40%, rgba(0, 221, 201, 0.15), transparent),
    radial-gradient(800px 500px at 80% 60%, rgba(124, 92, 255, 0.15), transparent);
  z-index: 0;
  pointer-events: none;
}
.contact-form {
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.05), transparent 60%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(6px);
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);
}
.field textarea { resize: vertical; }
.form-actions { margin-top: 20px; }
.form-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}
.form-note a { color: var(--accent); }

/* ===== Footer ===== */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.footer-brand p { margin-top: 8px; }
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11, 15, 24, 0.96);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 14px;
    display: none;
    backdrop-filter: blur(12px);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; background: transparent; border: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .pain-grid,
  .packages,
  .process-list,
  .portfolio-grid,
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 80px; }
}

/* ===== Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }
  html { scroll-behavior: auto; }
}
