/* ============================================
   system8.ai — Main Stylesheet
   ============================================ */

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

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

body {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: #2A2F38;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #0A1628;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #1FA2FF;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  color: #0A1628;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.1rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1FA2FF 0%, #12D8FA 50%, #1FA2FF 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 162, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(31, 162, 255, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: #fff;
  color: #0A1628;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

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

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-wordmark {
  font-family: 'Courier New', 'Courier', monospace;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: #0A1628;
  line-height: 1;
}

.logo-wordmark .tld {
  margin-left: -0.25em;
}

@media (max-width: 480px) {
  .logo img {
    height: 42px;
  }

  .logo-wordmark {
    font-size: 1.2rem;
  }
}

/* ---------- Navigation ---------- */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-links>li {
  position: relative;
}

.nav-links>li>a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2A2F38;
  letter-spacing: 0.2px;
  transition: color 0.3s;
}

.nav-links>li>a:hover,
.nav-links>li:hover>a {
  color: #1FA2FF;
}

.nav-links li .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: 0 16px 48px rgba(10, 22, 40, 0.12);
  border-radius: 0 0 10px 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 100;
}

.nav-links li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  color: #4B4F58;
  font-weight: 400;
}

.dropdown li a:hover {
  background: #F4F8FC;
  color: #1FA2FF;
}

.nav-cta {
  margin-left: 1rem;
}

.nav-cta .btn {
  padding: 0.65rem 1.4rem;
  font-size: 0.78rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #0A1628;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Sub-Hero (inner page) ---------- */
.sub-hero {
  position: relative;
  padding: 6rem 2rem 5rem;
  background: linear-gradient(135deg, #0A1628 0%, #0F2238 50%, #0A1628 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(31, 162, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(18, 216, 250, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.sub-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #1FA2FF 30%, #12D8FA 70%, transparent);
  opacity: 0.8;
}

.sub-hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.sub-hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: #12D8FA;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(31, 162, 255, 0.4);
  border-radius: 999px;
  background: rgba(31, 162, 255, 0.08);
}

.sub-hero h1 {
  color: #fff;
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.sub-hero h1 .accent {
  background: linear-gradient(135deg, #12D8FA 0%, #1FA2FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .sub-hero {
    padding: 4rem 1.25rem 3.5rem;
  }

  .sub-hero h1 {
    font-size: 2rem;
  }

  .sub-hero p {
    font-size: 1rem;
  }
}

/* Active nav state */
.nav-links>li.active>a {
  color: #1FA2FF;
}

.nav-links>li.active>a::after {
  content: '';
  display: block;
  height: 2px;
  width: 22px;
  margin: 4px auto 0;
  background: linear-gradient(135deg, #12D8FA 0%, #1FA2FF 100%);
  border-radius: 2px;
}

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero .hero-bg img,
.page-hero .hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.7) 50%, rgba(31, 162, 255, 0.35) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 820px;
  padding: 5rem 2rem;
  margin: 0 auto;
  width: 100%;
}

.page-hero-content .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: #12D8FA;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(31, 162, 255, 0.4);
  border-radius: 999px;
  background: rgba(31, 162, 255, 0.08);
}

.page-hero-content h1 {
  color: #fff;
  font-size: 3.4rem;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-hero-content h1 .accent {
  background: linear-gradient(135deg, #12D8FA 0%, #1FA2FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero-content p.lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 680px;
}

.page-hero-content .hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: #0A1628;
  color: #fff;
  padding: 2.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #12D8FA 0%, #1FA2FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.6rem;
}

/* ---------- About / Problem section ---------- */
.about-section {
  padding: 6rem 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px -30px rgba(10, 22, 40, 0.4);
}

.about-image img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, #F4F8FC 0%, #E1F0FF 100%);
  z-index: -1;
  border-radius: 14px;
}

.about-text .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1FA2FF;
  margin-bottom: 1rem;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  color: #4B5560;
  margin-bottom: 1rem;
}

.about-text .btn {
  margin-top: 1rem;
}

/* ---------- Threats section (dark) ---------- */
.threats {
  padding: 6rem 2rem;
  background: #0A1628;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.threats::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31, 162, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
  position: relative;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1FA2FF;
  margin-bottom: 0.85rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.threats .section-header h2 {
  color: #fff;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #4B5560;
}

.threats .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #12D8FA 0%, #1FA2FF 100%);
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.threat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: all 0.35s;
}

.threat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 162, 255, 0.4);
  background: rgba(31, 162, 255, 0.06);
  box-shadow: 0 20px 40px -20px rgba(31, 162, 255, 0.3);
}

.threat-card .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #12D8FA;
  margin-bottom: 0.85rem;
  display: block;
}

.threat-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.threat-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Services / what we do ---------- */
.services {
  padding: 6rem 2rem;
  background: #F4F8FC;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-item {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.06);
  transition: all 0.35s;
  border: 1px solid #E5EEF7;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(10, 22, 40, 0.12);
  border-color: #1FA2FF;
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(31, 162, 255, 0.12) 0%, rgba(18, 216, 250, 0.12) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: #1FA2FF;
  fill: none;
  stroke-width: 1.8;
}

.service-item h3 {
  color: #0A1628;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.service-item p {
  color: #4B5560;
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Phases section (split) ---------- */
.phases {
  padding: 6rem 2rem;
}

.phases-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.phase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.phase-row:last-child {
  margin-bottom: 0;
}

.phase-row.reverse>.phase-text {
  order: 2;
}

.phase-text .phase-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1FA2FF;
  padding: 0.35rem 0.85rem;
  background: rgba(31, 162, 255, 0.08);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.phase-text h2 {
  margin-bottom: 1rem;
}

.phase-text p {
  color: #4B5560;
  margin-bottom: 0.85rem;
}

.phase-text ul {
  list-style: none;
  margin-top: 1.25rem;
}

.phase-text ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  color: #2A2F38;
  font-size: 0.96rem;
}

.phase-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12D8FA 0%, #1FA2FF 100%);
  box-shadow: 0 0 0 4px rgba(31, 162, 255, 0.12);
}

.phase-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(10, 22, 40, 0.4);
  background: #0A1628;
}

.phase-image img {
  width: 100%;
  display: block;
}

/* ---------- Example / case study ---------- */
.case-study {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #0A1628 0%, #11233B 100%);
  color: #fff;
}

.case-study .case-card {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 3rem;
}

.case-study h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.case-study .case-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #12D8FA;
  margin-bottom: 0.85rem;
  display: block;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.case-stat {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 3px solid #1FA2FF;
}

.case-stat .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.4rem;
}

.case-stat .value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}

.case-stat .value.good {
  color: #12D8FA;
}

.case-stat .value.bad {
  color: #FF6B6B;
}

.case-study p {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Speeds (Aggressive / Balanced / Cautious) ---------- */
.speeds {
  padding: 6rem 2rem;
  background: #fff;
}

.speeds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.speed-card {
  position: relative;
  padding: 2.25rem 2rem;
  border-radius: 14px;
  border: 1px solid #E5EEF7;
  background: #F4F8FC;
  transition: all 0.35s;
}

.speed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(10, 22, 40, 0.1);
}

.speed-card.featured {
  background: linear-gradient(160deg, #0A1628 0%, #11233B 100%);
  color: #fff;
  border-color: transparent;
}

.speed-card .speed-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(31, 162, 255, 0.12);
  color: #1FA2FF;
  margin-bottom: 1.1rem;
}

.speed-card.featured .speed-tag {
  background: rgba(31, 162, 255, 0.2);
  color: #12D8FA;
}

.speed-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.speed-card.featured h3 {
  color: #fff;
}

.speed-card p {
  color: #4B5560;
  font-size: 0.95rem;
  margin: 0;
}

.speed-card.featured p {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Founder / About ---------- */
.founder-section {
  padding: 6rem 2rem;
  background: #F4F8FC;
}

.founder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.founder-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(10, 22, 40, 0.5);
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 480px;
  display: block;
}

.founder-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 22, 40, 0.25) 100%);
  pointer-events: none;
}

.founder-text .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1FA2FF;
  margin-bottom: 1rem;
}

.founder-text h2 {
  margin-bottom: 1.25rem;
}

.founder-text>p {
  color: #4B5560;
  margin-bottom: 1rem;
}

.founder-namecard {
  margin-top: 2rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid #1FA2FF;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.06);
}

.founder-namecard h3 {
  margin-bottom: 0.15rem;
  font-size: 1.35rem;
}

.founder-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1FA2FF;
  margin-bottom: 0.85rem;
}

.founder-namecard p {
  color: #4B5560;
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #0A1628 0%, #11233B 50%, #0A1628 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(31, 162, 255, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner>* {
  position: relative;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ---------- Sub-hero with background image ---------- */
.sub-hero-image {
  padding: 8rem 2rem 7rem;
  background: #0A1628;
}

.sub-hero-image::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(31, 162, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(18, 216, 250, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0.78) 100%);
  z-index: 1;
}

.sub-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sub-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.sub-hero-image .sub-hero-inner {
  z-index: 2;
}

.sub-hero-image h1 {
  font-size: 3.4rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.sub-hero-image p {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.sub-hero-credit {
  position: absolute;
  bottom: 0.85rem;
  right: 1.25rem;
  z-index: 3;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
  .sub-hero-image {
    padding: 5rem 1.25rem 4.5rem;
  }

  .sub-hero-image h1 {
    font-size: 2.1rem;
  }
}

/* ---------- Experience Timeline ---------- */
.experience {
  padding: 6rem 2rem;
  background: #fff;
}

.timeline {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #1FA2FF 0%, rgba(31, 162, 255, 0.15) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.4rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #1FA2FF;
  box-shadow: 0 0 0 4px rgba(31, 162, 255, 0.12);
}

.timeline-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #1FA2FF;
  margin-bottom: 0.4rem;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: #0A1628;
}

.timeline-content h3 .timeline-role {
  font-weight: 400;
  color: #4B5560;
  font-size: 0.95rem;
}

.timeline-meta {
  font-size: 0.82rem;
  color: #6B7480;
  margin-bottom: 0.65rem;
  font-style: italic;
}

.timeline-content p {
  color: #4B5560;
  font-size: 0.95rem;
  margin: 0;
}

.education-block {
  max-width: 880px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid #E5EEF7;
}

.education-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1FA2FF;
  margin-bottom: 1.5rem;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.edu-school {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0A1628;
  margin-bottom: 0.3rem;
}

.edu-detail {
  font-size: 0.9rem;
  color: #4B5560;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .experience {
    padding: 4rem 1.25rem;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: -2rem;
    width: 16px;
    height: 16px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-content h3 {
    font-size: 1.05rem;
  }

  .timeline-content h3 .timeline-role {
    display: block;
    font-size: 0.88rem;
    margin-top: 0.15rem;
  }

  .education-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 6rem 2rem;
}

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

.contact-info .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1FA2FF;
  margin-bottom: 1rem;
}

.contact-info h2 {
  margin-bottom: 1.25rem;
}

.contact-info>p {
  color: #4B5560;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, rgba(31, 162, 255, 0.12) 0%, rgba(18, 216, 250, 0.12) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: #1FA2FF;
  fill: none;
  stroke-width: 1.8;
}

.contact-detail-text {
  font-size: 0.95rem;
  color: #4B5560;
}

.contact-detail-text strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #0A1628;
  font-weight: 600;
}

.contact-detail-text a {
  color: #1FA2FF;
}

.contact-detail-text a:hover {
  color: #0A1628;
}

.contact-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: 14px;
  border: 1px solid #E5EEF7;
  box-shadow: 0 20px 60px -30px rgba(10, 22, 40, 0.25);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #2A2F38;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #DCE5EF;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s;
  background: #F4F8FC;
  color: #0A1628;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1FA2FF;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 162, 255, 0.12);
}

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

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

.contact-form button[type=submit] {
  width: 100%;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

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

  .contact-form {
    padding: 1.75rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #06101D;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.footer-brand .footer-logo-wordmark .tld {
  margin-left: -0.25em;
}

.footer-brand .footer-logo img {
  height: 56px;
  width: auto;
  display: block;
  filter: invert(1);
}

.footer-brand .footer-logo-wordmark {
  font-family: 'Courier New', 'Courier', monospace;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

.footer-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #12D8FA;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0;
}
.footer-social li {
  margin: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}
.footer-social a:hover {
  background: rgba(31, 162, 255, 0.18);
  border-color: rgba(31, 162, 255, 0.5);
  color: #12d8fa;
  transform: translateY(-1px);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.disclosure {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.55;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.main-nav {
  z-index: 999;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {

  .about-grid,
  .phase-row,
  .founder-grid,
  .stat-strip-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .phase-row.reverse>.phase-text {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .speeds-grid {
    grid-template-columns: 1fr;
  }

  .stat-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .page-hero-content h1 {
    font-size: 2.2rem;
  }

  .page-hero-content {
    padding: 4rem 1.25rem;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links>li>a {
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .nav-links li .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-study .case-card {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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