/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #05070f;
  --bg-alt: #0a1120;
  --bg-elevated: #0d1526;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #22d3ee;
  --text: #f5f7fb;
  --text-muted: #a6b0c3;
  --text-dim: #6b7690;
  --border: rgba(148, 172, 214, 0.14);
  --border-glow: rgba(59, 130, 246, 0.4);
  --card-bg: rgba(16, 24, 43, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(59,130,246,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(34,211,238,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

.btn-outline {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border-color: rgba(255,255,255,0.22);
}
.btn-outline:hover {
  border-color: var(--blue-light);
  background: rgba(59, 130, 246, 0.08);
}

.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo em {
  font-style: normal;
  color: var(--blue-light);
}

.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.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: 130px 0 90px;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  width: 640px;
  height: 640px;
  top: -220px;
  right: -160px;
  background: radial-gradient(circle, rgba(59,130,246,0.45) 0%, rgba(59,130,246,0.12) 45%, transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero-orb-cyan {
  width: 420px;
  height: 420px;
  top: 220px;
  right: 380px;
  left: auto;
  background: radial-gradient(circle, rgba(34,211,238,0.28) 0%, rgba(34,211,238,0.08) 45%, transparent 70%);
}

.hero-inner {
  max-width: 780px;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 26px;
}
.hero-title .text-blue {
  color: var(--blue-light);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 38px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.trust-row span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.trust-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.trust-row li {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Stats ---------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(59,130,246,0.05), transparent);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat { text-align: left; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, #fff, var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-suffix { font-size: 0.55em; }
.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 220px;
}

/* ---------- Section head ---------- */
.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 16px;
}
.section-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
}

section { padding: 100px 0; position: relative; z-index: 1; }

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.18);
}

.work-thumb {
  height: 170px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}
.work-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,15,0) 40%, rgba(5,7,15,0.75) 100%);
  z-index: 1;
}
.work-thumb-tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: rgba(5,7,15,0.55);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}
.work-thumb-1 { background: linear-gradient(135deg, #1e3a8a, #3b82f6 60%, #60a5fa); }
.work-thumb-2 { background: linear-gradient(135deg, #0f2f2b, #0e7490 60%, #22d3ee); }
.work-thumb-3 { background: linear-gradient(135deg, #1e1b4b, #4338ca 60%, #818cf8); }
.work-thumb-4 { background: linear-gradient(135deg, #3b2410, #b45309 60%, #f59e0b); }
.work-thumb-5 { background: linear-gradient(135deg, #111827, #334155 60%, #64748b); }
.work-thumb-6 { background: linear-gradient(135deg, #1e0f3a, #6d28d9 60%, #a78bfa); }

.work-card-body { padding: 26px; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 10px;
}
.work-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.work-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.work-results {
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.work-results li { font-size: 0.85rem; color: var(--text-dim); }
.work-results strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.15rem; }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- Process ---------- */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.process-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}
.process-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue-light);
  min-width: 90px;
}
.process-step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); max-width: 620px; }

/* ---------- About / Team ---------- */
.about { background: var(--bg-alt); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-avatar-1 { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.team-avatar-2 { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.team-avatar-3 { background: linear-gradient(135deg, #4338ca, #818cf8); }
.team-avatar-4 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.team-avatar-5 { background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.team-avatar-6 { background: linear-gradient(135deg, #334155, #64748b); }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-role { color: var(--blue-light); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.team-bio { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.testimonial-name { font-weight: 600; }
.testimonial-role { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Pricing ---------- */
.pricing { background: var(--bg-alt); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.3), 0 20px 60px rgba(59,130,246,0.2);
  transform: scale(1.02);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 30px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #05070f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pricing-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 14px; }
.pricing-price span { font-size: 1rem; color: var(--text-dim); font-weight: 500; }
.pricing-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 22px; }
.pricing-features { margin-bottom: 28px; flex-grow: 1; }
.pricing-features li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-light);
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
}
.contact-orb {
  position: absolute;
  width: 700px;
  height: 700px;
  bottom: -300px;
  left: -260px;
  background: radial-gradient(circle, rgba(34,211,238,0.24) 0%, rgba(59,130,246,0.12) 45%, transparent 70%);
  filter: blur(50px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.contact-details { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.contact-details li { display: flex; gap: 16px; align-items: flex-start; }
.contact-details svg { width: 22px; height: 22px; color: var(--blue-light); flex-shrink: 0; margin-top: 2px; }
.contact-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 4px; }
.contact-details a, .contact-details span { color: var(--text); font-size: 0.98rem; }
.contact-details a:hover { color: var(--blue-light); }

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(12px);
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  background: rgba(5,7,15,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23a6b0c3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.form-error {
  display: none;
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 6px;
}
.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea {
  border-color: #f87171;
}
.form-row.invalid .form-error { display: block; }

.form-success {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #67e8f9;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  background: var(--bg-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 50px;
}
.footer-brand p { color: var(--text-muted); margin: 16px 0 22px; max-width: 280px; font-size: 0.92rem; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-icons a:hover { color: var(--blue-light); border-color: var(--border-glow); }
.social-icons svg { width: 16px; height: 16px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-nav h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 18px; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .work-grid, .services-grid, .team-grid, .testimonials-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .pricing-card-featured { transform: none; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: rgba(5,7,15,0.98); backdrop-filter: blur(16px); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; padding: 32px 24px; gap: 4px; }
  .main-nav a { display: block; padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
  .header-actions .btn-small { display: none; }
  .hero { padding: 100px 0 60px; }
  .hero-orb { width: 420px; height: 420px; top: -160px; right: -160px; }
  .hero-orb-cyan { display: none; }
}

@media (max-width: 640px) {
  section { padding: 70px 0; }
  .work-grid, .services-grid, .team-grid, .testimonials-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .process-step { flex-direction: column; gap: 12px; }
  .process-number { min-width: auto; }
  .contact-form { padding: 24px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
