/* ==========================================================================
   Tejasvee Automation — Stylesheet
   Design tokens: near-black indigo ground, radiant gold + circuit teal accents
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (labels, data)
   ========================================================================== */

:root {
  /* Color */
  --bg:            #0A0C10;
  --bg-elevated:   #12151C;
  --bg-elevated-2: #181C25;
  --border:        rgba(245, 243, 238, 0.09);
  --border-strong: rgba(245, 243, 238, 0.16);
  --text:          #F5F3EE;
  --text-muted:    #9BA1AC;
  --text-faint:    #676E7A;
  --gold:          #E9B44C;
  --gold-soft:     rgba(233, 180, 76, 0.14);
  --gold-line:     rgba(233, 180, 76, 0.35);
  --teal:          #3FBFAE;
  --teal-soft:     rgba(63, 191, 174, 0.14);

  /* Type */
  --font-display: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --maxw: 1160px;
  --radius: 10px;
  --radius-sm: 6px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint radiant grid backdrop across the whole site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, var(--gold-soft), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, var(--teal-soft), transparent 55%);
  pointer-events: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px var(--gold-soft);
}

.text-muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #14110A;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(233, 180, 76, 0.55); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-arrow { transition: transform 0.18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 16, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 68px 0 0 0; background: var(--bg); flex-direction: column; justify-content: flex-start; padding: 40px 28px; gap: 26px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero h1 { margin: 18px 0 20px; }
.hero .lede { margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-proof {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-proof div { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }
.hero-proof strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); font-weight: 700; }

.hero-art { position: relative; }
.thread-svg { width: 100%; height: auto; }
.thread-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 7;
  animation: dash 22s linear infinite;
  opacity: 0.85;
}
@keyframes dash { to { stroke-dashoffset: -600; } }
.thread-node circle.node-dot { fill: var(--bg-elevated); stroke: var(--gold-line); stroke-width: 1.5; }
.thread-node circle.node-pulse { fill: var(--gold); animation: pulse 2.4s ease-in-out infinite; }
.thread-node:nth-child(2) circle.node-pulse { animation-delay: 0.4s; }
.thread-node:nth-child(3) circle.node-pulse { animation-delay: 0.8s; }
.thread-node:nth-child(4) circle.node-pulse { animation-delay: 1.2s; }
.thread-node:nth-child(5) circle.node-pulse { animation-delay: 1.6s; }
@keyframes pulse { 0%, 100% { opacity: 0.55; r: 3.2; } 50% { opacity: 1; r: 4.4; } }
.thread-label { font-family: var(--font-mono); font-size: 10.5px; fill: var(--text-muted); letter-spacing: 0.04em; }
.thread-label-num { font-family: var(--font-mono); font-size: 9.5px; fill: var(--text-faint); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- Section shells ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { margin-top: 14px; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 15%, rgba(255,255,255,0.015) 85%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--gold); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.card li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--text-muted); }
.card li svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px; stroke: var(--teal); }

.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); }

/* ---------- Process (numbered — real sequence) ---------- */
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.process-item:last-child { border-bottom: 1px solid var(--border); }
.process-num { font-family: var(--font-mono); color: var(--gold); font-size: 1.6rem; font-weight: 500; }
.process-body h3 { margin-bottom: 8px; }
.process-body p { color: var(--text-muted); max-width: 560px; }

/* ---------- Logic strip (mono ticker of automations) ---------- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-elevated);
}
.strip-track { display: inline-flex; gap: 44px; animation: scroll-strip 32s linear infinite; }
.strip span { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.03em; }
.strip span b { color: var(--teal); font-weight: 500; }
@keyframes scroll-strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Testimonial / Quote ---------- */
.quote-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  position: relative;
}
.quote-block p { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; }
.quote-cite { margin-top: 20px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-faint); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 18px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-elevated-2) 100%);
  border: 1px solid var(--border-strong);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.85fr 0.85fr 0.85fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 14px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.4rem; margin: 44px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 14px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--text); }
.legal-updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); margin-bottom: 8px; }
.legal-fill {
  background: var(--gold-soft);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.legal-callout {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.legal-callout svg { width: 20px; height: 20px; stroke: var(--gold); flex-shrink: 0; margin-top: 2px; }
.legal-callout p { margin-bottom: 0; font-size: 0.9rem; }
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.legal-toc a { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); }
.legal-toc a:hover { color: var(--gold); }

/* ---------- Page header (non-home pages) ---------- */
.page-header { padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 16px 0 14px; }

/* ---------- Services page specifics ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail .card-icon { margin-bottom: 22px; }
.service-detail h2 { margin-bottom: 14px; }
.service-outcomes { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.outcome { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.outcome svg { width: 18px; height: 18px; stroke: var(--teal); flex-shrink: 0; margin-top: 2px; }
.outcome strong { font-family: var(--font-display); font-size: 0.95rem; display: block; margin-bottom: 3px; }
.outcome span { color: var(--text-muted); font-size: 0.86rem; }
@media (max-width: 860px) { .service-detail { grid-template-columns: 1fr; } }

/* ---------- Pricing-style tiers (used on Services) ---------- */
.tier-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.tier-note svg { width: 20px; height: 20px; stroke: var(--gold); flex-shrink: 0; }

/* ---------- About page specifics ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

.origin-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .origin-block { grid-template-columns: 1fr; } }
.origin-mark { padding: 40px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); }
.origin-mark svg { width: 100%; height: auto; }
.origin-word { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.06em; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item svg { width: 20px; height: 20px; stroke: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-info-item strong { display: block; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 3px; }
.contact-info-item a, .contact-info-item span { color: var(--text-muted); font-size: 0.92rem; }
.contact-info-item a:hover { color: var(--gold); }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.field input, .field select, .field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-line); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-faint); }
#form-status { font-family: var(--font-mono); font-size: 0.85rem; min-height: 20px; }
#form-status[data-state="success"] { color: var(--teal); }
#form-status[data-state="error"] { color: #E27D6A; }

.faq-item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- utility ---------- */
.mt-64 { margin-top: 64px; }
.center-head { text-align: center; margin-left: auto; margin-right: auto; }
