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

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

:root {
  --bg: #0a0a0a;
  --bg-elevated: #101010;
  --bg-card: #151515;
  --border: #1e1e1e;
  --border-light: #2a2a2a;
  --text: #e8e8e8;
  --text-secondary: #999999;
  --text-muted: #555555;
  --accent: #64ffda;
  --accent-dim: rgba(100, 255, 218, 0.08);
  --accent-border: rgba(100, 255, 218, 0.25);
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 720px;
  --max-width-wide: 1000px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}


/* ===== Layout ===== */

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

.container--wide {
  max-width: var(--max-width-wide);
}

section {
  padding: 96px 0;
}

section + section {
  border-top: 1px solid var(--border);
}


/* ===== Hero ===== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(100, 255, 218, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(100, 255, 218, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__logo {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
  margin-bottom: 28px;
}

.hero__logo .char-i,
.hero__logo .char-o {
  color: var(--accent);
}

.hero__tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text);
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

.hero__sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.hero__cta-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-border);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.hero__cta-link:hover {
  border-color: var(--accent);
  opacity: 1;
}

.hero__cta-email {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__cta-email:hover {
  color: var(--text-secondary);
  border-color: var(--text-muted);
  opacity: 1;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fade-in 1s ease 1.5s both;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); transform-origin: top; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ===== Section Labels ===== */

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 40px;
}


/* ===== Capabilities ===== */

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
}

.capability {
  background: var(--bg);
  padding: 28px;
  transition: background-color 0.3s ease;
}

.capability:hover {
  background: var(--bg-card);
}

.capability__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.capability__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.capabilities__philosophy {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 600px;
  font-style: italic;
}


/* ===== What We Build ===== */

.what-we-build__intro {
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 1.0625rem;
  max-width: 680px;
}

.what-we-build__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.build-type {
  background: var(--bg);
  padding: 28px;
  transition: background-color 0.3s ease;
}

.build-type:hover {
  background: var(--bg-card);
}

.build-type__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.build-type__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ===== How We Work ===== */

.how-we-work__heading {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 48px;
  max-width: 480px;
}

.how-we-work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.pillar::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 20px;
  opacity: 0.5;
}

.pillar__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pillar__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ===== About ===== */

.about p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 600px;
  margin-bottom: 20px;
}

.about p:last-child {
  margin-bottom: 0;
}

.about strong {
  color: var(--text);
  font-weight: 500;
}


/* ===== Contact ===== */

.contact {
  padding-bottom: 120px;
}

.contact__prompt {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.contact__email {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 48px;
  display: block;
}

.contact__offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.office__city {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 12px;
}

.office__address {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
}


/* ===== Footer ===== */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer__tech {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  opacity: 0.6;
}

.footer__text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}


/* ===== Scroll Animations ===== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }


/* ===== Responsive ===== */

@media (max-width: 768px) {
  .capabilities__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-we-work__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 640px) {
  section {
    padding: 72px 0;
  }

  .hero {
    min-height: 90vh;
  }

  .hero__cta {
    flex-direction: column;
    gap: 16px;
  }

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

  .what-we-build__grid {
    grid-template-columns: 1fr;
  }

  .contact__offices {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
