/* SOFTRENA — Landing */
:root {
  --bg: #0a1620;
  --bg-2: #0f1f2e;
  --navy: #1e3a5f;
  --navy-2: #234861;
  --teal-dark: #2d6b7f;
  --teal: #5fb8c4;
  --teal-bright: #7dd3d8;
  --cream: #fbfdf0;
  --fg: #e8f3f5;
  --fg-dim: #94a8b8;
  --fg-mute: #5d7585;
  --line: rgba(125, 211, 216, 0.12);
  --line-2: rgba(125, 211, 216, 0.22);
  --grad: linear-gradient(135deg, #1e3a5f 0%, #2d6b7f 45%, #5fb8c4 100%);
  --grad-text: linear-gradient(120deg, #7dd3d8 0%, #5fb8c4 35%, #2d6b7f 80%);
  --shadow-teal: 0 20px 60px -20px rgba(95, 184, 196, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

.display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.03em; line-height: 1.05; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ============ NETWORK BACKGROUND ============ */
.net-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(95, 184, 196, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(45, 107, 127, 0.1), transparent 60%),
    var(--bg);
}
.net-bg canvas { width: 100%; height: 100%; opacity: 0.55; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  background: rgba(10, 22, 32, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 22, 32, 0.85);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
}
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-logo .wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.18em;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--fg-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--teal-bright); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--teal-bright);
  transition: right 0.3s;
}
.nav-links a:hover::after { right: 0; }
.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-bright);
  text-decoration: none;
  transition: all 0.2s;
  background: rgba(95, 184, 196, 0.05);
}
.nav-cta:hover {
  background: var(--teal);
  color: var(--bg);
  box-shadow: 0 0 30px rgba(95, 184, 196, 0.4);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 140px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 32px;
  background: rgba(95, 184, 196, 0.04);
  opacity: 0;
  animation: fadeUp 0.8s 0.1s forwards;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 12px var(--teal-bright);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-logo-orbit {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 8px;
  opacity: 0;
  animation: scaleIn 1s 0.2s forwards;
}
.hero-logo-orbit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(95, 184, 196, 0.3));
  animation: float 6s ease-in-out infinite;
}
.orbit-ring {
  position: absolute;
  inset: -20px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
}
.orbit-ring::before, .orbit-ring::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 12px var(--teal-bright);
}
.orbit-ring::before { top: -4px; left: 50%; }
.orbit-ring::after { bottom: -4px; right: 30%; background: var(--teal); }
.orbit-ring.r2 {
  inset: -40px;
  animation-duration: 45s;
  animation-direction: reverse;
  border-color: rgba(125, 211, 216, 0.1);
}
.orbit-ring.r2::before { background: var(--teal); }
.orbit-ring.r2::after { background: var(--navy-2); top: 20%; left: -4px; bottom: auto; right: auto; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 600;
  margin: 32px 0 24px;
  max-width: 1100px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero h1 .grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .strike {
  position: relative;
  display: inline-block;
}
.hero p.lead {
  font-size: 20px;
  color: var(--fg-dim);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.55s forwards;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}
.btn {
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--teal-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}
.btn-primary .arrow { transition: transform 0.25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--teal);
  background: rgba(95, 184, 196, 0.05);
}

.hero-stats {
  display: flex;
  gap: 64px;
  margin-top: 80px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}
.hero-stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat .lbl {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 4px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* ============ SECTIONS ============ */
section { position: relative; z-index: 1; padding: 120px 40px; }
.container { max-width: 1280px; margin: 0 auto; }

.section-head { margin-bottom: 64px; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--teal);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 800px;
}
.section-title .grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  font-size: 18px;
  color: var(--fg-dim);
  margin-top: 16px;
  max-width: 600px;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s, transform 0.8s; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  transition: background 0.3s;
  overflow: hidden;
  min-height: 280px;
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(95, 184, 196, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.service:hover::before { opacity: 1; }
.service:hover { background: var(--bg-2); }
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 32px;
  letter-spacing: 0.1em;
}
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--teal-bright);
}
.service h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service p { color: var(--fg-dim); font-size: 14px; line-height: 1.6; }
.service .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.service .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--fg-mute);
}

/* ============ PROCESS ============ */
.process {
  background: linear-gradient(180deg, transparent, rgba(45, 107, 127, 0.04), transparent);
}
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0, var(--line-2) 6px, transparent 6px, transparent 14px);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
}
.process-step .node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--teal-bright);
  margin-bottom: 24px;
  position: relative;
  transition: all 0.3s;
}
.process-step:hover .node {
  border-color: var(--teal);
  box-shadow: 0 0 30px rgba(95, 184, 196, 0.3);
  transform: scale(1.05);
}
.process-step .node::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.process-step h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.55;
}
.process-step .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  display: block;
}

/* ============ STACK ============ */
.stack-marquee {
  margin: 40px -40px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.stack-track {
  display: flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  width: max-content;
  align-items: center;
}
.stack-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  color: var(--fg-mute);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color 0.3s;
}
.stack-item:hover { color: var(--teal-bright); }
.stack-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.6;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ FEATURE / METRICS ============ */
.feature-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.4), rgba(95, 184, 196, 0.08));
  border: 1px solid var(--line-2);
  padding: 32px;
  overflow: hidden;
}
.code-block {
  background: rgba(10, 22, 32, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-dim);
  overflow: hidden;
}
.code-block .ln { display: flex; gap: 16px; }
.code-block .ln-no { color: var(--fg-mute); width: 16px; opacity: 0.5; }
.code-block .k { color: #7dd3d8; }
.code-block .s { color: #b8e0a8; }
.code-block .c { color: #5d7585; font-style: italic; }
.code-block .v { color: #d4a574; }
.code-block .f { color: #e8c08d; }

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.metric {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(95, 184, 196, 0.02);
}
.metric .v {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric .l { font-size: 13px; color: var(--fg-dim); margin-top: 4px; }

.feature-bullets {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-bullet {
  display: flex;
  align-items: start;
  gap: 14px;
}
.feature-bullet .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  background: rgba(95, 184, 196, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--teal-bright);
}
.feature-bullet .txt strong { display: block; margin-bottom: 4px; color: var(--fg); font-weight: 600; }
.feature-bullet .txt span { font-size: 14px; color: var(--fg-dim); }

/* terminal animated */
.terminal {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar .dot.r { background: #e57373; }
.terminal-bar .dot.y { background: #e0b85f; }
.terminal-bar .dot.g { background: #6bbf80; }
.terminal-bar .name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-mute);
  margin-left: 12px;
}
.cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--teal-bright);
  animation: blink 1s steps(2) infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(95, 184, 196, 0.02);
  transition: all 0.3s;
}
.testimonial:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}
.testimonial .quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 24px;
}
.testimonial .quote::before { content: '"'; color: var(--teal); font-size: 32px; font-family: 'Space Grotesk', sans-serif; line-height: 0; vertical-align: -8px; margin-right: 4px; }
.testimonial-by { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--cream);
}
.testimonial-by .name { font-weight: 600; font-size: 14px; }
.testimonial-by .role { font-size: 12px; color: var(--fg-mute); }

/* ============ CTA ============ */
.cta {
  text-align: center;
  padding: 100px 40px;
}
.cta-card {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.5), rgba(45, 107, 127, 0.2));
  border: 1px solid var(--line-2);
  border-radius: 32px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(95, 184, 196, 0.08), transparent 30%);
  animation: rotate 12s linear infinite;
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.cta p {
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 540px;
  margin: 0 auto 40px;
}

/* ============ FOOTER ============ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 64px 40px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--fg-dim); max-width: 320px; line-height: 1.6; }
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--fg-dim);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal-bright); }
.footer-bottom {
  max-width: 1280px;
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-mute);
  font-family: 'JetBrains Mono', monospace;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  section { padding: 80px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .process-track::before { display: none; }
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero { padding: 120px 20px 60px; }
  .hero-stats { flex-wrap: wrap; gap: 32px; justify-content: center; }
  .cta-card { padding: 48px 24px; }
}
