@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #070D18;
  --bg-soft: #0C1626;
  --surface: #101C31;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F2F5F9;
  --text-secondary: #9AA8BD;
  --text-muted: #647089;
  --accent: #17E6B5;
  --accent-2: #3B82F6;
  --gradient: linear-gradient(120deg, #17E6B5, #3B82F6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, .logo-text {
  font-family: 'Space Grotesk', sans-serif;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* background blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.blob-1 { width: 480px; height: 480px; background: #17E6B5; top: -160px; left: -120px; animation: float 14s ease-in-out infinite; }
.blob-2 { width: 520px; height: 520px; background: #3B82F6; top: 200px; right: -200px; animation: float 16s ease-in-out infinite reverse; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 40px); }
}

/* nav */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
header.scrolled {
  background: rgba(7, 13, 24, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: 26px; }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }
.logo-text span { color: var(--text-muted); font-weight: 500; font-size: 12px; display: block; letter-spacing: 2px; margin-top: -2px; }

nav { display: flex; align-items: center; gap: 40px; }
nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--text); }
nav.links .btn { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gradient);
  color: #04211A;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(23, 230, 181, 0.25); }
.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); background: rgba(23, 230, 181, 0.06); }

/* hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 190px 0 120px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin-top: 24px;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 36px; }

.stats { display: flex; gap: 40px; margin-top: 56px; }
.stats div p:first-child { font-size: 26px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.stats div p:last-child { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* hero visual */
.hero-visual {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.hero-visual .dots { display: flex; gap: 6px; margin-bottom: 16px; }
.hero-visual .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.hero-visual pre {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.9;
  white-space: pre-wrap;
}
.hero-visual .kw { color: var(--accent); }
.hero-visual .str { color: var(--accent-2); }
.hero-visual .bar {
  margin-top: 20px;
  height: 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  overflow: hidden;
}
.hero-visual .bar span {
  display: block;
  height: 100%;
  width: 78%;
  background: var(--gradient);
  border-radius: 4px;
}

/* mobile nav toggle */
.nav-toggle { display: none; }

/* tech strip */
.tech-strip { padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tech-strip .wrap { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.tech-strip p { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
}
.tech-pill:hover { border-color: var(--border-strong); color: var(--text); }

/* differentiators */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  padding: 24px 4px;
}
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature .icon svg { width: 20px; height: 20px; stroke: var(--accent-2); }
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--text-secondary); }

/* alt section background */
.section-alt { background: linear-gradient(180deg, transparent, rgba(16, 28, 49, 0.4), transparent); }

/* specialties */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.spec-card {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: all 0.3s ease;
}
.spec-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.spec-card .icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(23, 230, 181, 0.1);
  display: flex; align-items: center; justify-content: center;
}
.spec-card .icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.spec-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.spec-card p { font-size: 14px; color: var(--text-secondary); }

/* portfolio */
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s ease;
}
.portfolio-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.portfolio-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.portfolio-head .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  display: flex; align-items: center; justify-content: center;
}
.portfolio-head .icon svg { width: 22px; height: 22px; stroke: var(--accent-2); }
.portfolio-head h3 { font-size: 18px; font-weight: 700; }
.portfolio-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.portfolio-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.portfolio-link svg { width: 14px; height: 14px; stroke: var(--accent); }
.portfolio-link:hover { color: var(--text); }
.portfolio-link:hover svg { stroke: var(--text); }

/* faq */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; font-size: 14px; color: var(--text-secondary); }

/* sections */
section { position: relative; z-index: 1; padding: 100px 0; }
.section-head { max-width: 560px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section-head h2 { font-size: 34px; font-weight: 700; margin-top: 12px; letter-spacing: -0.5px; }
.section-head p { color: var(--text-secondary); margin-top: 14px; font-size: 16px; }

.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(23, 230, 181, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-secondary); }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process::before {
  content: '';
  position: absolute;
  top: 22px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.step { position: relative; text-align: center; }
.step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-muted); padding: 0 8px; }

/* contact form */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.field input, .field textarea {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { align-self: flex-start; }
.form-status { font-size: 13px; margin-top: -10px; min-height: 18px; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #F09595; }

@media (max-width: 640px) {
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* cta */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(23,230,181,0.12), transparent 60%);
}
.cta-banner h2 { font-size: 30px; font-weight: 700; position: relative; }
.cta-banner p { color: var(--text-secondary); margin: 14px 0 32px; position: relative; }
.cta-banner .hero-actions { justify-content: center; position: relative; }

/* footer */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--accent); }
.footer-social svg { width: 15px; height: 15px; stroke: var(--text-secondary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
}

@media (max-width: 860px) {
  .hero { padding-top: 150px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  nav.links { display: none; }
  .stats { flex-wrap: wrap; gap: 24px; }
  .tech-strip .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; stroke: var(--text); }
  header .wrap .btn-primary { display: none; }
  nav.links {
    display: none;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(7, 13, 24, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 24px;
  }
  nav.links.open { display: flex; }
  nav.links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  nav.links .btn { display: inline-flex; margin-top: 14px; width: 100%; justify-content: center; }
}

@media (min-width: 861px) {
  .nav-toggle { display: none; }
}
