/* ============================================================
   Tarang Systems — site styles
   Theme tokens live here; edit --accent / --accent-2 to rebrand.
   ============================================================ */
:root {
  --bg:        #070b14;
  --bg-soft:   #0c1322;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --text:      #e8edf6;
  --text-dim:  #9aa7bd;
  --text-mute: #6b7892;
  --accent:    #00d4ff;
  --accent-2:  #8b5cf6;
  --ok:        #34d399;
  --grad:      linear-gradient(100deg, var(--accent), var(--accent-2));
  --radius:    18px;
  --maxw:      1140px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand__name { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 600; }

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

/* ---------- Background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; top: -240px; left: 50%;
  width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,212,255,0.18), transparent 70%),
              radial-gradient(closest-side, rgba(139,92,246,0.18), transparent 70%);
  background-position: 30% 40%, 70% 50%;
  background-repeat: no-repeat;
  filter: blur(20px);
  pointer-events: none;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-size: 1.25rem; letter-spacing: -0.01em; }
.brand__sub { color: var(--text-dim); font-weight: 500; margin-left: 2px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--text-dim); font-size: 0.94rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text) !important;
}
.nav__cta:hover { border-color: var(--accent); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .3s, opacity .2s; border: 1px solid transparent;
}
.btn--primary { background: var(--grad); color: #051018; box-shadow: 0 8px 30px rgba(0,212,255,0.22); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,212,255,0.32); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 40px; }
.hero__inner { text-align: center; max-width: 880px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 700; letter-spacing: -0.02em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { margin: 26px auto 0; max-width: 680px; font-size: 1.12rem; color: var(--text-dim); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__stats {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 56px;
}
.stat {
  flex: 1; min-width: 180px; max-width: 250px;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); text-align: left;
}
.stat__num { display: block; font-family: 'Space Grotesk'; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat__label { font-size: 0.9rem; color: var(--text-mute); }

/* ---------- Pipeline ---------- */
.pipeline {
  display: flex; align-items: stretch; justify-content: center; gap: 8px;
  margin-top: 64px; padding: 30px;
  border: 1px solid var(--border); border-radius: 24px; background: var(--surface);
  flex-wrap: wrap;
}
.pipeline__node {
  flex: 1; min-width: 180px; text-align: center;
  padding: 24px 18px; border-radius: 16px;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pipeline__node--active { border-color: rgba(0,212,255,0.5); box-shadow: 0 0 40px rgba(0,212,255,0.12) inset; }
.pipeline__icon { font-size: 1.8rem; }
.pipeline__title { font-family: 'Space Grotesk'; font-weight: 600; }
.pipeline__meta { font-size: 0.8rem; color: var(--text-mute); }
.pipeline__flow { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.pipeline__flow span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  opacity: .35; animation: flow 1.4s infinite var(--ease);
}
.pipeline__flow span:nth-child(2) { animation-delay: .2s; }
.pipeline__flow span:nth-child(3) { animation-delay: .4s; }
@keyframes flow { 0%,100% { opacity:.25; transform: scale(.8);} 50% { opacity:1; transform: scale(1.15);} }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.02em; }
.section__sub { margin-top: 18px; color: var(--text-dim); font-size: 1.06rem; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 30px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(0,212,255,0.35); background: var(--surface-2); }
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--border); margin-bottom: 18px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.97rem; }
.card--plain { background: transparent; }

/* ---------- Feature (LogForge) ---------- */
.section--feature { background:
  radial-gradient(ellipse 60% 80% at 100% 0%, rgba(139,92,246,0.08), transparent 60%),
  radial-gradient(ellipse 60% 80% at 0% 100%, rgba(0,212,255,0.07), transparent 60%); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature__copy .section__title { text-align: left; }
.checklist { list-style: none; margin: 28px 0 32px; display: grid; gap: 14px; }
.checklist li {
  position: relative; padding-left: 32px; color: var(--text-dim); font-size: 1rem;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(52,211,153,0.14); color: var(--ok);
  font-size: 0.8rem; font-weight: 700;
}

/* ---------- Terminal ---------- */
.terminal {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: #060a12; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px; padding: 13px 16px;
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.terminal__bar span:nth-child(1){ background:#ff5f57; } .terminal__bar span:nth-child(2){ background:#febc2e; } .terminal__bar span:nth-child(3){ background:#28c840; }
.terminal__bar em { margin-left: auto; font-style: normal; color: var(--text-mute); font-size: 0.82rem; }
.terminal__body { padding: 22px; font-family: 'Space Grotesk', ui-monospace, monospace; font-size: 0.86rem; line-height: 1.85; overflow-x: auto; color: var(--text-dim); }
.c-dim { color: var(--text-mute); } .c-cyan { color: var(--accent); } .c-vio { color: var(--accent-2); } .c-ok { color: var(--ok); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  padding: 30px 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); position: relative; overflow: hidden;
}
.step__num {
  font-family: 'Space Grotesk'; font-size: 2.4rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 0.94rem; }

.section--why { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015)); }

/* ---------- CTA ---------- */
.section--cta { padding-bottom: 120px; }
.cta__card {
  text-align: center; padding: 64px 40px; border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0,212,255,0.1), transparent 70%),
    var(--surface);
  position: relative; overflow: hidden;
}
.cta__contacts { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin: 30px 0 28px; }
.contact-item { text-align: left; }
.contact-item__label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); margin-bottom: 4px; }
.contact-item__value { display: inline-block; font-family: 'Space Grotesk'; font-size: 1.05rem; color: var(--text); transition: color .2s; }
a.contact-item__value:hover { color: var(--accent); }
.contact-item__value em { color: var(--text-mute); font-style: normal; font-size: 0.85rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg-soft); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__tag { color: var(--text-dim); }
.footer__copy { color: var(--text-mute); font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature__copy .section__title { text-align: left; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(7,11,20,0.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__cta { text-align: center; margin-top: 12px; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2){ opacity: 0; }
  .nav__toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 72px 0; }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .pipeline__flow { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pipeline__flow span { animation: none; }
  html { scroll-behavior: auto; }
}
