:root {
  --bg-surface: #030407;
  --primary: #b2c5ff;
  --primary-hover: #cddaff;
  --on-primary: #002359;
  --accent-cyan: #59d9ff;
  --text-white: #ffffff;
  --text-primary: #f5f7fb;
  --text-secondary: #b4bccf;
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-line: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(178, 197, 255, 0.35);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background-color: #0052cc;
  color: #dbe5ff;
}

/* Full-viewport live animated tech canvas */
.tech-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Subtle dark reading veil so animated canvas stays vivid yet text stays crisp */
.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 60% at 20% 25%, rgba(3, 4, 7, 0.52) 0%, rgba(3, 4, 7, 0.18) 65%, rgba(3, 4, 7, 0.58) 100%),
    linear-gradient(180deg, rgba(3, 4, 7, 0.35) 0%, rgba(3, 4, 7, 0.15) 45%, rgba(3, 4, 7, 0.72) 100%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* Minimal Sticky Top Bar */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 4, 7, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Official Logo (+10%+ larger) */
.brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.brand-link:hover .brand-logo {
  opacity: 0.88;
}

/* Techy Precision Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.96rem;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(16, 28, 48, 0.92) 0%, rgba(9, 14, 26, 0.96) 100%);
  border: 1px solid rgba(89, 217, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 18px rgba(89, 217, 255, 0.14),
    0 0 20px rgba(89, 217, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Luminous light-sweep shimmer across tech button */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(89, 217, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.24) 52%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

/* Subtle bottom electric accent bar */
.btn-primary::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--primary), transparent);
  opacity: 0.85;
  transition: left 0.25s ease, right 0.25s ease, opacity 0.25s ease;
}

.btn-primary:hover {
  border-color: rgba(89, 217, 255, 0.95);
  background: linear-gradient(135deg, rgba(20, 42, 72, 0.96) 0%, rgba(11, 20, 38, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 24px rgba(89, 217, 255, 0.26),
    0 0 32px rgba(89, 217, 255, 0.34),
    0 0 60px rgba(178, 197, 255, 0.14);
  transform: translateY(-1px);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-primary:hover::after {
  left: 6%;
  right: 6%;
  opacity: 1;
}

.btn-outline {
  background: rgba(8, 11, 18, 0.65);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(89, 217, 255, 0.08);
  border-color: rgba(89, 217, 255, 0.55);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(89, 217, 255, 0.14);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 14px 8px;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--text-white);
}

.text-link .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.text-link:hover .arrow {
  transform: translateY(3px);
}

/* Hero Section */
.hero {
  min-height: calc(88vh - 84px);
  display: flex;
  align-items: center;
  padding: 96px 0 88px;
}

.hero-inner {
  max-width: 820px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.65rem, 5.6vw, 4.65rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-white);
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: clamp(1.08rem, 1.75vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 660px;
  margin-bottom: 42px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

/* Sections */
.section {
  padding: 88px 0;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3.3vw, 2.85rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-white);
}

/* Who We Are: Clean Editorial Split */
.editorial-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  padding: 64px 0;
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
  align-items: start;
}

.split-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-top: 32px;
}

/* What We Do: Full-Width Architectural Rows */
.section-intro {
  max-width: 680px;
  margin-bottom: 52px;
}

.capability-list {
  border-top: 1px solid var(--border-line);
}

.capability-row {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  padding: 36px 20px;
  border-bottom: 1px solid var(--border-line);
  align-items: baseline;
  transition: background-color 0.28s ease, border-color 0.28s ease, padding-left 0.28s ease;
  overflow: hidden;
}

.capability-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent-cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.capability-row:hover {
  background: rgba(178, 197, 255, 0.045);
  border-bottom-color: var(--border-strong);
  padding-left: 28px;
}

.capability-row:hover::before {
  transform: scaleY(1);
}

.cap-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.22rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -0.015em;
  line-height: 1.25;
  transition: color 0.25s ease;
}

.capability-row:hover .cap-heading {
  color: var(--primary);
}

.cap-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Contact Section */
.contact-section {
  padding: 88px 0 112px;
}

.contact-layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-top: 64px;
  border-top: 1px solid var(--border-line);
}

.contact-left {
  max-width: 620px;
}

.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.contact-right {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-line);
  background: rgba(3, 4, 7, 0.85);
  padding: 36px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-email {
  display: inline-block;
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 6px;
}

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

.footer-legal,
.footer-right p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Subtle Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Responsive */
@media (max-width: 960px) {
  .editorial-split,
  .capability-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .split-right {
    padding-top: 0;
  }

  .contact-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .top-bar-inner {
    height: 74px;
  }

  .brand-logo {
    height: 41px;
  }

  .hero {
    min-height: auto;
    padding: 68px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .editorial-split {
    padding: 40px 0;
  }

  .capability-row {
    padding: 28px 12px;
  }

  .capability-row:hover {
    padding-left: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
