/* RESET & VARIABLES */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c:    #00CCFF;
  --v:    #7B50FF;
  --g:    #00E8A0;
  --bg:   #030810;
  --bg2:  #060D1C;
  --card: rgba(6,12,26,0.82);
  --bd:   rgba(0,204,255,0.08);
  --bd2:  rgba(0,204,255,0.14);
  --text: #C8DEFF;
  --dim:  #5A7898;
  --dim2: #3A5472;
  --white: #EDF5FF;
}

html { scroll-behavior: smooth; font-size: 16px; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: clamp(20px, 5vw, 60px);
  z-index: 10001;
  padding: 12px 20px;
  background: var(--c);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 20px;
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}
body.custom-cursor { cursor: none; }
body.custom-cursor .btn-ghost,
body.custom-cursor .btn-primary,
body.custom-cursor .btn-lg,
body.custom-cursor .btn-outline,
body.custom-cursor .df { cursor: none; }

body:not(.custom-cursor) #cur,
body:not(.custom-cursor) #cur-ring { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  body.custom-cursor { cursor: auto; }
  body.custom-cursor #cur,
  body.custom-cursor #cur-ring { visibility: hidden; }
}

/* CURSOR */
#cur {
  position: fixed; width: 8px; height: 8px;
  background: var(--c); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s;
  box-shadow: 0 0 10px var(--c);
  mix-blend-mode: screen;
}
#cur-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1px solid rgba(0,204,255,.3); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .1s ease-out, width .25s, height .25s;
}
body.custom-cursor:has(a:hover) #cur,
body.custom-cursor:has(button:hover) #cur { width: 14px; height: 14px; }

/* CANVAS BG */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

/* LAYOUT */
.page { position: relative; z-index: 1; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(3,8,16,.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,204,255,.06);
  transition: background .3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-mark svg { display: block; }
.nav-logo-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 22px;
  letter-spacing: 3px;
  background: linear-gradient(120deg, #fff 0%, #c8dfff 50%, #9060ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--dim); font-size: 14px; font-weight: 500;
  text-decoration: none; letter-spacing: .3px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-logo:focus-visible,
.nav-links a:focus-visible,
.nav-cta a:focus-visible,
.btn-ghost:focus-visible,
.btn-primary:focus-visible,
.btn-lg:focus-visible,
.btn-outline:focus-visible,
.df:focus-visible,
.footer-logo:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 4px;
  border-radius: 6px;
}
.nav-cta {
  display: flex; align-items: center; gap: 12px;
}
.btn-ghost {
  color: var(--dim); font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 500;
  background: none; border: none; cursor: pointer;
  padding: 8px 16px; border-radius: 8px;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,.05); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--c), var(--v));
  color: #fff; font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 9px 20px; border-radius: 9px;
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 0 24px rgba(0,204,255,.18);
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: 28px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  background: rgba(0,204,255,.06);
  border: 1px solid rgba(0,204,255,.2);
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px;
  color: var(--c); opacity: .85;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c); flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--c);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--white);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c) 0%, var(--v) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px; font-weight: 400; line-height: 1.75;
  color: var(--dim); max-width: 460px;
}

.hero-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.btn-lg {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--c), var(--v));
  color: #fff; font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: 11px;
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 32px rgba(0,204,255,.22);
}
.btn-lg:hover { opacity: .9; transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,204,255,.05);
  border: 1px solid rgba(0,204,255,.2);
  color: var(--text); font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 500;
  padding: 12px 24px; border-radius: 11px;
  cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(0,204,255,.1); border-color: rgba(0,204,255,.35); }

.hero-stats {
  display: flex; gap: 32px; padding-top: 8px;
}
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--white);
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 2px; color: var(--dim2);
  text-transform: uppercase;
}

.hero-mark {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
#hero-canvas {
  display: block;
  width: clamp(300px, 45vw, 460px);
  height: clamp(300px, 45vw, 460px);
  filter: drop-shadow(0 0 40px rgba(0,180,255,.08));
}

/* SECTION COMMONS */
section { padding: clamp(80px, 12vh, 120px) 0; }

.sec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 5px;
  color: var(--c); opacity: .55;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sec-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1px; color: var(--white);
  margin-bottom: 18px;
}
.sec-sub {
  font-size: 16px; line-height: 1.8;
  color: var(--dim); max-width: 540px;
}

/* HOW IT WORKS */
.how {
  position: relative;
}
.how::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,204,255,.04), transparent),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(123,80,255,.03), transparent);
  pointer-events: none;
}
.how-header { text-align: center; margin-bottom: 64px; }
.how-header .sec-sub { margin: 0 auto; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--bd);
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--bd);
}
.step {
  background: var(--bg2);
  padding: 40px 32px;
  position: relative;
  transition: background .3s;
}
.step:hover { background: rgba(8,16,34,.95); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 3px;
  color: var(--c); opacity: .35;
  margin-bottom: 20px;
}
.step-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--white); margin-bottom: 12px;
}
.step p {
  font-size: 14px; line-height: 1.8; color: var(--dim);
}
.step-accent {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
}
.step-icon--c { background: rgba(0,204,255,.1); }
.step-icon--v { background: rgba(123,80,255,.1); }
.step-icon--g { background: rgba(0,232,160,.1); }
.step-accent--c { background: linear-gradient(90deg, var(--c), transparent); }
.step-accent--v { background: linear-gradient(90deg, var(--v), transparent); }
.step-accent--g { background: linear-gradient(90deg, var(--g), transparent); }

/* LIVE FLOW DEMO */
.demo {
  position: relative;
}
.demo-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px; align-items: center;
}
.demo-content { display: flex; flex-direction: column; gap: 28px; }

.demo-features {
  display: flex; flex-direction: column; gap: 12px;
}
.df {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: rgba(4,10,22,.6);
  border: 1px solid var(--bd);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.df:hover { border-color: var(--bd2); background: rgba(6,14,28,.7); }
.df-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.df-icon--c { background: rgba(0,204,255,.1); }
.df-icon--v { background: rgba(123,80,255,.1); }
.df-icon--g { background: rgba(0,232,160,.1); }
.df-icon--num { font-size: 14px; }
.df-text h4 {
  font-size: 14px; font-weight: 600;
  color: var(--white); margin-bottom: 4px;
}
.df-text p {
  font-size: 12px; line-height: 1.7; color: var(--dim);
}

/* Flow canvas card */
.demo-canvas-wrap {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.demo-canvas-bar {
  padding: 12px 18px;
  border-bottom: 1px solid var(--bd);
  display: flex; align-items: center; gap: 8px;
  background: rgba(4,8,18,.8);
}
.dot-r { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.dot-y { width: 10px; height: 10px; border-radius: 50%; background: #FEBC2E; }
.dot-g { width: 10px; height: 10px; border-radius: 50%; background: #28C840; }
.bar-title {
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--dim2);
}
.demo-canvas-body {
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
  min-height: 260px;
}
#flow-canvas {
  display: block; max-width: 100%;
}
.flow-canvas-responsive {
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* FEATURES GRID */
.features { position: relative; }
.features-header { margin-bottom: 52px; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.feat-card:hover { border-color: var(--bd2); transform: translateY(-3px); }
.feat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  opacity: 0; transition: opacity .3s;
}
.feat-card:hover::before { opacity: 1; }

.feat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feat-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
}
.feat-card p {
  font-size: 14px; line-height: 1.8; color: var(--dim);
}
.feat-tag {
  display: inline-flex; margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 2px;
  padding: 4px 10px; border-radius: 6px;
}
.feat-card--c { border-top: 2px solid rgba(0,204,255,.25); }
.feat-card--v { border-top: 2px solid rgba(123,80,255,.25); }
.feat-card--g { border-top: 2px solid rgba(0,232,160,.25); }
.feat-card--c-alt { border-top: 2px solid rgba(0,204,255,.2); }
.feat-card--v-alt { border-top: 2px solid rgba(123,80,255,.2); }
.feat-card--g-alt { border-top: 2px solid rgba(0,232,160,.2); }
.feat-icon--c { background: rgba(0,204,255,.1); }
.feat-icon--v { background: rgba(123,80,255,.1); }
.feat-icon--g { background: rgba(0,232,160,.1); }
.feat-icon--c-alt { background: rgba(0,204,255,.08); }
.feat-icon--v-alt { background: rgba(123,80,255,.08); }
.feat-icon--g-alt { background: rgba(0,232,160,.08); }
.feat-tag--c { background: rgba(0,204,255,.08); color: var(--c); }
.feat-tag--v { background: rgba(123,80,255,.08); color: var(--v); }
.feat-tag--g { background: rgba(0,232,160,.08); color: var(--g); }
.feat-tag--c-dim { background: rgba(0,204,255,.06); color: rgba(0,204,255,.7); }
.feat-tag--v-dim { background: rgba(123,80,255,.06); color: rgba(123,80,255,.7); }
.feat-tag--g-dim { background: rgba(0,232,160,.06); color: rgba(0,232,160,.7); }
.reveal-delay-06 { transition-delay: .06s; }
.reveal-delay-08 { transition-delay: .08s; }
.reveal-delay-10 { transition-delay: .1s; }
.reveal-delay-12 { transition-delay: .12s; }
.reveal-delay-15 { transition-delay: .15s; }
.reveal-delay-16 { transition-delay: .16s; }
.reveal-delay-18 { transition-delay: .18s; }

/* CODE BLOCK */
.code-section {
  position: relative;
}
.code-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: center;
}
.code-wrap {
  background: rgba(2,6,14,.9);
  border: 1px solid var(--bd);
  border-radius: 16px;
  overflow: hidden;
}
.code-bar {
  padding: 12px 18px;
  border-bottom: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(4,8,16,.8);
}
.code-file {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--dim2);
  display: flex; align-items: center; gap: 8px;
}
.code-lang {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 2px;
  color: var(--c); opacity: .5;
}
.code-sec-sub { margin-bottom: 28px; }
.code-steps { display: flex; flex-direction: column; gap: 12px; }
.code-inline { font-size: 11px; color: var(--c); font-family: 'JetBrains Mono', monospace; }
.code-inline-lg { font-size: 12px; color: var(--c); font-family: 'JetBrains Mono', monospace; }
.cta-label { text-align: center; }
pre {
  padding: 24px 22px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.9;
}
.kw   { color: #7B70FF; }
.fn   { color: #00CCFF; }
.str  { color: #00E8A0; }
.cmt  { color: #2E4A68; }
.cls  { color: #FFB060; }
.num  { color: #FF8080; }
.ann  { color: #B47DFF; }

/* INTEGRATIONS */
.integrations {
  position: relative; overflow: hidden;
}
.integrations::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(123,80,255,.04), transparent);
  pointer-events: none;
}
.int-header { text-align: center; margin-bottom: 48px; }
.int-header .sec-sub { margin: 0 auto; }

.int-track-wrap { overflow: hidden; position: relative; }
.int-track-wrap::before, .int-track-wrap::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; width: 120px; z-index: 2;
}
.int-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.int-track-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}
.int-track {
  display: flex; gap: 16px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}
.int-track:hover { animation-play-state: paused; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.int-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: rgba(6,12,26,.8);
  border: 1px solid var(--bd);
  border-radius: 40px;
  white-space: nowrap;
  font-size: 13px; font-weight: 500;
  color: var(--dim);
  transition: border-color .2s;
}
.int-pill:hover { border-color: var(--bd2); }
.int-pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
}

/* CTA */
.cta-section {
  padding: clamp(80px, 12vh, 120px) 0;
}
.cta-inner {
  text-align: center;
  padding: 80px 40px;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 24px;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(0,204,255,.06), transparent),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(123,80,255,.05), transparent);
  pointer-events: none;
}
.cta-inner * { position: relative; }
.cta-inner .sec-title { margin-bottom: 14px; }
.cta-inner .sec-sub { margin: 0 auto 36px; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* FOOTER */
footer {
  border-top: 1px solid var(--bd);
  padding: 48px 0 36px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: 3px;
  background: linear-gradient(120deg, #fff 0%, #c8dfff 50%, #9060ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-links {
  display: flex; gap: 28px; list-style: none;
}
.footer-links a {
  color: var(--dim2); font-size: 13px; text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1px; color: var(--dim2);
}

/* ANIMATIONS & SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner, .demo-inner, .code-inner { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  #hero-canvas { width: 260px; height: 260px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
