/* Contora — design tokens from brand doc */
:root {
  --bg-primary: #0b0f14;
  --bg-secondary: #121821;
  --bg-card: #171f2b;
  --accent: #5ba7ff;
  --accent-soft: rgba(91, 167, 255, 0.12);
  --accent-2: #7c5cff;
  --text: #e8edf5;
  --text-muted: #8a94a7;
  --success: #38d39f;
  --warning: #ffb84d;
  --border: rgba(91, 167, 255, 0.15);
  --glow: 0 0 40px rgba(91, 167, 255, 0.08);
  --radius: 14px;
  --max-content: 1200px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #7eb8ff;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 1px rgba(91, 167, 255, 0.2), 0 0 24px rgba(91, 167, 255, 0.18);
  animation: pulse-soft 4s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(91, 167, 255, 0.25);
  }
  50% {
    box-shadow: 0 0 28px rgba(124, 92, 255, 0.35);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #4a9eef 0%, var(--accent) 50%, #6b8cff 100%);
  color: #fff;
  box-shadow: var(--glow), 0 4px 24px rgba(91, 167, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(91, 167, 255, 0.15), 0 8px 32px rgba(91, 167, 255, 0.2);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(91, 167, 255, 0.35);
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(91, 167, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.hero-checks li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-checks li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* Dashboard mock */
.dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--glow);
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dashboard:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 60px rgba(91, 167, 255, 0.1), 0 24px 48px rgba(0, 0, 0, 0.35);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.dashboard-dot {
  display: flex;
  gap: 6px;
}

.dashboard-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-secondary);
}

.dashboard-dot span:nth-child(1) {
  background: #ff6b6b;
}
.dashboard-dot span:nth-child(2) {
  background: var(--warning);
}
.dashboard-dot span:nth-child(3) {
  background: var(--success);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.8rem;
}

.panel-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.panel-value {
  color: var(--text);
  line-height: 1.4;
}

.typewriter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  min-height: 2.6em;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  margin-top: 8px;
}

.panel-wide {
  grid-column: 1 / -1;
}

.timeline-mini {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.timeline-mini span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  animation: fade-in 3s ease infinite;
}

.timeline-mini span:nth-child(2) {
  animation-delay: 0.5s;
}
.timeline-mini span:nth-child(3) {
  animation-delay: 1s;
}

@keyframes fade-in {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
    color: var(--accent);
  }
}

.git-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--success);
  margin-top: 6px;
}

/* Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 0 40px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.feature-list h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
  color: var(--text);
}

.feature-list h3:first-child {
  margin-top: 0;
}

.feature-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.showcase-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.showcase-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 15, 20, 0.6));
  pointer-events: none;
}

.memory-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.memory-row:last-child {
  border-bottom: none;
}

.memory-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.4;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
}

.timeline-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 167, 255, 0.28);
  box-shadow: var(--glow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 12px;
}

/* How it works flow */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.85rem;
  text-align: center;
  max-width: 160px;
}

.flow-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Comparison */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  color: var(--text-muted);
}

.check-yes {
  color: var(--success);
  font-weight: 600;
}

.check-partial {
  color: var(--warning);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 16px;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 28px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Quotes */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.quote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
}

.quote strong {
  color: var(--text);
  font-style: normal;
}

/* Footer */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Dev experience block */
.dev-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.dev-block p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.dev-block p:last-child {
  margin-bottom: 0;
}
