/* 3E9 Design — Custom Space-Tech Redesign
   Palette: Rich Midnight Black, Electric Blue, Teal, Muted Slate */
:root {
  --bg-dark: #070a13;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #14b8a6;
  --accent-glow: rgba(20, 184, 166, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --border-hover: #475569;
  --radius: 16px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-title: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --glow: 0 0 25px rgba(59, 130, 246, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-dark);
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
}

.section--soft {
  background: rgba(15, 23, 42, 0.5);
  border-y: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.5);
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

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

.btn--secondary:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: #000;
  box-shadow: 0 8px 20px -6px rgba(20, 184, 166, 0.5);
}

.btn--accent:hover {
  background: #0f9f8f;
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-glow);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 19, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 80px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-img {
  height: 40px;
  width: auto;
  border-radius: 0;
}

.brand-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-text small {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

.nav-mobile-phone,
.nav-mobile-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

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

/* Hero Section */
.hero {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* Trust Strip */
.trust-strip {
  background: #090d1a;
  border-y: 1px solid var(--border);
  padding: 24px 0;
}

.trust-strip ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-strip svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Grid & Cards */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-img-wrapper {
  position: relative;
}

.split-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 40px rgba(59, 130, 246, 0.1);
  pointer-events: none;
}

.split-img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--text-main);
}

.checklist svg {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Tech Cards Grid */
.grid {
  display: grid;
  gap: 30px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.card:hover::before {
  opacity: 1;
}

.card .icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.1);
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 24px;
}

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

.card p {
  margin: 0;
}

/* Project Svc Card */
.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.svc-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
}

.svc-card .body {
  padding: 30px;
}

.svc-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(20, 184, 166, 0.08);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.svc-card h3 {
  margin-bottom: 8px;
}

.svc-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Call to Action Band */
.cta-band {
  background: linear-gradient(135deg, #090d1a, #0b152d);
  border-y: 1px solid var(--border);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.05), transparent 50%);
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 1.15rem;
  margin-bottom: 30px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Forms styling */
.form-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-info h2 {
  margin-bottom: 12px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-card h3 {
  margin-bottom: 6px;
}

.form-card-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 10, 19, 0.4);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: rgba(7, 10, 19, 0.6);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Interior Pages Page Hero */
.page-hero {
  padding: clamp(60px, 8vw, 100px) 0;
  background: linear-gradient(180deg, #090d1a 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.crumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.crumb a {
  color: var(--accent);
}

.crumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin-bottom: 0;
}

/* Bio Card */
.bio-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.bio-avatar {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.bio-avatar img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Footer Section */
.site-footer {
  background: #04060c;
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-grid h4 {
  font-family: var(--font-title);
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-credit {
  font-size: 0.8rem;
  color: #475569;
}

.footer-credit a {
  color: var(--accent);
  font-weight: 600;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* Interactive Accordions */
.accordion {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.accordion details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.accordion details[open] {
  border-color: var(--primary);
}

.accordion summary {
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-main);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  transition: var(--transition);
}

.accordion details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.accordion .acc-body {
  padding: 0 24px 20px;
  font-size: 0.95rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-wrap,
  .split,
  .bio-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 70px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 16px;
  }
  .nav-links.open .nav-mobile-phone,
  .nav-links.open .nav-mobile-cta {
    display: block;
    width: 100%;
    list-style: none;
  }
  .nav-links.open .nav-mobile-phone {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
  }
  .nav-links.open .nav-mobile-phone a {
    display: block;
    padding: 10px 16px;
    font-weight: 700;
    color: var(--primary);
  }
  .nav-links.open .nav-mobile-cta {
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  .nav-links.open .nav-mobile-cta .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px;
  }
}
