/* ============================================================
   Cloudflow — Main Stylesheet
   ============================================================ */

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

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

:root {
  --bg:        #0A0A0F;
  --surface:   #111118;
  --card:      #1A1A24;
  --accent:    #6366F1;
  --cyan:      #00D4FF;
  --text:      #F1F5F9;
  --muted:     #64748B;
  --border:    #1E1E2E;
  --radius:    12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

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

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

/* ---------- Utility ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 96px 0;
}

.section-pad-sm {
  padding: 64px 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-cyan   { color: var(--cyan); }
.text-muted  { color: var(--muted); }

.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}

.btn-outline-cyan:hover {
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active {
  color: var(--cyan);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  display: block;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px;
  gap: 20px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active { color: var(--cyan); }

.mobile-menu .btn {
  width: fit-content;
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 28px;
  background: rgba(99,102,241,0.06);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

/* ---------- Section Headers ---------- */
.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.65;
}

/* ---------- Cards ---------- */
.card {
  background: rgba(26, 26, 36, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.card-link:hover { gap: 10px; }

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

/* ---------- Why Section ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.why-item {
  padding: 28px;
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.why-item.glass-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 212, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.why-item-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.why-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Case Study Teaser ---------- */
.case-teaser {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  transition: border-color var(--transition);
}

.case-teaser:hover {
  border-color: rgba(99,102,241,0.4);
}

.case-teaser-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  background: rgba(99,102,241,0.12);
  color: var(--accent);
  border: 1px solid rgba(99,102,241,0.25);
}

.tag-cyan {
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
  border-color: rgba(0,212,255,0.25);
}

.case-teaser h3 { font-size: 22px; margin-bottom: 10px; }
.case-teaser p { color: var(--muted); font-size: 15px; max-width: 540px; }

.case-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.metric {
  text-align: center;
}

.metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 600;
  color: var(--cyan);
  display: block;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
}

.cta-inner .cta-sub {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.cta-inner .cta-sub a {
  color: var(--cyan);
  text-decoration: underline;
  transition: opacity var(--transition);
}

.cta-inner .cta-sub a:hover { opacity: 0.8; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

.footer-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Services Page ---------- */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 16px; }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 580px; }

.services-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.service-card .card-icon { margin-bottom: 24px; }
.service-card h3 { font-size: 22px; margin-bottom: 10px; }
.service-card .pitch {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.service-breakdown {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.breakdown-item h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 8px;
}

.breakdown-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breakdown-item ul li {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.breakdown-item ul li::before {
  content: '→';
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
}

.pricing-callout {
  margin-top: 80px;
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(0,212,255,0.04) 100%);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}

.pricing-callout h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 16px; }
.pricing-callout p { font-size: 17px; color: var(--muted); max-width: 500px; margin: 0 auto 32px; line-height: 1.65; }

/* ---------- Case Studies Page ---------- */
.case-study-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.case-study-card:hover {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.case-study-header {
  padding: 40px 40px 32px;
  border-bottom: 1px solid var(--border);
}

.case-study-header .case-teaser-tags { margin-bottom: 16px; }
.case-study-header h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 12px; }
.case-study-header p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 620px; }

.case-study-body {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.case-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 12px;
}

.case-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-section ul li {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.case-section ul li::before {
  content: '✦';
  color: var(--accent);
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 4px;
}

.case-results {
  padding: 32px 40px;
  background: rgba(99,102,241,0.04);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
}

.result-metric {
  text-align: center;
}

.result-metric .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-metric .lbl {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 4px;
  display: block;
}

.placeholder-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  margin-top: 28px;
}

.placeholder-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--muted); }
.placeholder-card p { font-size: 15px; color: var(--muted); opacity: 0.7; }

/* ---------- Team Page ---------- */
.team-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--border); }
.team-hero h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 16px; }
.team-hero p { font-size: 18px; color: var(--muted); max-width: 540px; }

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  margin-top: 60px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.team-left h2 {
  font-size: 26px;
  margin-bottom: 4px;
}

.team-left .role {
  font-size: 14px;
  color: var(--cyan);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  margin-bottom: 20px;
}

.team-links { display: flex; gap: 12px; flex-wrap: wrap; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--text);
}

.team-bio { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 32px; }

.stack-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 16px;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-item {
  padding: 6px 14px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  transition: all var(--transition);
}

.stack-item:hover {
  background: rgba(99,102,241,0.16);
  border-color: var(--accent);
  color: var(--accent);
}

.team-global {
  margin-top: 40px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.team-global p { font-size: 16px; color: var(--muted); line-height: 1.7; }
.team-global strong { color: var(--text); }

/* ---------- Contact Page ---------- */
.contact-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--border); }
.contact-hero h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 16px; }
.contact-hero p { font-size: 18px; color: var(--muted); max-width: 480px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  margin-top: 64px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form-wrap h2 { font-size: 22px; margin-bottom: 28px; }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-error {
  font-size: 12px;
  color: #f87171;
  margin-top: 6px;
  display: none;
}

.form-group.has-error .form-error { display: block; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #f87171; }

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--muted); }

.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-card h3 { font-size: 17px; margin-bottom: 20px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-text p {
  font-size: 13px;
  color: var(--muted);
}

.contact-detail-text strong {
  font-size: 14px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.calendly-cta {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(0,212,255,0.06));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.calendly-cta h3 { font-size: 18px; margin-bottom: 8px; }
.calendly-cta p { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }

.process-steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.process-steps h3 { font-size: 16px; margin-bottom: 20px; }

.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.process-step:last-child { margin-bottom: 0; }

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  flex-shrink: 0;
}

.step-label {
  font-size: 14px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  padding-top: 4px;
}

/* ---------- Architecture Diagram (Case Studies) ---------- */
.arch-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.arch-box .arch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.arch-box .arch-label {
  color: var(--cyan);
  font-weight: 600;
  min-width: 120px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-right .btn { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 80px 0 64px; }
  .section-pad { padding: 64px 0; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }

  .case-teaser {
    flex-direction: column;
    padding: 32px;
  }

  .services-full-grid { grid-template-columns: 1fr; }
  .service-breakdown { grid-template-columns: 1fr; }

  .case-study-body { grid-template-columns: 1fr; gap: 24px; }

  .team-card {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { justify-content: center; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .case-metrics { justify-content: center; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .stack-showcase { padding: 28px 24px !important; }
  .stack-chips { gap: 6px; }
  .stack-chip { font-size: 12px; padding: 4px 10px; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---- Glassmorphism (shadcn-inspired, enhanced) ---- */
.glass {
  background: rgba(17, 17, 27, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.glass-card {
  background: rgba(18, 18, 28, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle shimmer line at top of glass cards */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(99, 102, 241, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 32px rgba(99, 102, 241, 0.08);
  transform: translateY(-3px);
}

/* Nav glassmorphism */
.nav {
  background: rgba(8, 8, 14, 0.78) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) !important;
}

/* ---- Stack showcase section ---- */
.stack-showcase {
  border-radius: var(--radius);
}

.stack-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-chip {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: default;
}

.stack-chip:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Testimonial card */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  padding: 28px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.testimonial-quote {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 28px;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-meta {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

.testimonial-project {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.testimonial-stars {
  font-size: 13px;
  color: #FBBF24;
}

.testimonial-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Row 2 center (2 cards) */
.testimonial-grid .testimonial-card:nth-child(4),
.testimonial-grid .testimonial-card:nth-child(5) {
  /* handled by grid-column-start in HTML */
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}
