/* ============================================================
   Taruca — Data Engineering Consultancy
   Custom stylesheet — built from scratch for the Taruca brand.
   ============================================================ */

:root {
  --black: #05070a;
  --ink: #0a0f1a;
  --surface: #0f1626;
  --surface-2: #141d33;
  --border: rgba(227, 242, 245, 0.1);
  --border-strong: rgba(227, 242, 245, 0.18);
  --text: #e3f2f5;
  --muted: #94a7bd;
  --muted-2: #6b7d94;
  --cyan: #62d2f2;
  --blue: #3e62f1;
  --gradient: linear-gradient(120deg, var(--blue), var(--cyan));
  --gradient-soft: linear-gradient(120deg, rgba(62, 98, 241, 0.18), rgba(98, 210, 242, 0.18));
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }

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

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

.section-head {
  max-width: 620px;
  margin: 0 0 56px;
}

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--text); }
.section-head p { font-size: 1.05rem; }

/* ---------- Background texture ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(227, 242, 245, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 242, 245, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
}

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  pointer-events: none;
}

.bg-glow--one {
  width: 560px; height: 560px;
  top: -180px; left: -140px;
  background: var(--blue);
}

.bg-glow--two {
  width: 480px; height: 480px;
  top: 220px; right: -160px;
  background: var(--cyan);
  opacity: 0.22;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #04070d;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(62, 98, 241, 0.55);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

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

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

#header.is-scrolled {
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img { height: 30px; width: auto; }

.brand-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-word span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 190px 0 120px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted-2);
}

.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--cyan); flex-shrink: 0; }

/* Hero visual — abstract data/warehouse graphic, built in pure CSS/SVG */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.hero-visual .ring--1 { inset: 0; }
.hero-visual .ring--2 { inset: 14%; border-color: var(--border-strong); }
.hero-visual .ring--3 { inset: 30%; border-style: dashed; }

.hero-visual .node {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px 2px rgba(98, 210, 242, 0.7);
}

.hero-visual .node--1 { top: 6%; left: 48%; }
.hero-visual .node--2 { top: 44%; left: 2%; background: var(--blue); box-shadow: 0 0 16px 2px rgba(62, 98, 241, 0.7); }
.hero-visual .node--3 { bottom: 10%; right: 8%; }
.hero-visual .node--4 { top: 20%; right: 4%; background: var(--blue); box-shadow: 0 0 16px 2px rgba(62, 98, 241, 0.7); }

.hero-visual .core {
  position: relative;
  width: 128px; height: 128px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.hero-visual .core img { height: 58px; width: auto; }

/* ---------- Stack strip ---------- */
.stack-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
}

.stack-strip .container {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.stack-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.stack-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
}

.badge--accent {
  border-color: transparent;
  background: var(--gradient-soft);
  color: var(--cyan);
}

.stack-strip + .stack-strip { border-top: none; }

/* ---------- Services ---------- */
.services { padding: 130px 0 100px; }

.pillar { margin-bottom: 64px; }
.pillar:last-child { margin-bottom: 0; }

.pillar-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.pillar-title {
  font-size: 1.05rem;
  color: var(--cyan);
  margin: 0;
}

.pillar-sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.card-icon svg { width: 22px; height: 22px; color: var(--cyan); }

.card h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin-bottom: 20px; }

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 5px 0;
}

.card-list svg {
  width: 14px; height: 14px;
  color: var(--blue);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---------- Why us ---------- */
.why { padding: 100px 0; background: var(--ink); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.stat { display: flex; flex-direction: column; gap: 8px; }

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 220px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.why-item {
  display: flex;
  gap: 18px;
}

.why-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-item h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
.why-item p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Process ---------- */
.process { padding: 130px 0 100px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--border-strong);
  z-index: 0;
}

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

.step-index {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--black);
  background: var(--gradient);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.step h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 40px 0 100px;
  padding: 60px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: var(--gradient);
  opacity: 0.14;
  filter: blur(90px);
  right: -120px;
  top: -160px;
  border-radius: 50%;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--text);
  margin-bottom: 6px;
  max-width: 480px;
}

.cta-band p { margin-bottom: 0; font-size: 1rem; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
#footer {
  padding: 56px 0 34px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand p {
  max-width: 300px;
  font-size: 0.9rem;
  margin-top: 14px;
  margin-bottom: 0;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--muted-2); }

.socials { display: flex; gap: 14px; }

.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
  color: var(--muted);
}

.socials a:hover { border-color: var(--cyan); color: var(--cyan); }
.socials svg { width: 16px; height: 16px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; margin: 0 auto; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process-grid::before { display: none; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(5, 7, 10, 0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-actions .btn--ghost.nav-cta { display: none; }
  .hero { padding: 150px 0 80px; }
  .service-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; text-align: left; }
  .footer-top { flex-direction: column; }
  .stack-strip .container { justify-content: flex-start; }
}
