/* =================================================================
   RankStellar — Coming Soon
   Design system: Navy / Orange / White. Manrope for display,
   Inter for body. Signature element: the "Business → AI Knowledge →
   Authority → Recommendation → Star" flow illustration.
   ================================================================= */

:root {
  /* ---- Brand colors (only these three, used at varying opacity) ---- */
  --navy: #0F172A;
  --orange: #FF6B00;
  --white: #FFFFFF;

  --navy-08: rgba(15, 23, 42, 0.08);
  --navy-12: rgba(15, 23, 42, 0.12);
  --navy-40: rgba(15, 23, 42, 0.4);
  --navy-60: rgba(15, 23, 42, 0.6);
  --navy-70: rgba(15, 23, 42, 0.7);

  --orange-10: rgba(255, 107, 0, 0.1);
  --orange-20: rgba(255, 107, 0, 0.2);
  --orange-35: rgba(255, 107, 0, 0.35);
  --orange-60: rgba(255, 107, 0, 0.6);

  /* ---- Type ---- */
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* ---- Layout ---- */
  --page-pad-x: clamp(24px, 6vw, 88px);
  --header-h: 96px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg { display: block; }

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

/* ============================= BACKGROUND LAYER ============================= */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.bg__glow--one {
  width: 46vw;
  height: 46vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, var(--orange-10), transparent 70%);
  animation: drift-one 26s ease-in-out infinite;
}

.bg__glow--two {
  width: 38vw;
  height: 38vw;
  bottom: -12vw;
  right: -8vw;
  background: radial-gradient(circle, var(--navy-08), transparent 70%);
  animation: drift-two 32s ease-in-out infinite;
}

@keyframes drift-one {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3vw, 4vw) scale(1.08); }
}
@keyframes drift-two {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3vw, -3vw) scale(1.05); }
}

.bg__mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.mesh-lines line {
  stroke: var(--navy);
  stroke-opacity: 0.06;
  stroke-width: 1;
}
.mesh-nodes circle {
  fill: var(--navy);
  fill-opacity: 0.1;
}

.bg__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--navy-08);
  opacity: 0.6;
}
.bg__circle--a { width: 220px; height: 220px; top: 12%; left: 6%; animation: float-slow 18s ease-in-out infinite; }
.bg__circle--b { width: 120px; height: 120px; top: 62%; left: 18%; animation: float-slow 22s ease-in-out infinite reverse; }
.bg__circle--c { width: 70px;  height: 70px;  top: 30%; left: 40%; animation: float-slow 16s ease-in-out infinite; }

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

.bg__star {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 6px 1px var(--orange-60);
  animation: twinkle 4.5s ease-in-out infinite;
  animation-delay: var(--delay);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.4); }
}

@media (max-width: 720px) {
  .bg__mesh { opacity: 0.3; }
  .bg__circle--c { display: none; }
}

/* ============================= HEADER ============================= */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 32px var(--page-pad-x) 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo__mark {
  width: 22px;
  height: 22px;
  color: var(--orange);
  display: flex;
}
.logo__mark svg { width: 100%; height: 100%; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

/* ============================= HERO LAYOUT ============================= */
.hero {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 24px;
  min-height: calc(100vh - var(--header-h));
  padding: 24px var(--page-pad-x) 48px;
}

/* ---------- Content column ---------- */
.hero__content {
  max-width: 620px;
  padding-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 100px;
  background: var(--orange-10);
  border: 1px solid var(--orange-20);
  color: var(--orange);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  animation: fade-up 0.7s var(--ease) both;
}
.badge__icon { width: 13px; height: 13px; color: var(--orange); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-40);
  margin-bottom: 18px;
  animation: fade-up 0.7s var(--ease) 0.06s both;
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 26px;
  animation: fade-up 0.75s var(--ease) 0.12s both;
}

.subtext {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.65;
  color: var(--navy-70);
  max-width: 54ch;
  margin-bottom: 20px;
  animation: fade-up 0.75s var(--ease) 0.18s both;
}

.launch-note {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  margin-bottom: 40px;
  padding-left: 16px;
  border-left: 2px solid var(--orange);
  animation: fade-up 0.75s var(--ease) 0.24s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- CTAs ---------- */
.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fade-up 0.75s var(--ease) 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1px 2px var(--navy-12);
}
.btn--primary:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px var(--orange-35);
}
.btn--primary:active { transform: translateY(0); }

.btn__arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}
.btn--primary:hover .btn__arrow { transform: translateX(3px); }

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy-12);
}
.btn--secondary:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ---------- Platform strip ---------- */
.platform-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy-40);
  letter-spacing: 0.01em;
  animation: fade-up 0.75s var(--ease) 0.36s both;
}
.platform-row .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--navy-12);
}

/* ============================= ILLUSTRATION ============================= */
.hero__illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 560px;
}

.flow {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 400 / 720;
  animation: fade-in 1s var(--ease) 0.2s both;
}

@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}

.flow__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  overflow: visible;
}

.flow__path-base {
  fill: none;
  stroke: var(--navy-08);
  stroke-width: 1.5;
}

.flow__path-animated {
  fill: none;
  stroke: url(#flowGradient);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: dash-flow 5s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -160; }
}

.flow__pulse {
  fill: var(--orange);
  filter: drop-shadow(0 0 5px var(--orange-60));
}

/* ---- Nodes ---- */
.node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
}

.node--1 { top: 95.3%; left: 24%; flex-direction: row; }
.node--2 { top: 69.5%; left: 78%; flex-direction: row-reverse; }
.node--3 { top: 50%;   left: 26%; flex-direction: row; }
.node--4 { top: 30.5%; left: 78%; flex-direction: row-reverse; }
.node--5 { top: 11.1%; left: 50%; flex-direction: column; gap: 12px; }

.node__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: node-in 0.6s var(--ease) both;
}
.node--1 .node__dot { animation-delay: 0.4s; }
.node--2 .node__dot { animation-delay: 0.6s; }
.node--3 .node__dot { animation-delay: 0.8s; }
.node--4 .node__dot { animation-delay: 1.0s; }
.node--5 .node__dot { animation-delay: 1.2s; }

@keyframes node-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.node__dot--navy {
  background: var(--white);
  border: 1.5px solid var(--navy-12);
  color: var(--navy);
  box-shadow: 0 4px 14px -6px var(--navy-12);
}
.node__dot--navy svg { width: 22px; height: 22px; }

.node__dot--star {
  width: 64px;
  height: 64px;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 0 0 6px var(--orange-10), 0 10px 30px -8px var(--orange-35);
  animation: node-in 0.6s var(--ease) 1.2s both, star-pulse 2.6s ease-in-out 2s infinite;
}
.node__dot--star svg { width: 28px; height: 28px; }

@keyframes star-pulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--orange-10), 0 10px 30px -8px var(--orange-35); }
  50% { box-shadow: 0 0 0 12px var(--orange-10), 0 14px 36px -6px var(--orange-60); }
}

.node__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--navy-60);
  white-space: nowrap;
}
.node__label--star {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 64px;
  }
  .hero__illustration {
    order: -1;
    min-height: 440px;
    margin-bottom: 8px;
    padding: 0 12px;
    overflow: hidden;
  }
  .flow { width: min(100%, 340px); }
  .hero__content { max-width: 100%; }
}

@media (max-width: 640px) {
  :root { --header-h: 76px; }
  .site-header { padding-top: 24px; }
  .hero { gap: 4px; padding-top: 4px; }

  .hero__illustration {
    min-height: 0;
    padding: 12px 20px 8px;
    margin-bottom: -8px;
  }
  .flow { width: min(88%, 300px); }

  .node { gap: 8px; }
  .node--1 { left: 26%; }
  .node--2 { left: 76%; }
  .node--3 { left: 28%; }
  .node--4 { left: 76%; }

  .node__label { font-size: 0.68rem; letter-spacing: -0.01em; }
  .node__label--star { font-size: 0.78rem; }
  .node__dot { width: 38px; height: 38px; }
  .node__dot svg { width: 16px; height: 16px; }
  .node__dot--star { width: 48px; height: 48px; }
  .node__dot--star svg { width: 20px; height: 20px; }

  .cta-row { gap: 12px; }
  .btn { height: 48px; padding: 0 20px; font-size: 0.9rem; }
  .launch-note { margin-bottom: 32px; }
}

@media (max-width: 400px) {
  .hero__illustration { padding: 8px 10px 4px; }
  .flow { width: min(92%, 250px); }
  .node { gap: 6px; }
  .node--1 { left: 28%; }
  .node--2 { left: 74%; }
  .node--3 { left: 30%; }
  .node--4 { left: 74%; }
  .node__label { font-size: 0.62rem; }
  .node__label--star { font-size: 0.72rem; }
  .node__dot { width: 34px; height: 34px; }
  .node__dot svg { width: 14px; height: 14px; }
  .node__dot--star { width: 44px; height: 44px; }
  .node__dot--star svg { width: 18px; height: 18px; }
}

/* ============================= FOOTER ============================= */
.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px var(--page-pad-x) 32px;
  font-size: 0.82rem;
  color: var(--navy-40);
  border-top: 1px solid var(--navy-08);
}
.site-footer a { transition: color 0.25s var(--ease); }
.site-footer a:hover { color: var(--orange); }

/* ============================= REDUCED MOTION ============================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}