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

:root {
  --blue:        #2563EB;
  --blue-deep:   #1D4ED8;
  --blue-bright: #3B82F6;
  --blue-pale:   #EFF4FF;
  --blue-mid:    #DBEAFE;
  --ink:         #0A0E14;
  --ink-soft:    #454C56;
  --gray:        #6B7280;
  --border:      #E5E8EC;
  --white:       #FFFFFF;
  --offwhite:    #FAFBFC;
  --display:     'Space Grotesk', sans-serif;
  --sans:        'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }

.nav-mark {
  width: 30px; height: 30px; background: var(--blue);
  position: relative; transform: rotate(45deg); flex-shrink: 0;
  transition: background 0.2s;
}
.nav-mark::after {
  content: ''; position: absolute; inset: 7px; background: white;
}
.nav-logo:hover .nav-mark { background: var(--blue-deep); }

.nav-text {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  color: var(--ink); letter-spacing: -0.02em;
}
.nav-text span { color: var(--blue); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 0.86rem; font-weight: 500;
  color: var(--ink-soft); transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--ink) !important; color: white !important;
  padding: 0.62rem 1.4rem !important; font-weight: 600 !important;
  font-size: 0.84rem !important; transition: background 0.2s !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.nav-cta:hover { background: var(--blue) !important; color: white !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 1px; }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 1.25rem 5%; z-index: 99; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; font-size: 1rem; font-weight: 500;
  color: var(--ink); padding: 0.9rem 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu a.mobile-cta { border-bottom: none; color: var(--blue); font-weight: 600; }

/* ─── HERO ───────────────────────────────────────────────────────── */
#hero {
  padding: 140px 0 0; position: relative; overflow: hidden; min-height: 100vh;
  display: flex; align-items: center;
}

.hero-shape {
  position: absolute; top: 0; right: 0; width: 42%; height: 100%;
  background: var(--blue);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}
.hero-shape::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 55%);
}
.hero-shape::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(0deg, rgba(29,78,216,0.6) 0%, transparent 100%);
}

.hero-inner {
  max-width: 1320px; margin: 0 auto; padding: 40px 5% 100px;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center;
  width: 100%;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 2rem;
}
.hero-kicker::before {
  content: ''; width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg);
}

h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  line-height: 1; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 1.75rem;
}
h1 .line2 { display: block; color: var(--blue); }

.hero-sub {
  font-size: 1.15rem; color: var(--ink-soft); line-height: 1.75;
  max-width: 540px; margin-bottom: 2.5rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--ink); color: white; padding: 1rem 2rem; font-weight: 600;
  font-size: 0.92rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem;
  transition: background 0.2s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-primary:hover { background: var(--blue); }

.btn-secondary {
  background: transparent; color: var(--ink); padding: 1rem 2rem; font-weight: 600;
  font-size: 0.92rem; text-decoration: none; border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; gap: 0.6rem; transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* Hero stat card */
.hero-card {
  background: white; padding: 2.25rem; position: relative;
  box-shadow: 0 24px 60px rgba(10,14,20,0.18);
}
.hero-card-accent {
  position: absolute; top: -12px; right: -12px; width: 36px; height: 36px;
  background: var(--blue-deep); transform: rotate(45deg);
}

.hero-stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--border);
}
.hero-stat-row:first-of-type { padding-top: 0; }
.hero-stat-row:last-child { border-bottom: none; padding-bottom: 0; }

.hero-stat-num {
  font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--blue);
  line-height: 1;
}
.hero-stat-label { font-size: 0.82rem; color: var(--ink-soft); text-align: right; max-width: 140px; }

/* ─── SECTION COMMON ─────────────────────────────────────────────── */
section { padding: 130px 5%; position: relative; }
.section-inner { max-width: 1320px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg);
}

h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -0.025em; color: var(--ink); line-height: 1.1;
}
h2 .accent { color: var(--blue); }

/* ─── ABOUT ──────────────────────────────────────────────────────── */
#about { background: var(--white); }

.about-grid {
  display: grid; grid-template-columns: 0.9fr 1.3fr;
  gap: 5rem; margin-top: 3.5rem; align-items: start;
}

.about-left h2 { margin-bottom: 2rem; }

.about-visual {
  width: 100%; aspect-ratio: 1; background: var(--ink);
  position: relative; overflow: hidden; max-width: 380px;
}
.about-visual-glow {
  position: absolute; width: 150%; height: 150%; top: -25%; left: -25%;
  background: linear-gradient(135deg, var(--blue) 0%, transparent 45%);
}
.about-visual-num {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  font-family: var(--display); font-weight: 700; font-size: 3.2rem;
  color: white; letter-spacing: -0.03em;
}

.about-right { display: flex; flex-direction: column; }
.about-right p {
  font-size: 1.08rem; color: var(--ink-soft); line-height: 1.85; margin-bottom: 1.4rem;
}
.about-right p strong { color: var(--ink); font-weight: 600; }

.about-tags { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.about-tag {
  font-size: 0.82rem; font-weight: 600; color: var(--blue);
  background: var(--blue-pale); padding: 0.5rem 1.1rem;
  border: 1px solid var(--blue-mid);
}

/* ─── SERVICES ───────────────────────────────────────────────────── */
#services { background: var(--offwhite); }

.services-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 4rem; gap: 2rem; flex-wrap: wrap;
}
.services-intro { max-width: 420px; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }

.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: start;
}

.service-card {
  background: white; padding: 2.25rem 2rem; border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}
.service-card--offset { transform: translateY(28px); }
.service-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(37,99,235,0.14);
  border-color: var(--blue);
}

.service-card-num {
  font-family: var(--display); font-weight: 700; font-size: 0.85rem;
  color: white; background: var(--blue); width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: var(--display); font-size: 1.18rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.85rem; letter-spacing: -0.01em; line-height: 1.25;
}
.service-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.75; }

/* ─── RESULTS ────────────────────────────────────────────────────── */
#results { background: var(--ink); color: white; padding: 130px 0; overflow: hidden; }

.results-glow {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 55%;
  background: linear-gradient(90deg, var(--blue-deep) 0%, transparent 65%);
  opacity: 0.28;
}

.results-inner { max-width: 1320px; margin: 0 auto; padding: 0 5%; position: relative; z-index: 1; }
.results-top { margin-bottom: 4rem; }

#results .eyebrow { color: #7FA8F5; }
#results .eyebrow::before { background: #7FA8F5; }
#results h2 { color: white; margin-bottom: 1rem; }
#results .results-top p { color: rgba(255,255,255,0.55); font-size: 1.02rem; max-width: 520px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.1);
}
.stat-item { background: var(--ink); padding: 2.5rem 2rem; }
.stat-item:hover { background: #0F1822; }

.stat-number {
  font-family: var(--display); font-weight: 700; font-size: 3.6rem;
  color: white; letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.6rem;
}
.stat-number .accent { color: var(--blue-bright); }
.stat-label { font-size: 0.86rem; color: rgba(255,255,255,0.5); }

/* ─── PROCESS ────────────────────────────────────────────────────── */
#process { background: white; }

.process-sub {
  color: var(--ink-soft); font-size: 1.02rem; max-width: 540px;
  margin-bottom: 4.5rem; line-height: 1.7;
}

.process-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative;
}

.process-step { position: relative; padding: 0 2rem 0 0; }
.process-step:not(:last-child)::after {
  content: ''; position: absolute; top: 23px; right: 8px;
  width: calc(100% - 56px); height: 1px; background: var(--border);
}

.process-num {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: white; background: var(--ink); width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.75rem; transition: background 0.3s, transform 0.3s;
}
.process-step:hover .process-num { background: var(--blue); transform: rotate(45deg); }

.process-step h3 {
  font-family: var(--display); font-size: 1.12rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.75rem;
}
.process-step p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }

/* ─── CASE STUDIES ───────────────────────────────────────────────── */
#cases { background: var(--offwhite); }

.cases-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.25rem; margin-top: 3.5rem;
}

.case-card {
  background: white; border: 1px solid var(--border); padding: 2.25rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.case-card:hover { border-color: var(--blue); box-shadow: 0 8px 32px rgba(37,99,235,0.1); }

/* Featured dark card */
.case-card--featured { background: var(--ink); border: none; color: white; }
.case-card--featured:hover { box-shadow: 0 8px 32px rgba(10,14,20,0.4); }
.case-card--featured .case-tag { background: var(--blue); color: white; }
.case-card--featured h3 { color: white; }
.case-card--featured .case-row-label { color: #7FA8F5; }
.case-card--featured .case-row p { color: rgba(255,255,255,0.65); }
.case-card--featured .case-row { border-bottom-color: rgba(255,255,255,0.1); }

.case-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-pale);
  padding: 0.35rem 0.9rem; display: inline-block; margin-bottom: 1.5rem;
}
.case-card h3 {
  font-family: var(--display); font-size: 1.2rem; font-weight: 600;
  color: var(--ink); margin-bottom: 1.5rem; letter-spacing: -0.01em; line-height: 1.3;
}
.case-row { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.case-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.case-row-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--blue); margin-bottom: 0.3rem;
}
.case-row p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; }

/* ─── WHY ────────────────────────────────────────────────────────── */
#why { background: white; }

.why-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 5rem; margin-top: 3.5rem; }
.why-left h2 { margin-bottom: 1.25rem; }
.why-left p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.8; max-width: 420px; margin-top: 0.5rem; }

.why-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); }

.why-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem;
  background: white; padding: 1.75rem 1.5rem; align-items: start;
  transition: background 0.2s;
}
.why-item:hover { background: var(--blue-pale); }

.why-mark {
  width: 28px; height: 28px; background: var(--blue);
  transform: rotate(45deg); flex-shrink: 0; margin-top: 6px;
  transition: background 0.2s;
}
.why-item:hover .why-mark { background: var(--blue-deep); }

.why-item-text strong {
  display: block; font-family: var(--display); font-size: 1.02rem;
  font-weight: 600; color: var(--ink); margin-bottom: 0.4rem;
}
.why-item-text span { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }

/* ─── CONTACT ────────────────────────────────────────────────────── */
#contact { background: var(--ink); color: white; }

.contact-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}

#contact .eyebrow { color: #7FA8F5; }
#contact .eyebrow::before { background: #7FA8F5; }
#contact h2 { color: white; margin-bottom: 1.5rem; }
.contact-left p { color: rgba(255,255,255,0.6); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2.5rem; }

.contact-links { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,0.1); }
.contact-link {
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none; background: var(--ink); color: white;
  font-size: 0.98rem; font-weight: 600; padding: 1.4rem 1.5rem;
  transition: background 0.2s, color 0.2s;
}
.contact-link:hover { background: #0F1822; color: var(--blue-bright); }
.contact-link-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.contact-form-wrap { }
.contact-form { background: white; padding: 2.5rem; }

.form-feedback {
  padding: 1rem 1.25rem; font-size: 0.9rem; font-weight: 500; margin-bottom: 1rem;
}
.form-feedback.success { background: #EFF9F3; color: #166534; border-left: 3px solid #16A34A; }
.form-feedback.error   { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }

.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid var(--border); padding: 0.85rem 1rem;
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink);
  background: white; outline: none; transition: border-color 0.2s; width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  background: var(--ink); color: white; border: none; padding: 1rem 2rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.92rem; cursor: pointer;
  transition: background 0.2s; display: inline-flex; align-items: center;
  justify-content: center; gap: 0.6rem; width: 100%;
}
.btn-submit:hover { background: var(--blue); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
#site-footer { background: #05070A; padding: 3.5rem 5%; }
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.65rem; }
.footer-mark {
  width: 26px; height: 26px; background: var(--blue);
  transform: rotate(45deg); position: relative;
}
.footer-mark::after { content: ''; position: absolute; inset: 6px; background: #05070A; }
.footer-text { font-family: var(--display); font-weight: 600; color: white; font-size: 0.95rem; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.35); }
.footer-bottom { font-size: 0.8rem; color: rgba(255,255,255,0.25); }

/* ─── Scroll Reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-shape { width: 55%; clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 440px; }
  .about-grid, .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--offset { transform: translateY(0); }
  .service-card:hover { transform: translateY(-4px) !important; }
  .cases-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 80px 5%; }
  #hero { padding: 120px 0 0; }
  .hero-inner { padding: 30px 5% 70px; }
  .hero-shape { display: none; }
  h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  .services-grid { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-step::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; }
  .contact-form { padding: 1.75rem; }
  .footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-logo { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
