/* ============================================================
   SDLC Life Cycle Application — Marketing Site
   Design tokens, global styles, components, animations
   ============================================================ */

:root {
  /* Palette — deep tech / aurora */
  --bg-0: #07091a;
  --bg-1: #0d1130;
  --bg-2: #131945;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);

  --text-0: #ffffff;
  --text-1: #e7eaff;
  --text-2: #a8aed4;
  --text-3: #6b7099;

  /* Accents */
  --c-design: #7c5cff;   /* violet */
  --c-dev:    #00d4ff;   /* cyan  */
  --c-qa:     #ffb020;   /* amber */
  --c-prod:   #00e5a8;   /* mint  */
  --c-ops:    #ff5d8f;   /* pink (current product) */

  --grad-hero: radial-gradient(1200px 600px at 20% -10%, rgba(124,92,255,.35), transparent 60%),
               radial-gradient(900px 500px at 90% 10%, rgba(0,212,255,.25), transparent 60%),
               radial-gradient(700px 400px at 50% 100%, rgba(0,229,168,.18), transparent 60%);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-1: 0 10px 30px rgba(0,0,0,.35);
  --shadow-2: 0 20px 60px rgba(0,0,0,.45);
  --shadow-glow: 0 0 40px rgba(124,92,255,.35);

  --maxw: 1180px;
  --t-fast: 180ms;
  --t-med:  320ms;
  --t-slow: 600ms;
  --ease:   cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text-0); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin: 0 0 .5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { color: var(--text-2); margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background aurora ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2;
  background: var(--grad-hero);
  pointer-events: none;
}
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 60px);
  mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 75%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7,9,26,.55);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -.01em; color: var(--text-0);
}
.brand__logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: conic-gradient(from 180deg, var(--c-design), var(--c-dev), var(--c-prod), var(--c-ops), var(--c-design));
  box-shadow: var(--shadow-glow);
  animation: spin 14s linear infinite;
}
.brand__name strong { color: #fff; }
.brand__name span  { color: var(--text-3); margin-left: 6px; font-weight: 400; }

.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__links a {
  color: var(--text-2);
  padding: 8px 14px; border-radius: 999px;
  font-size: .95rem;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__links a:hover { color: #fff; background: var(--surface); }
.nav__links a.is-active {
  color: #fff; background: var(--surface-2);
  border: 1px solid var(--border-strong);
}
.nav__cta {
  background: linear-gradient(135deg, var(--c-design), var(--c-dev));
  color: #fff !important;
  border: 0 !important;
  padding: 9px 18px !important;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(124,92,255,.35);
}
.nav__cta:hover { transform: translateY(-1px); }
.nav__burger { display:none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: #fff;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { transform: translateY(-2px); background: var(--surface-2); }
.btn--primary {
  background: linear-gradient(135deg, var(--c-design), var(--c-dev));
  border: 0;
  box-shadow: 0 16px 40px rgba(124,92,255,.35);
}
.btn--primary:hover { box-shadow: 0 22px 52px rgba(0,212,255,.4); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 60px;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: .85rem;
  margin-bottom: 26px;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-prod);
  box-shadow: 0 0 12px var(--c-prod);
  animation: pulse 1.8s ease-in-out infinite;
}
.hero h1 {
  background: linear-gradient(180deg, #fff 0%, #b8bee8 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--c-design), var(--c-dev) 50%, var(--c-prod));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 760px; margin: 0 auto 36px;
  font-size: 1.18rem; color: var(--text-2);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Lifecycle ring ---------- */
.lifecycle {
  position: relative;
  margin: 90px auto 60px;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1 / 1;
}
.lifecycle__core {
  position: absolute; inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(124,92,255,.35), rgba(0,212,255,.10) 60%, transparent 80%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-2);
}
.lifecycle__core span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
  color: #fff;
  padding: 0 18px;
}
.lifecycle__ring {
  position: absolute; inset: 12%;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.lifecycle__ring--inner {
  inset: 24%;
  animation-duration: 40s;
  animation-direction: reverse;
  border-style: dotted;
  opacity: .6;
}
.node {
  --size: 130px;
  position: absolute;
  width: var(--size); height: var(--size);
  margin-left: calc(var(--size) / -2);
  margin-top: calc(var(--size) / -2);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  background: rgba(13,17,48,.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  animation: floaty 6s ease-in-out infinite;
}
.node:hover { transform: scale(1.08); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.node .ico { font-size: 1.6rem; margin-bottom: 4px; }
.node .nm  { font-weight: 600; color: #fff; font-size: .95rem; }
.node .st  { font-size: .72rem; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }

.node--design { box-shadow: 0 0 0 1px rgba(124,92,255,.6), 0 20px 50px rgba(124,92,255,.25); }
.node--dev    { box-shadow: 0 0 0 1px rgba(0,212,255,.6), 0 20px 50px rgba(0,212,255,.25); animation-delay: -1s; }
.node--qa     { box-shadow: 0 0 0 1px rgba(255,176,32,.6), 0 20px 50px rgba(255,176,32,.20); animation-delay: -2s; }
.node--prod   { box-shadow: 0 0 0 1px rgba(0,229,168,.6), 0 20px 50px rgba(0,229,168,.25); animation-delay: -3s; }
.node--ops    {
  box-shadow: 0 0 0 2px rgba(255,93,143,.85), 0 24px 60px rgba(255,93,143,.4);
  animation-delay: -4s;
}
.node--ops::after {
  content: "LIVE";
  position: absolute; top: -10px; right: -8px;
  background: var(--c-ops);
  color: #fff; font-size: .65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  letter-spacing: .12em;
  box-shadow: 0 6px 18px rgba(255,93,143,.55);
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; position: relative; }
.section__head { text-align: center; margin-bottom: 50px; }
.section__head .eyebrow {
  display: inline-block;
  font-size: .78rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 14px;
}
.section__head h2 {
  background: linear-gradient(180deg, #fff 0%, #b8bee8 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--5 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.06), transparent 40%);
  opacity: 0; transition: opacity var(--t-med);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card .badge {
  display: inline-block;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
}
.card .badge--live   { color: var(--c-prod); border-color: rgba(0,229,168,.5); background: rgba(0,229,168,.08); }
.card .badge--soon   { color: var(--c-qa);   border-color: rgba(255,176,32,.45); background: rgba(255,176,32,.08); }
.card .badge--planned{ color: var(--text-3); border-color: var(--border); }

.card--suite {
  cursor: pointer;
}
.card--suite .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 600;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
}
.card--suite[data-suite="design"] { border-top: 2px solid var(--c-design); }
.card--suite[data-suite="dev"]    { border-top: 2px solid var(--c-dev); }
.card--suite[data-suite="qa"]     { border-top: 2px solid var(--c-qa); }
.card--suite[data-suite="prod"]   { border-top: 2px solid var(--c-prod); }
.card--suite[data-suite="ops"]    {
  border-top: 2px solid var(--c-ops);
  background: linear-gradient(180deg, rgba(255,93,143,.10), rgba(255,255,255,.02));
}

/* ---------- Lists ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--text-1);
  border-bottom: 1px dashed var(--border);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-dev);
  box-shadow: 0 0 10px var(--c-dev);
}
.feature-list--done li::before { background: var(--c-prod); box-shadow: 0 0 10px var(--c-prod); }
.feature-list--soon li::before { background: var(--c-qa);   box-shadow: 0 0 10px var(--c-qa); }
.feature-list--plan li::before { background: var(--text-3); box-shadow: none; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin: 40px auto;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2,1fr); } }
.stat__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem; font-weight: 600;
  background: linear-gradient(135deg, var(--c-design), var(--c-dev));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat__lbl { color: var(--text-3); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Timeline / Roadmap ---------- */
.timeline {
  position: relative;
  margin: 40px auto;
  padding-left: 32px;
  max-width: 920px;
}
.timeline::before {
  content: ""; position: absolute;
  left: 8px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--c-prod), var(--c-qa), var(--text-3));
  border-radius: 2px;
}
.tl-item {
  position: relative;
  padding: 18px 0 24px 22px;
  margin-bottom: 8px;
}
.tl-item::before {
  content: ""; position: absolute;
  left: -29px; top: 26px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-0);
  border: 3px solid var(--c-prod);
  box-shadow: 0 0 16px var(--c-prod);
}
.tl-item--soon::before    { border-color: var(--c-qa); box-shadow: 0 0 16px var(--c-qa); }
.tl-item--planned::before { border-color: var(--text-3); box-shadow: none; background: var(--bg-1); }
.tl-item h3 { margin-bottom: 4px; }
.tl-item .when {
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-3);
}
.tl-item .card { margin-top: 14px; }

/* ---------- Devops phase tabs ---------- */
.tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto; margin-right: auto;
}
.tab {
  padding: 10px 20px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--text-2);
  font-size: .92rem;
  transition: all var(--t-fast);
}
.tab.is-active {
  background: linear-gradient(135deg, var(--c-design), var(--c-dev));
  color: #fff;
  box-shadow: 0 10px 24px rgba(124,92,255,.35);
}
.tab-panel { display: none; animation: fadeUp var(--t-slow) var(--ease); }
.tab-panel.is-active { display: block; }

/* ---------- Progress bars ---------- */
.bar {
  height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  margin: 8px 0 16px;
}
.bar__fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--c-prod), var(--c-dev));
  width: 0;
  transition: width 1.4s var(--ease);
}
.bar__fill--qa { background: linear-gradient(90deg, var(--c-qa), var(--c-design)); }
.bar__fill--plan { background: linear-gradient(90deg, var(--text-3), var(--text-2)); }

/* ---------- CTA banner ---------- */
.cta-banner {
  margin: 80px auto;
  padding: 50px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  background:
    radial-gradient(600px circle at 20% 0%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(600px circle at 80% 100%, rgba(0,212,255,.30), transparent 60%),
    rgba(255,255,255,.03);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  text-align: center;
  font-size: .9rem;
}
.footer a { color: var(--text-2); }
.footer a:hover { color: #fff; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* ---------- Animations ---------- */
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes pulse  {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%     { transform: scale(1.4); opacity: .65; }
}
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Flow diagram ---------- */
.flow {
  display: flex; align-items: stretch; gap: 14px;
  overflow-x: auto;
  padding: 30px 6px;
  scroll-snap-type: x mandatory;
}
.flow__step {
  flex: 0 0 220px;
  scroll-snap-align: start;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  position: relative;
}
.flow__step .step-no {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem; letter-spacing: .2em; color: var(--text-3);
}
.flow__step h4 { margin: 8px 0 6px; color: #fff; }
.flow__step + .flow__step::before {
  content: "→";
  position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 1.4rem;
}
.flow__step[data-suite="design"] { border-color: rgba(124,92,255,.45); }
.flow__step[data-suite="dev"]    { border-color: rgba(0,212,255,.45); }
.flow__step[data-suite="qa"]     { border-color: rgba(255,176,32,.45); }
.flow__step[data-suite="prod"]   { border-color: rgba(0,229,168,.45); }
.flow__step[data-suite="ops"]    { border-color: rgba(255,93,143,.45); background: rgba(255,93,143,.07); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .hero { padding: 60px 0 30px; }
  .lifecycle { margin: 40px auto; }
  .node { --size: 100px; }
}
