/* minikotlin.run — landing page styles
 *
 * Visual sibling to miniswift.run but with a Kotlin-leaning palette:
 * a magenta→orange gradient accent (echoing JetBrains/Kotlin's brand)
 * over the same dark surface miniswift uses. Same overall layout —
 * nav, hero, try-it, stats, features, architecture, footer — so the
 * two-site .run series reads as a pair.
 */

:root {
  --bg:        #0A0B0C;
  --surface:   #0F1112;
  --surface2:  #151718;
  --border:    #1E2022;

  /* Kotlin-ish accent: magenta → orange. Used for headlines and CTAs. */
  --accent:       #C757BC;
  --accent-warm:  #E07758;
  --accent-glow:  rgba(199, 87, 188, 0.18);
  --accent-soft:  rgba(199, 87, 188, 0.10);
  --accent-dim:   #9F4691;

  --t1: #E8E8E8;
  --t2: #888;
  --t3: #555;

  --green: #98C379;
  --blue:  #7EC8E3;

  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --sans: -apple-system, "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  --max:  1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 11, 12, 0.85);
  border-bottom: 1px solid var(--border);
}
nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
}
nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
}
nav .brand .logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
nav .brand span.name-accent { color: var(--accent); }
nav .links {
  display: flex; gap: 28px;
  font-size: 13px; color: var(--t2);
}
nav .links a:hover { color: var(--t1); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--accent); color: var(--accent);
  transition: all 0.2s;
  cursor: pointer; font-family: inherit;
}
.btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #fff; border-color: transparent;
}
.btn-solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #fff; border-color: transparent;
}
.btn-solid:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--border); color: var(--t2); }
.btn-ghost:hover {
  background: transparent; border-color: var(--t2); color: var(--t1);
}
.btn-ghost svg { flex-shrink: 0; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 900px;
  background:
    radial-gradient(ellipse 40% 30% at 50% 35%, rgba(199, 87, 188, 0.25), transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(224, 119, 88, 0.06),  transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(199, 87, 188, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 87, 188, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--t2);
  max-width: 660px; margin: 0 auto 32px;
}
.hero .sub strong { color: var(--t1); font-weight: 600; }
.hero .sub code {
  font-family: var(--mono); font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px; border-radius: 4px;
}
.hero .badges {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--t2);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}
.badge.badge-accent {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(199, 87, 188, 0.30);
}
.hero .actions {
  display: flex; gap: 12px; justify-content: center;
}

/* ── Try-it section (live test runner pointer) ───────────────────────────── */
.showcase {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
  position: relative;
}
.showcase::before {
  content: ""; position: absolute;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(199, 87, 188, 0.07), transparent 65%);
  pointer-events: none; z-index: 0;
}
.showcase .container { position: relative; z-index: 1; }
.showcase-head {
  text-align: center; max-width: 720px; margin: 0 auto 32px;
}
.showcase-head .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 500;
  background: rgba(152, 195, 121, 0.10);
  border: 1px solid rgba(152, 195, 121, 0.20);
  color: var(--green);
  margin-bottom: 16px;
  font-family: var(--mono); letter-spacing: 0.04em;
}
.showcase-head .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}
.showcase-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
}
.showcase-head h2 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.showcase-head p {
  color: var(--t2);
  font-size: 14.5px; line-height: 1.7;
  margin-top: 14px; max-width: 620px;
  margin-left: auto; margin-right: auto;
}
.showcase-head p code {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px; border-radius: 4px;
}

/* Code window — read-only sample preview */
.code-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 720px; margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.r { background: #ff5f57; }
.code-dot.y { background: #febc2e; }
.code-dot.g { background: #28c840; }
.code-header .filename {
  margin-left: 8px;
  font-family: var(--mono); font-size: 12px;
  color: var(--t1); font-weight: 500;
}
.code-header .tag {
  margin-left: auto;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--t3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.code-body {
  padding: 18px 22px;
  font-family: var(--mono); font-size: 12.5px;
  line-height: 1.7;
  color: #d4d0c8;
  overflow-x: auto;
  white-space: pre;
}
.code-body .kw  { color: #ff7b72; }
.code-body .lit { color: #79c0ff; }
.code-body .com { color: var(--t3); font-style: italic; }
.code-body .str { color: #a5d6ff; }
.code-body .ty  { color: #d2a8ff; }
.code-output {
  padding: 14px 22px;
  background: #0a0b0c;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px;
  color: var(--green);
  line-height: 1.7;
}
.code-output::before {
  content: "▶  Output"; display: block;
  color: var(--t3); font-size: 10px;
  margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.showcase-note {
  text-align: center;
  margin-top: 24px;
  font-size: 13px; color: var(--t2);
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.showcase-note a { color: var(--accent); font-weight: 500; }
.showcase-note a:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stats {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg,
    rgba(199, 87, 188, 0.025),
    transparent 50%,
    rgba(224, 119, 88, 0.025));
}
.stats .inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-card {
  position: relative;
  text-align: center;
  padding: 18px 14px;
  border-radius: 10px;
  background: rgba(15, 17, 18, 0.45);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.25s;
}
.stat-card::before {
  content: ""; position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.55; transition: opacity 0.25s;
}
.stat-card:hover {
  border-color: rgba(199, 87, 188, 0.35);
  background: rgba(15, 17, 18, 0.7);
  transform: translateY(-1px);
}
.stat-card:hover::before { opacity: 1; }
.stat-num {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 12px; color: var(--t1);
  margin-top: 6px; font-weight: 500;
}
.stat-meta {
  font-size: 10.5px; color: var(--t3);
  margin-top: 4px;
  font-family: var(--mono); letter-spacing: 0.02em;
}

/* ── Features ────────────────────────────────────────────────────────────── */
.features { padding: 80px 0; }
.features h2 {
  text-align: center;
  font-size: 1.75rem; font-weight: 700;
  margin-bottom: 48px;
}
.features h2 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(199, 87, 188, 0.30);
  transform: translateY(-2px);
}
.feature-card h3 {
  font-size: 14px; font-weight: 600;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 11px;
}
.feature-card h3 .ico {
  width: 18px; height: 18px;
  flex-shrink: 0;
  padding: 6px; box-sizing: content-box;
  border-radius: 7px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(199, 87, 188, 0.20);
  transition: all 0.2s;
}
.feature-card:hover h3 .ico {
  transform: translateY(-1px);
  background: rgba(199, 87, 188, 0.16);
  border-color: rgba(199, 87, 188, 0.35);
}
.feature-card p {
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.6;
}
.feature-card p code {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0 5px; border-radius: 3px;
}

/* ── Architecture pipeline ───────────────────────────────────────────────── */
.arch { padding: 80px 0; }
.arch h2 {
  text-align: center;
  font-size: 1.75rem; font-weight: 700;
  margin-bottom: 48px;
}
.arch h2 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pipeline {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 13px;
}
.pipe-box {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: all 0.25s;
}
.pipe-box.active {
  border-color: var(--accent);
  color: var(--accent);
  background: linear-gradient(180deg,
    rgba(199, 87, 188, 0.10),
    rgba(199, 87, 188, 0.02));
  box-shadow:
    0 0 0 1px rgba(199, 87, 188, 0.12),
    0 0 22px rgba(199, 87, 188, 0.18);
}
@keyframes pipe-flow {
  0%, 100% { color: var(--t3); }
  50%      { color: var(--accent); }
}
.pipe-arrow {
  color: var(--t3); flex-shrink: 0;
  animation: pipe-flow 3.6s ease-in-out infinite;
}
.pipeline svg.pipe-arrow:nth-of-type(2) { animation-delay: 0.4s; }
.pipeline svg.pipe-arrow:nth-of-type(3) { animation-delay: 0.8s; }
.pipeline svg.pipe-arrow:nth-of-type(4) { animation-delay: 1.2s; }
.pipeline svg.pipe-arrow:nth-of-type(5) { animation-delay: 1.6s; }
.pipeline svg.pipe-arrow:nth-of-type(6) { animation-delay: 2.0s; }
@media (prefers-reduced-motion: reduce) { .pipe-arrow { animation: none; } }

.arch-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px; color: var(--t2);
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
.arch-note code {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 5px; border-radius: 3px;
}

/* ── Coverage callout ────────────────────────────────────────────────────── */
.coverage {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}
.coverage h2 {
  text-align: center;
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: 32px;
}
.coverage h2 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px; margin: 0 auto;
}
.cov-card {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.cov-card h3 {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--t1);
}
.cov-card.cov-have h3::before {
  content: "✓";
  display: inline-block;
  margin-right: 8px;
  color: var(--green);
  font-weight: 700;
}
.cov-card.cov-soon h3::before {
  content: "○";
  display: inline-block;
  margin-right: 8px;
  color: var(--t3);
  font-weight: 700;
}
.cov-card ul {
  list-style: none;
  font-size: 13px; color: var(--t2);
  line-height: 1.85;
}
.cov-card li code {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0 5px; border-radius: 3px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(199, 87, 188, 0.025));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
  margin-bottom: 14px; color: var(--t1);
}
.footer-brand .brand .logo {
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 14px;
}
.footer-brand .brand span.name-accent { color: var(--accent); }
.footer-brand p {
  font-size: 13px; color: var(--t2);
  line-height: 1.65;
  max-width: 360px;
}
.footer-col h4 {
  font-size: 11px; font-weight: 600;
  color: var(--t1);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { font-size: 13px; line-height: 2; }
.footer-col a {
  color: var(--t2); transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-col .footer-note {
  display: block;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--t3);
  margin-top: 2px; letter-spacing: 0.04em;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--t3);
}
.footer-bottom .sep { color: var(--border); user-select: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .cov-grid     { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stats .inner { grid-template-columns: repeat(2, 1fr); }
  nav .links    { display: none; }
  .pipeline     { font-size: 11px; }
  .pipe-box     { padding: 8px 12px; }
  .footer-grid  { grid-template-columns: 1fr; gap: 32px; margin-bottom: 28px; }
}
