/* Kernel Mint Labs landing page.
   Deep green space behind the page. Chapters scroll on the left, one phone stays on the right
   and turns to the app being described. Mint is used only for actions and the active state. */

:root {
  --space: #06150f;
  --paper: #eef8f3;
  --muted: #9fb8ae;
  --mint: #2fd3a2;
  --line: rgba(238, 248, 243, 0.12);
  --panel: rgba(238, 248, 243, 0.04);
  --measure: 56ch;
  --s: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; overflow-x: clip; }

body {
  margin: 0;
  background:
    radial-gradient(60% 50% at 78% 25%, rgba(30, 143, 110, 0.22), transparent 70%),
    var(--space);
  color: var(--paper);
  font-family: 'Space Grotesk', 'Noto Sans Devanagari', 'Noto Sans Telugu', 'Noto Sans Tamil', 'Noto Sans Bengali', 'Noto Sans Gujarati', 'Noto Sans Kannada', 'Noto Sans Malayalam', 'Noto Sans Gurmukhi', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--mint); }
img { display: block; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
p, ul { margin: 0; }

.space { position: fixed; inset: 0; z-index: 0; }
.space canvas { display: block; width: 100%; height: 100%; }
body.no-3d .space { display: none; }

.topbar, .story, .langs, .contact, .site-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.topbar { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.site-nav { display: flex; gap: 28px; font-size: 15px; }
.site-nav a { color: var(--paper); text-decoration: none; opacity: 0.85; }
.site-nav a:hover { color: var(--mint); opacity: 1; }

/* Story: chapters left, phone right */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 96px;
  align-items: start;
}

.chapters { grid-column: 1; grid-row: 1; }
.phone-col { grid-column: 2; grid-row: 1; position: sticky; top: 48px; align-self: start; }

.chapter {
  min-height: 82vh;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  opacity: 0.55;
  transition: opacity 300ms ease-out;
}
.chapter.is-active { opacity: 1; }
.chapter-hero { min-height: calc(100vh - 96px); gap: 22px; }

.status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 14px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.chapter-hero h1 { font-size: clamp(42px, 5.2vw, 70px); }
.lede { color: var(--muted); max-width: var(--measure); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hint { font-size: 14px; color: var(--muted); }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--space);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.btn:hover { background: #7ef5d2; }
.btn-ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--panel); border-color: rgba(238, 248, 243, 0.3); }
.btn:focus-visible, a:focus-visible, .phone button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.app-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.ic-suno { background: #0f5c4e; color: #f2a93b; }
.ic-ani { background: #ff2d7a; color: #15110f; }
.ic-bas { background: #c6f432; color: #121310; }

.kind { font-size: 14px; color: var(--muted); }
.chapter h2 { font-size: 46px; }
.copy { color: var(--muted); max-width: var(--measure); }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 4px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: none; transform: translateY(-1px); }

/* Languages */
.langs { padding-block: 96px 80px; border-top: 1px solid var(--line); }
.langs h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 20ch; }
.langs > p { color: var(--muted); margin-top: 12px; }
.lang-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; }
.lang { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); display: grid; gap: 4px; }
.lang b { font-size: 26px; font-weight: 600; line-height: 1.3; }
.lang span { color: var(--muted); font-size: 15px; }

.contact { display: grid; gap: 16px; justify-items: start; max-width: 32rem; padding-block: 80px; border-top: 1px solid var(--line); margin-inline: max(24px, calc((100% - 1180px) / 2)); }
.contact h2 { font-size: 36px; }
.mail { display: flex; flex-wrap: wrap; gap: 12px; }
.addr { font-size: 15px; color: var(--paper) !important; user-select: all; }
.btn-ghost { cursor: pointer; font: inherit; font-weight: 600; }
.contact p { color: var(--muted); }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 40px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* Narrow screens: intro text first, then the phone preview, then the app sections.
   The phone is not pinned here, so the sections are full brightness and do not switch it. */
@media (max-width: 900px) {
  .story { display: flex; flex-direction: column; gap: 0; }
  .chapters { display: contents; }
  .chapter-hero { order: 1; }
  .phone-col {
    order: 2;
    position: static;
    display: grid; justify-items: center;
    padding-block: 8px 40px;
  }
  .chapter:not(.chapter-hero) { order: 3; }
  .chapter { min-height: 0; padding-block: 36px; opacity: 1; max-width: none; }
  .chapter-hero { min-height: 0; padding-block: 24px 40px; gap: 18px; }
  .chapter-hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .chapter h2 { font-size: 36px; }
  .actions .btn { padding: 14px 22px; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { gap: 12px; padding-block: 14px; }
  .brand img { height: 30px; width: auto; }
  .site-nav { gap: 4px; font-size: 14px; }
  .site-nav a { padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}

/* Each app chapter: where it is coming, and a link to its own site. */
.soon { font-size: 14px; color: var(--muted); margin-top: 6px; }
.site-link { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--mint); text-decoration: none; }
.site-link:hover, .site-link:focus-visible { text-decoration: underline; }
