/* ===== LOGARITHM LANDING PAGE ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

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

:root {
  --c-bg: #07090f;
  --c-surface: #0d1117;
  --c-card: #111827;
  --c-border: rgba(255, 255, 255, 0.07);
  --c-border2: rgba(255, 255, 255, 0.12);
  --c-text: #f0f4ff;
  --c-muted: #8b92a9;
  --c-dim: #4b5268;
  --c-indigo: #6366f1;
  --c-violet: #8b5cf6;
  --c-pink: #ec4899;
  --c-cyan: #06b6d4;
  --c-green: #10b981;
  --grad-main: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  --glow: 0 0 60px rgba(99, 102, 241, 0.25);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── AMBIENT GLOW ORBS ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  animation: drift 25s ease-in-out infinite;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: #6366f1;
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: #8b5cf6;
  bottom: -150px;
  right: -150px;
  animation-delay: -10s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: #ec4899;
  top: 40%;
  left: 60%;
  animation-delay: -5s;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(80px, -80px) scale(1.08);
  }

  66% {
    transform: translate(-60px, 60px) scale(0.94);
  }
}

/* ── LAYOUT ── */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  backdrop-filter: blur(24px) saturate(180%);
  background: rgba(7, 9, 15, 0.75);
  border-bottom: 1px solid var(--c-border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 700;
  font-size: 1.15rem;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-logo span {
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}

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

.nav-cta {
  padding: .5rem 1.25rem;
  border-radius: var(--r-sm);
  background: var(--grad-main);
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: opacity .2s, transform .2s !important;
}

.nav-cta:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-indigo);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero h1 .line-1 {
  display: block;
  color: var(--c-text);
}

.hero h1 .line-2 {
  display: block;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--c-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .875rem 2rem;
  border-radius: var(--r-md);
  background: var(--grad-main);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
  transition: transform .25s, box-shadow .25s;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(99, 102, 241, 0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .875rem 2rem;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border2);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color .25s, background .25s, transform .25s;
}

.btn-hero-secondary:hover {
  border-color: var(--c-indigo);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-3px);
}

.btn-icon {
  font-size: 1.1rem;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--c-dim);
  margin-bottom: 4rem;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ── HERO SCREENSHOT ── */
/* ss2_dark.jpg is 1918x970 — aspect ratio 1.977:1 */
.hero-screenshot {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.hero-screenshot-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(99, 102, 241, 0.15);
  position: relative;
  /* Lock to the exact 1918:970 ratio so it never stretches */
  
}

.hero-screenshot-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  z-index: 2;
}

.hero-screenshot-frame img { width:100%; height:auto; display:block; border-radius:var(--r-xl); }

.screenshot-glow {
  position: absolute;
  inset: -60px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  filter: blur(40px);
}

/* ── STATS BAR ── */
.stats-bar {
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .85rem;
  color: var(--c-muted);
  margin-top: .25rem;
}

/* ── SECTION SHARED ── */
section {
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-indigo);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--c-muted);
  max-width: 520px;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 4rem;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-sub {
  margin: 0 auto;
}

/* ── DOWNLOAD ── */
.download {
  padding: 7rem 2rem;
  background: var(--c-surface);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dl-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.dl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: var(--grad-subtle);
  opacity: 0;
  transition: opacity .3s;
}

.dl-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.12);
}

.dl-card:hover::after {
  opacity: 1;
}

.dl-card-inner {
  position: relative;
  z-index: 1;
}

.dl-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.dl-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.dl-card .dl-os {
  font-size: .85rem;
  color: var(--c-dim);
  margin-bottom: 2rem;
}

.dl-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.dl-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1.25rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  text-decoration: none;
  color: var(--c-text);
  font-size: .9rem;
  font-weight: 500;
  transition: background .25s, border-color .25s, transform .25s;
}

.dl-link:hover {
  background: var(--grad-main);
  border-color: transparent;
  transform: translateX(4px);
}

.dl-link-arrow {
  color: var(--c-dim);
  transition: color .25s, transform .25s;
}

.dl-link:hover .dl-link-arrow {
  color: #fff;
  transform: translateX(4px);
}

/* ── FEATURES ── */
.features {
  padding: 7rem 2rem;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feat-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  transition: border-color .3s, transform .3s;
  position: relative;
  overflow: hidden;
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.feat-card:hover::before {
  transform: scaleX(1);
}

.feat-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-6px);
}

.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feat-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--c-indigo);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.feat-card p {
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.75;
}

/* ── SHOWCASE ── */
.showcase {
  padding: 7rem 2rem;
  background: var(--c-surface);
}

.showcase-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: .5rem 1.25rem;
  border-radius: 50px;
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--grad-main);
  border-color: transparent;
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.showcase-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border2);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(99, 102, 241, 0.1);
}

.showcase-frame img {
  width: 100%;
  height: auto; display: block;
}

/* ── AI SECTION ── */
.ai-section {
  padding: 7rem 2rem;
}

.ai-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ai-text .section-sub {
  margin-bottom: 2rem;
}

.ai-providers {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.provider-badge {
  padding: .4rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-muted);
  transition: all .25s;
}

.provider-badge:hover {
  border-color: var(--c-indigo);
  color: var(--c-indigo);
  background: rgba(99, 102, 241, 0.08);
}

.ai-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.ai-visual img {
  width: 100%;
  height: auto; display: block;
}

/* ── FOOTER ── */
footer {
  padding: 4rem 2rem 3rem;
  border-top: 1px solid var(--c-border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 700;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--c-dim);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
}

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

.footer-copy {
  font-size: .8rem;
  color: var(--c-dim);
  text-align: center;
}

.footer-copy a {
  color: var(--c-indigo);
  text-decoration: none;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

/* ── RESPONSIVE ── */
@media(max-width:900px) {

  .dl-grid,
  .feat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ai-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {

  .dl-grid,
  .feat-grid {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    letter-spacing: -1px;
  }
}