:root {
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --purple: #a855f7;
  --ink: #0f1226;
  --ink-2: #1c2140;
  --slate: #5b6178;
  --muted: #8a90a8;
  --line: #e7e9f2;
  --bg: #ffffff;
  --bg-soft: #f6f7fc;
  --bg-tint: #f0f1fb;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --shadow-sm: 0 1px 2px rgba(15,18,38,.06);
  --shadow-md: 0 10px 30px rgba(79,70,229,.10);
  --shadow-lg: 0 24px 60px rgba(79,70,229,.18);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: #c7c2ff; margin-bottom: 16px;
}
.eyebrow-dark { color: var(--violet); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  padding: 14px 26px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(124,58,237,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(124,58,237,.45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-ghost-dark { color: var(--indigo); border-color: var(--indigo); background: transparent; }
.btn-ghost-dark:hover { background: var(--bg-tint); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  padding: 18px 0;
}
.site-header.scrolled { background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); padding: 12px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; letter-spacing: -.01em; }
.brand-accent { color: #c4b5fd; }
.site-header.scrolled .brand-name { color: var(--ink); }
.site-header.scrolled .brand-accent { color: var(--violet); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.9); transition: color .2s ease; }
.main-nav a:hover { color: #fff; }
.site-header.scrolled .main-nav a { color: var(--slate); }
.site-header.scrolled .main-nav a:hover { color: var(--indigo); }
.nav-cta { background: var(--grad); color: #fff !important; padding: 10px 20px; border-radius: 8px; box-shadow: 0 6px 16px rgba(124,58,237,.3); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.mobile-nav {
  display: none; flex-direction: column; gap: 4px; background: #fff;
  padding: 14px 24px 20px; box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 10px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .nav-cta { text-align: center; margin-top: 8px; border: 0; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,18,38,.92) 0%, rgba(37,26,84,.82) 45%, rgba(88,28,135,.7) 100%); }
.hero-grid {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 80%);
}
.hero-nodes { position: absolute; right: 0; top: 0; width: 60%; height: 100%; opacity: .8; }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding-top: 90px; padding-bottom: 60px; }
.hero-content h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.25rem); color: rgba(255,255,255,.85); font-weight: 500; margin-bottom: 34px; letter-spacing: .01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 54px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.hero-stats span { font-size: .88rem; color: rgba(255,255,255,.7); }

/* Sections */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 660px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 16px; }
.section-head p { color: var(--slate); font-size: 1.06rem; }

/* Services */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-tint); margin-bottom: 20px; transition: background .3s ease;
}
.service-card:hover .service-icon { background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(168,85,247,.14)); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { color: var(--slate); font-size: .95rem; }
.service-index { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--muted); opacity: .6; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card {
  padding: 32px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-icon { width: 48px; height: 48px; margin-bottom: 18px; }
.why-icon svg { width: 100%; height: 100%; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { color: var(--slate); font-size: .93rem; }

/* Process */
.process { background: var(--ink); color: #fff; }
.process .section-head p, .process .section-head h2 { color: #fff; }
.process-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.process-step { position: relative; padding: 26px 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); transition: background .3s ease, transform .3s ease; }
.process-step:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.process-num {
  width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 16px;
  font-family: var(--font-head); font-weight: 700; color: #fff;
  background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: rgba(255,255,255,.66); font-size: .9rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,18,38,.35), transparent 55%); }
.team-info { padding: 18px 20px 22px; }
.team-info h3 { font-size: 1.06rem; margin-bottom: 3px; }
.team-info span { color: var(--violet); font-size: .86rem; font-weight: 600; font-family: var(--font-head); }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-tag { font-size: .78rem; font-weight: 600; color: var(--violet); font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.work-card h3 { font-size: 1.24rem; margin: 12px 0 10px; }
.work-card p { color: var(--slate); font-size: .95rem; margin-bottom: 20px; }
.work-metric { display: flex; align-items: baseline; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.work-metric strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.work-metric span { color: var(--slate); font-size: .88rem; }

/* Contact */
.contact { background: var(--bg-tint); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 54px; align-items: start; }
.contact-copy .eyebrow { color: var(--violet); }
.contact-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.contact-copy p { color: var(--slate); margin-bottom: 22px; }
.contact-points { list-style: none; margin-bottom: 28px; }
.contact-points li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--ink-2); font-weight: 500; }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  background: var(--grad); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.contact-form label { font-size: .84rem; font-weight: 600; color: var(--ink-2); font-family: var(--font-head); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body); font-size: .95rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.15); background: #fff;
}
.contact-form textarea { resize: vertical; }
.contact-form .btn-block { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; font-size: .9rem; font-weight: 500; color: var(--indigo); min-height: 1.1em; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 70px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-name { color: #fff; }
.footer-brand > p { margin: 16px 0 20px; max-width: 320px; font-size: .95rem; }
.newsletter { display: flex; gap: 8px; max-width: 340px; }
.newsletter input { flex: 1; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; font-family: var(--font-body); }
.newsletter input::placeholder { color: rgba(255,255,255,.45); }
.newsletter input:focus { outline: none; border-color: var(--violet); }
.newsletter button { width: 46px; border: 0; border-radius: 10px; background: var(--grad); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .2s ease; }
.newsletter button:hover { transform: translateX(2px); }
.newsletter-status { font-size: .84rem; color: #c4b5fd; margin-top: 8px; min-height: 1em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.66); font-size: .92rem; padding: 5px 0; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); transition: background .25s ease, color .25s ease, transform .2s ease; }
.socials a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: .86rem; color: rgba(255,255,255,.5); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 70px 0; }
  .hero-stats { gap: 26px; }
}
@media (max-width: 560px) {
  .services-grid, .why-grid, .team-grid, .work-grid, .process-track { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .container { padding: 0 18px; }
  .hero-content { padding-top: 110px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
