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

/* ===== Tokens ===== */
:root {
  --bg:          #07131F;
  --bg-alt:      #0C1C2C;
  --bg-card:     #0F2035;
  --text:        #EFF4FF;
  --text-2:      #8AA0BC;
  --text-3:      #3A5470;
  --accent:      #2ECFC3;
  --accent-dim:  rgba(46, 207, 195, 0.12);
  --cta:         #FF4F33;
  --cta-hover:   #E53D21;
  --border:      rgba(255, 255, 255, 0.07);
  --border-2:    rgba(46, 207, 195, 0.25);

  --font:   'Space Grotesk', sans-serif;
  --mono:   'JetBrains Mono', monospace;

  --r:   8px;
  --r-lg: 16px;
  --max:  1160px;
}

/* ===== Base ===== */
html { scroll-behavior: smooth; font-size: 16px; }

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

h1, h2, h3 {
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

p { color: var(--text-2); }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

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

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

section { padding: 7rem 0; }
.section-alt { background: var(--bg-alt); }

/* ===== Typography ===== */
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.section-header p  { font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

.mono-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-cta {
  background: var(--cta);
  color: #fff;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  border-radius: var(--r);
}
.btn-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 79, 51, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

.btn-full { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.header.scrolled {
  background: rgba(7, 19, 31, 0.92);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}
.logo-mark { font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.logo-text  { font-size: 1.25rem; font-weight: 700; color: var(--text); }

.nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.desktop-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-tn-bg {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-52%);
  width: 52%;
  max-width: 660px;
  stroke: var(--accent);
  stroke-width: 20;
  stroke-linecap: square;
  fill: none;
  opacity: 0.055;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 90% 90% at 30% 50%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 30% 50%, black 10%, transparent 75%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.08;
}

.word-cycle {
  color: var(--accent);
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 500;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ===== Cards (Services) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 100%; height: 100%; }

.card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p  { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.25rem; }

.card-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* ===== About ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
}

.about-quote-card blockquote {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.55;
  font-style: italic;
}

.about-stack-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 2rem;
}

.about-stack-card li {
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.about-stack-card li:last-child { border-bottom: none; }

.about-text .section-tag { display: block; }
.about-text h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
.about-text p  { font-size: 1.025rem; line-height: 1.8; margin-bottom: 1.1rem; }

.values-list {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.arrow { color: var(--accent); font-size: 1rem; }

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-grid::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0.2;
  pointer-events: none;
}

.process-step { position: relative; }

.step-marker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.step-dot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.process-step h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.process-step p  { font-size: 0.875rem; line-height: 1.7; }

/* ===== Contact ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-text .section-tag { display: block; }
.contact-text h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.25rem; }
.contact-text p  { font-size: 1.025rem; line-height: 1.75; margin-bottom: 2rem; }

.contact-email {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(46, 207, 195, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.contact-email:hover { border-color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }

.field input:focus,
.field textarea:focus { border-color: var(--accent); }

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-right: auto;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ===== Reveal Animations ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-layout   { grid-template-columns: 1fr; gap: 3rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .process-grid   { grid-template-columns: 1fr 1fr; }
  .process-grid::after { display: none; }
}

@media (max-width: 680px) {
  section { padding: 5rem 0; }
  .container { padding: 0 1.25rem; }

  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: rgba(7, 19, 31, 0.97);
    backdrop-filter: blur(16px);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav.is-open a { font-size: 1.1rem; }

  .menu-toggle  { display: flex; }
  .desktop-cta  { display: none; }

  .process-grid { grid-template-columns: 1fr; }
  .hero-stats   { gap: 1.25rem; }
  .stat-sep     { display: none; }
  .hero { padding: 7rem 0 4rem; }

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

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
