/* ============================================================
   BaseCamp AI — Main Stylesheet
   ============================================================ */

:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2238;
  --navy-mid: #2d5f8a;
  --terra: #c27a4a;
  --terra-light: #d4956a;
  --slate: #4a5568;
  --slate-light: #718096;
  --cream: #faf8f5;
  --white: #ffffff;
  --border: #e2ddd8;
  --text: #2d3748;
  --text-light: #4a5568;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(26,58,92,0.08), 0 1px 2px rgba(26,58,92,0.04);
  --shadow-md: 0 4px 16px rgba(26,58,92,0.10), 0 2px 6px rgba(26,58,92,0.06);
  --shadow-lg: 0 12px 40px rgba(26,58,92,0.14), 0 4px 12px rgba(26,58,92,0.08);
  --shadow-xl: 0 24px 64px rgba(26,58,92,0.18), 0 8px 24px rgba(26,58,92,0.10);

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

h1 em {
  font-style: normal;
  color: var(--terra);
}

p { line-height: 1.7; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  background: rgba(194,122,74,0.10);
  border: 1px solid rgba(194,122,74,0.22);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 18px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary svg { flex-shrink: 0; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.28);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--terra);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-nav:hover {
  background: var(--terra-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194,122,74,0.35);
}
.btn-nav svg { flex-shrink: 0; }

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   LOGO
   ============================================================ */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  background: rgba(250,248,245,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,221,216,0.6);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a:not(.btn-nav) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:not(.btn-nav):hover {
  color: var(--navy);
  background: rgba(26,58,92,0.06);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(26,58,92,0.06); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cream) 0%, #f0ece6 50%, #e8e3da 100%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,58,92,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,58,92,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,95,138,0.25) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(194,122,74,0.18) 0%, transparent 70%);
  bottom: 0; left: 10%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(26,58,92,0.08);
  border: 1px solid rgba(26,58,92,0.16);
  color: var(--navy-mid);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 20px 0 32px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}
.stat:first-child { padding-left: 0; }
.stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat span {
  font-size: 0.72rem;
  color: var(--slate-light);
  margin-top: 3px;
  white-space: nowrap;
}
.stat-div {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   HERO VISUAL — Office Card
   ============================================================ */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.office-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
}

.office-scene {
  position: relative;
  height: 320px;
  background: linear-gradient(180deg, #c8daf0 0%, #dde9f5 60%, #e8eff7 100%);
  overflow: hidden;
}

/* Window with city view */
.scene-bg { position: absolute; inset: 0; }

.window {
  position: absolute;
  top: 16px; right: 24px;
  width: 140px; height: 120px;
  border: 3px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.12);
}
.window-view { position: relative; width: 100%; height: 100%; }
.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #7ab8e8 0%, #aed4f0 50%, #c8e4f8 100%);
}
.building {
  position: absolute;
  bottom: 0;
  background: linear-gradient(180deg, #4a6fa5 0%, #2d4f7a 100%);
  border-radius: 2px 2px 0 0;
}
.b1 { left: 8px;  width: 28px; height: 70px; background: linear-gradient(180deg, #5a7fa8 0%, #3a5f88 100%); }
.b2 { left: 42px; width: 38px; height: 90px; background: linear-gradient(180deg, #3d6b98 0%, #264e7a 100%); }
.b3 { left: 86px; width: 32px; height: 55px; background: linear-gradient(180deg, #6a8fb8 0%, #4a6f90 100%); }

/* Animated windows on buildings */
.b1::after, .b2::after, .b3::after {
  content: '';
  position: absolute;
  top: 8px; left: 6px;
  width: 4px; height: 4px;
  background: rgba(255,220,100,0.85);
  box-shadow: 8px 0 0 rgba(255,220,100,0.85), 0 10px 0 rgba(255,220,100,0.5), 8px 10px 0 rgba(255,220,100,0.85);
  border-radius: 1px;
}

/* Desk area */
.desk {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

/* Server unit */
.server-unit {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.server-face {
  width: 52px;
  height: 68px;
  background: linear-gradient(160deg, #2a3f5a 0%, #1a2d42 100%);
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}
.server-led {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.led-green {
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80, 0 0 12px rgba(74,222,128,0.5);
  animation: pulse-green 2s ease-in-out infinite;
}
.led-blue {
  background: #60a5fa;
  box-shadow: 0 0 6px #60a5fa, 0 0 12px rgba(96,165,250,0.5);
  animation: pulse-blue 2.5s ease-in-out infinite 0.5s;
}
.server-slots {
  width: 28px; height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 1px;
  box-shadow: 0 4px 0 rgba(255,255,255,0.1), 0 8px 0 rgba(255,255,255,0.07);
}

/* Shield hologram */
.shield-holo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shield-holo svg {
  filter: drop-shadow(0 0 8px rgba(100,180,255,0.8)) drop-shadow(0 0 16px rgba(100,180,255,0.4));
  animation: shield-pulse 3s ease-in-out infinite;
}

/* Laptops */
.laptops { display: flex; gap: 10px; align-items: flex-end; }
.laptop {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.laptop.l1 { transform: rotate(-5deg) translateY(-4px); }
.laptop.l2 { transform: rotate(3deg); }

.screen {
  border-radius: 4px 4px 0 0;
  border: 2px solid #2a3f5a;
  background: #0f1f30;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.l1 .screen { width: 52px; height: 36px; }
.l2 .screen { width: 44px; height: 30px; }

.screen-content {
  width: 100%; height: 100%;
  border-radius: 2px;
  background: linear-gradient(135deg, #1a3a5c 0%, #0f2238 100%);
  position: relative;
  overflow: hidden;
}
.screen-content::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px;
  height: 2px;
  background: rgba(96,165,250,0.6);
  border-radius: 1px;
  box-shadow: 0 5px 0 rgba(96,165,250,0.4), 0 10px 0 rgba(96,165,250,0.3);
}
.screen-content::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 3px;
  width: 60%;
  height: 2px;
  background: rgba(74,222,128,0.5);
  border-radius: 1px;
  animation: typing 2.5s steps(10) infinite;
}
.base {
  height: 5px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, #3a5070 0%, #2a3f5a 100%);
}
.l1 .base { width: 60px; }
.l2 .base { width: 52px; }

/* Family silhouettes */
.family {
  position: absolute;
  bottom: 0;
  right: 32px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.person { display: flex; flex-direction: column; align-items: center; gap: 0; }
.person-head {
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.7;
}
.person-body {
  background: var(--navy);
  opacity: 0.6;
  border-radius: 4px 4px 0 0;
}
.p-adult .person-head { width: 16px; height: 16px; }
.p-adult .person-body { width: 22px; height: 38px; }
.p-child1 .person-head { width: 12px; height: 12px; }
.p-child1 .person-body { width: 16px; height: 28px; }
.p-child2 .person-head { width: 10px; height: 10px; }
.p-child2 .person-body { width: 14px; height: 22px; }

/* Data flow lines */
.data-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.data-line {
  position: absolute;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.8), transparent);
  animation: data-flow 3s linear infinite;
  opacity: 0;
}
.dl1 { top: 45%; left: 15%; width: 80px; animation-delay: 0s; }
.dl2 { top: 55%; left: 30%; width: 60px; animation-delay: 1s; }
.dl3 { top: 38%; left: 55%; width: 50px; animation-delay: 2s; }

.office-caption {
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-light);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  background: var(--white);
  text-align: center;
  text-transform: uppercase;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #4ade80, 0 0 12px rgba(74,222,128,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 3px #4ade80, 0 0 6px rgba(74,222,128,0.3); }
}

@keyframes pulse-blue {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #60a5fa, 0 0 12px rgba(96,165,250,0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 3px #60a5fa, 0 0 6px rgba(96,165,250,0.3); }
}

@keyframes shield-pulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(100,180,255,0.8)) drop-shadow(0 0 16px rgba(100,180,255,0.4)); }
  50% { opacity: 0.7; filter: drop-shadow(0 0 4px rgba(100,180,255,0.5)) drop-shadow(0 0 8px rgba(100,180,255,0.25)); }
}

@keyframes data-flow {
  0% { opacity: 0; transform: translateX(-20px); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(40px); }
}

@keyframes typing {
  0% { width: 0%; }
  60% { width: 60%; }
  100% { width: 0%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FEATURES
   ============================================================ */

.features {
  padding: 100px 0;
  background: var(--white);
}

.features > .section-inner > h2 {
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 24px 20px;
  min-height: 160px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,58,92,0.2);
}

.feature-card--highlight {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.feature-card--highlight h3 { color: #ffffff; }
.feature-card--highlight p { color: rgba(255,255,255,0.85); }
.feature-card--highlight .feature-list li { color: rgba(255,255,255,0.8); }
.feature-card--highlight .feature-list li::before { color: #c27a4a; }
.feature-card--highlight .feature-badge { color: #ffffff; }
.feature-card--highlight:hover { border-color: var(--navy-mid); }

.feature-card--highlight,
.feature-card--highlight h3,
.feature-card--highlight p,
.feature-card--highlight li,
.feature-card--highlight span {
  color: #ffffff !important;
}

.feature-badge {
  display: inline-block;
  background: var(--terra);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-vision   { background: rgba(45,95,138,0.1);  color: var(--navy-mid); }
.icon-migration { background: rgba(194,122,74,0.15); color: var(--terra); }
.icon-sovereign { background: rgba(45,95,138,0.1);  color: var(--navy-mid); }
.feature-card--highlight .feature-icon { background: rgba(255,255,255,0.12); color: var(--white); }

.feature-card h3 { margin-bottom: 12px; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }

.feature-list { display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding-left: 18px;
  position: relative;
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--terra);
  font-size: 0.8rem;
}

.feature-card--highlight,
.feature-card--highlight h3,
.feature-card--highlight p,
.feature-card--highlight li,
.feature-card--highlight span {
  color: #ffffff !important;
}

/* ============================================================
   CASE STUDIES
   ============================================================ */

.cases {
  padding: 100px 0;
  background: var(--cream);
}

.cases > .section-inner > h2 { margin-bottom: 56px; }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 20px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,58,92,0.2);
}

.case-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(26,58,92,0.07);
  color: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.case-sector {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 10px;
}

.case-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.case-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.65;
}

.case-metric {
  font-size: 0.85rem;
  color: var(--slate);
  padding: 10px 14px;
  background: rgba(26,58,92,0.05);
  border-radius: 8px;
  border-left: 3px solid var(--terra);
}
.case-metric strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
}

/* ============================================================
   TECH SECTION
   ============================================================ */

.tech {
  padding: 100px 0;
  background: var(--navy-dark);
  color: var(--white);
}

.tech .section-label {
  color: var(--terra-light);
  background: rgba(194,122,74,0.15);
  border-color: rgba(194,122,74,0.3);
}

.tech h2 { color: var(--white); margin-bottom: 48px; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 56px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}
.tech-item:hover { background: rgba(255,255,255,0.04); }
.tech-item:nth-child(even) { border-right: none; }
.tech-item:nth-last-child(-n+2) { border-bottom: none; }

.tech-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(194,122,74,0.5);
}
.tech-item span { font-size: 0.88rem; color: rgba(255,255,255,0.78); }

/* Claw callout */
.tech-claw {
  background: linear-gradient(135deg, rgba(45,95,138,0.4) 0%, rgba(26,58,92,0.6) 100%);
  border: 1px solid rgba(194,122,74,0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tech-claw-inner {
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.tech-claw-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 12px;
}
.tech-claw-inner h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.tech-claw-inner p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  max-width: 460px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.tech-claw-icon {
  flex-shrink: 0;
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(194,122,74,0.4));
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-points { display: flex; flex-direction: column; gap: 14px; }
.contact-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.contact-point svg { color: var(--terra); flex-shrink: 0; }

/* Form */
.contact-form {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-group:last-of-type { margin-bottom: 24px; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(45,95,138,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-light);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.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='%234a5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-top .logo-text { color: var(--white); }

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.15);
}

.footer-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.footer-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.footer-social a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

.footer-tech-link {
  font-size: 0.82rem;
  color: var(--terra-light);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-tech-link:hover { color: var(--terra); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: span 2; }
  .contact-inner { gap: 48px; }
  .tech-claw-inner { padding: 32px 36px; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge { margin: 0 auto 24px; }
  .hero-sub { margin: 20px auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-stats { margin: 0 auto; }
  .hero-visual { display: none; }

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

  .tech-claw-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .tech-claw-icon { align-self: flex-end; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(250,248,245,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.22s ease;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn-nav) { width: 100%; }
  .btn-nav { width: 100%; justify-content: center; margin-top: 8px; }

  .nav-toggle { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card:last-child { grid-column: span 1; }

  .tech-grid { grid-template-columns: 1fr; }
  .tech-item:nth-child(even) { border-right: none; }
  .tech-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .tech-item:last-child { border-bottom: none; }

  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; width: 100%; }
  .stat { align-items: center; padding: 0; }
  .stat-div { width: 48px; height: 1px; }

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

@media (max-width: 480px) {
  .hero { padding: 100px 0 60px; }
  .features, .cases, .tech, .contact { padding: 72px 0; }
  .contact-form { padding: 24px 20px; }
  .tech-claw-inner { padding: 24px 22px; }
  .hero-stats { padding: 16px 20px; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NAV SCROLL ENHANCEMENT (via JS class)
   ============================================================ */

.nav.scrolled {
  background: rgba(250,248,245,0.96);
  box-shadow: 0 1px 20px rgba(26,58,92,0.08);
}

/* ============================================================
   HERO IMAGE
   ============================================================ */

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ============================================================
   CASE CARD IMAGES
   ============================================================ */

.case-card-img {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
  margin: -1.5rem -1.5rem 1.25rem -1.5rem;
  width: calc(100% + 3rem);
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--slate-light);
  margin: -0.5rem 0 2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.card-sub {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin: 0.35rem 0 0;
  font-style: italic;
  line-height: 1.4;
}
.feature-card--highlight .card-sub {
  color: rgba(255,255,255,0.65);
}
.section-sub {
  font-size: 1rem;
  color: var(--slate-light);
  margin: -0.75rem 0 2.5rem;
  max-width: 480px;
}
.tech .section-sub {
  color: rgba(255,255,255,0.55);
}
