/* Vortav landing — dark only, tokens do app */
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --card: #111111;
  --card-2: #1a1a1a;
  --fg: #fafafa;
  --fg-sec: #a3a3a3;
  --fg-muted: #737373;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --accent: #37cd8f;
  --accent-hover: #23b97b;
  --accent-bright: #00d4aa;
  --purple: #7a3ff1;
  --blue: #3b82f6;
  --radius: 12px;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0, 212, 170, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(122, 63, 241, 0.1), transparent 50%),
    var(--bg);
}

/* —— Nav (TickTick-like) —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.nav-logo {
  display: block;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-sec);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-signin {
  display: none;
}

@media (min-width: 640px) {
  .nav-signin {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.55rem 1rem;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.8rem 1.4rem;
  font-size: 0.9375rem;
}

.btn-accent {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* —— Hero —— */
main {
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) 0;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-mark {
  margin-bottom: 1.25rem;
  animation: rise 0.6s ease-out both;
}

.hero-logo {
  display: inline-block;
  border-radius: 16px;
  filter: drop-shadow(0 8px 28px rgba(0, 212, 170, 0.25));
  animation: float 5s ease-in-out infinite;
}

h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: rise 0.65s ease-out 0.08s both;
}

.accent-text {
  color: var(--accent-bright);
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--fg-sec);
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  animation: rise 0.65s ease-out 0.16s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  animation: rise 0.65s ease-out 0.24s both;
}

/* —— Product mock (TickTick-like stage) —— */
.product-stage {
  padding: 0 0.5rem 2rem;
  animation: rise 0.8s ease-out 0.32s both;
}

.app-window {
  max-width: 920px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 40px 80px rgba(0, 0, 0, 0.55);
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #0d0d0d;
}

.chrome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.chrome-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-sec);
  letter-spacing: -0.01em;
}

.chrome-brand img {
  border-radius: 4px;
}

.app-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 280px;
}

@media (max-width: 640px) {
  .app-body {
    grid-template-columns: 1fr;
  }

  .app-side {
    display: none;
  }
}

.app-side {
  padding: 0.85rem 0.6rem;
  border-right: 1px solid var(--border);
  background: #0c0c0c;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  color: var(--fg-sec);
  margin-bottom: 0.25rem;
}

.side-item.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-weight: 600;
}

.side-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.app-main {
  padding: 1.25rem;
}

.charts-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 720px) {
  .charts-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.donut {
  width: 150px;
  height: 150px;
  transform: rotate(-90deg);
}

.donut-track {
  stroke: rgba(255, 255, 255, 0.06);
}

.donut-seg-a {
  stroke: #37cd8f;
  animation: donutIn 1s ease-out 0.4s both;
}

.donut-seg-b {
  stroke: #7a3ff1;
  animation: donutIn 1s ease-out 0.55s both;
}

.donut-seg-c {
  stroke: #3b82f6;
  animation: donutIn 1s ease-out 0.7s both;
}

.donut-center-value,
.donut-center-label {
  fill: var(--fg);
  transform: rotate(90deg);
  transform-origin: 60px 60px;
  font-family: var(--font);
}

.donut-center-value {
  font-size: 16px;
  font-weight: 700;
}

.donut-center-label {
  font-size: 9px;
  fill: var(--fg-muted);
}

.donut-legend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--fg-sec);
  text-align: left;
  width: 100%;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.donut-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.line-wrap {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chart-caption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.line-chart {
  width: 100%;
  height: auto;
  display: block;
}

.line-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.line-path-a {
  animation: draw 1.3s ease-out 0.5s forwards;
}

.line-path-b {
  animation: draw 1.4s ease-out 0.7s forwards;
}

/* —— Features —— */
.features {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 5.5rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.features h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.features-lead {
  color: var(--fg-sec);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 28rem;
  margin: 0 auto 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

@media (max-width: 760px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 1.35rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 0.9rem;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fg-sec);
}

/* —— Closing CTA —— */
.closing {
  text-align: center;
  padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(4rem, 10vw, 6rem);
  max-width: 560px;
  margin: 0 auto;
}

.closing-logo {
  border-radius: 12px;
  margin-bottom: 1rem;
}

.closing h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.closing p {
  color: var(--fg-sec);
  margin-bottom: 1.5rem;
}

/* —— Footer —— */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--fg-sec);
}

.footer-brand img {
  border-radius: 5px;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--fg-sec);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--fg);
}

/* —— Motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes donutIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark,
  h1,
  .hero-lead,
  .hero-cta,
  .product-stage,
  .hero-logo,
  .line-path,
  .donut-seg-a,
  .donut-seg-b,
  .donut-seg-c {
    animation: none;
  }

  .line-path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
