/* Resets and Base */
:root{
  /* Core */
  --bg-body:#0A0C10;
  --bg-card:#131720;
  --bg-header:rgba(10,12,16,.85);

  --text-primary:#F1F5F9;
  --text-secondary:#94A3B8;
  --text-muted:#64748B;
  --border-color:#1E293B;

  /* Aurora accents */
  --accent-1:#38BDF8;  /* cyan */
  --accent-2:#A78BFA;  /* violet */
  --accent-3:#FB7185;  /* pink */
  --accent-color: var(--accent-1);
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));

  --radius-md:8px;
  --radius-lg:12px;
  --transition:all .3s ease;
  --header-height:72px;
  --container-width:1100px;
  --font-main:'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body{
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}


h1{
  font-size: clamp(2.05rem, 3.3vw, 3.0rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  /* subtle highlight, not overly “deck-like” */
  background: linear-gradient(to right, rgba(241,245,249,1), rgba(148,163,184,.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.25rem;
}

h2{
  font-size: clamp(1.55rem, 2.1vw, 2.05rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

h3{
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
p{
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.lede{
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 62ch;
}

.section-subtitle{
  font-size: 1.05rem;
  max-width: 70ch;
  color: var(--text-secondary);
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.button-primary {
  background-color: var(--text-primary);
  color: var(--bg-body);
  font-weight: 600;
}

.button-primary:hover {
  background-color: #cbd5e1;
  transform: translateY(-1px);
}

.button-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.button-small:hover {
  border-color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.05);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: white;
  padding: 8px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand{
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  /* Hidden on mobile by default */
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    gap: 1.5rem;
  }

  .nav a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
  }

  .nav a:hover {
    color: var(--text-primary);
  }
}

/* Sections */
.section {
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.section-header {
  margin-bottom: 3rem;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  border-top: none;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background gradient blob for hero */
.hero-bg{
  position:absolute;
  inset:-35%;
  z-index:-2;
  pointer-events:none;

  background:
    radial-gradient(700px 520px at 18% 22%, rgba(56,189,248,.18), transparent 62%),
    radial-gradient(760px 540px at 82% 30%, rgba(167,139,250,.16), transparent 62%),
    radial-gradient(820px 620px at 55% 85%, rgba(251,113,133,.12), transparent 68%),
    radial-gradient(900px 700px at 50% 50%, rgba(255,255,255,.04), transparent 70%);
  filter: blur(2px);
  opacity: .95;
}

.hero-content{
  max-width: 720px;
}

.hero-actions {
  margin-top: 2.5rem;
}

/* Reality */
.reality .text-block {
  max-width: 750px;
}

.reality p {
  font-size: 1.125rem;
}

/* Cards (What We Do / Who We Work With) */
.grid {
  display: grid;
  gap: 2rem;
}

.four-col {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.two-col-matrix {
  grid-template-columns: repeat(1, 1fr);
}

@media(min-width: 768px) {
  .two-col-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: var(--transition);
}

.card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 24px rgba(56,189,248,0.08),
    0 0 28px rgba(167,139,250,0.06);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

/* How We Work - Process Flow */
.how-we-work-split {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

@media(min-width: 1024px) {
  .how-we-work-split {
    flex-direction: row;
    gap: 6rem;
    /* Increased gap */
    align-items: center;
  }

  .process-visual-container {
    flex: 3;
  }

  .process-description {
    flex: 2;
  }
}

.process-steps {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  /* Ensure spacing is even */
  gap: 0;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
}

.process-step {
  display: flex;
  flex-direction: column;
  /* Stack icon and text */
  align-items: center;
  position: relative;
  flex: 1;
  /* Distribute space evenly */
  text-align: center;
  z-index: 2;
  /* Ensure steps are above connecting line */
}

/* Connecting Line behind steps */
.process-steps::before{
  content:'';
  position:absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  height: 2px;
  z-index: 1;
  display: block;
  background: linear-gradient(90deg,
    rgba(56,189,248,.0),
    rgba(56,189,248,.35),
    rgba(167,139,250,.35),
    rgba(251,113,133,.20),
    rgba(251,113,133,.0)
  );
}

.process-step:last-child {
  padding-right: 0;
}

.process-icon{
  width:84px;
  height:84px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:1rem;
  position:relative;
  z-index:2;

  background: linear-gradient(180deg, rgba(19,23,32,.95), rgba(10,12,16,.95));
  color: rgba(241,245,249,.85);

  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 10px 30px rgba(0,0,0,.35);
  transition: var(--transition);
}

.process-icon::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  background: var(--accent-gradient);
  z-index:-1;
}

.process-icon::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:inherit;
  background: #131720;
  z-index:-1;
}

.process-step:hover .process-icon {
  border-color: var(--accent-color);
  color: var(--text-primary);
}

/* Better Arrow Approach: Right side of icon */
.process-title{
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--text-primary);
  font-weight: 600;
  max-width: 140px;
  margin: 0 auto;
}

.process-caption {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 2rem;
  font-style: italic;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.engineering-approach {
  background: transparent;
  padding: 0;
  border: none;
  padding-left: 2rem;
  border-left: 1px solid var(--border-color);
}

.engineering-approach h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* Responsive Process */
@media(max-width: 900px) {
  .engineering-approach {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
  }
}

@media(max-width: 768px) {
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .process-step {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 25%;
    /* Indent to center visually */
  }

  .process-icon {
    margin-bottom: 0;
    margin-right: 1.5rem;
  }

  .process-title {
    text-align: left;
    margin: 0;
    font-size: 1rem;
  }

  }

/* Technology */
.content-split {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .content-split {
    flex-direction: row;
    align-items: center;
  }

  .split-text {
    flex: 1;
  }

  .split-visual {
    flex: 1;
    display: flex;
    justify-content: center;
  }
}

/* Tech Grid Visual - Refined */
.tech-grid-visual {
  width: 100%;
  max-width: 450px;
  height: 350px;
  background-color: #0d1016;
  /* Slightly lighter than sections */
  border: 1px solid #1E293B;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  /* Slight radius */
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Primary Grid */
.tech-grid-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(51, 65, 85, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.3) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  /* Fade out at bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.tech-grid-inner {
  width: 240px;
  height: 160px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  /* Lighter border */
  background: rgba(15, 23, 42, 0.6);
  position: relative;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.05);
  /* Very subtle glow */
}

/* Inner Grid lines */
.tech-grid-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
}

@media(min-width: 768px) {
  .about-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.tagline {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-muted);
  background: linear-gradient(135deg, #fff 0%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Contact */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-box h2 {
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .header-inner .button {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .process-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    border-top: none;
    border-left: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
  }

  .step:hover {
    border-color: var(--accent-color);
  }

  .step-number {
    margin-bottom: 0;
  }
}

.hero-grid{
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.12;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 35% 30%, rgba(0,0,0,1), rgba(0,0,0,0) 70%);
}


.contact-box .button{ margin-top: 1rem; }
