/* Kylix.ai — landing page (Ink & Lime) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --ink: #0D1117;
  --ink-2: #30363D;
  --muted: #57606A;
  --line: #E6EAEF;
  --bg: #FFFFFF;
  --soft: #F6F8FA;

  --lime: #CCFF00;
  --lime-600: #B3E600;
  --lime-50: #F7FFD6;
  --lime-deep: #5E8A00;
  --coral: #FF4F5E;
  

  --on-dark: #B1BAC4;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --container: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .section--dark :focus-visible { outline-color: var(--lime); }
.topics-card :focus-visible { outline-color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn--sm { padding: 9px 18px; font-size: 15px; }
.btn--lg { padding: 15px 26px; font-size: 17px; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-600); transform: translateY(-1px); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { background: var(--lime-600); transform: translateY(-1px); }
.btn--outline { color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--soft); }
.btn--block { width: 100%; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__word { font: 700 22px/1 var(--font-display); letter-spacing: -.02em; color: #fff; }
.logo__word span { color: var(--lime); }
.logo--dark .logo__word { color: var(--ink); }
.logo--dark .logo__word span { color: var(--lime-deep); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 15%, rgba(204, 255, 0, .07), transparent 70%),
    radial-gradient(45% 55% at 5% 100%, rgba(204, 255, 0, .06), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 28px 28px;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.nav__right { display: flex; align-items: center; gap: 30px; }
.nav__links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--on-dark); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 48px 0 104px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #D5DCE3;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.hero h1 { font-size: clamp(40px, 5.2vw, 62px); }
.hero h1 em { font-style: normal; color: var(--lime); }
.lede { margin-top: 26px; max-width: 540px; font-size: 19px; color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 40px; font-size: 14px; font-weight: 500; color: var(--on-dark); }
.hero__chips li { display: flex; align-items: center; gap: 8px; }
.hero__chips .icon { width: 18px; height: 18px; color: var(--lime); stroke-width: 2.4; }

/* Hero illustration */
.visual {
  position: relative; margin: 0; padding: 14px; border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.visual svg { display: block; width: 100%; height: auto; }
.visual .flow { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; animation: flow 1.6s linear infinite; }
.hv__rail { fill: none; stroke: var(--lime); stroke-opacity: .22; stroke-width: 8; stroke-linecap: round; }
.hv__detour { fill: none; stroke: #6E7681; stroke-width: 2; stroke-dasharray: 3 6; }
.hv__x circle { fill: var(--coral); }
.hv__x path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.hv__box rect { fill: #161B22; stroke: #6E7681; stroke-width: 1.5; }
.hv__host rect { fill: rgba(255, 255, 255, .03); stroke: #6E7681; stroke-width: 1.5; stroke-dasharray: 5 5; }
.hv__gpu rect { fill: var(--lime); }
.hv__t { fill: #E6EDF3; font: 700 16px var(--font-display); }
.hv__s { fill: #8B949E; font: 500 12px var(--font-body); }
.hv__gpu .hv__t, .hv__gpu .hv__s { fill: var(--ink); }
.hv__label { fill: var(--lime); font: 600 12px var(--font-body); letter-spacing: .03em; }
.visual__status {
  position: absolute; left: 28px; bottom: 28px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #E6EDF3;
  background: rgba(13, 17, 23, .85); border: 1px solid rgba(255, 255, 255, .14);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(204, 255, 0, .6); animation: pulse 2s ease-out infinite; }
@keyframes flow { to { stroke-dashoffset: -11; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(204, 255, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0); } }

/* Domains strip */
.strip { border-bottom: 1px solid var(--line); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 32px; padding-top: 24px; padding-bottom: 24px; font-size: 15px; color: var(--muted); }
.strip__label { font-weight: 600; color: var(--ink); letter-spacing: .02em; }

/* Sections */
.section { padding: 100px 0; }
.section--soft { background: var(--soft); }
.kicker { display: block; margin-bottom: 14px; font: 700 13px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.kicker::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 10px; vertical-align: middle; border-radius: 2px; background: var(--lime-600); }
.section__head { max-width: 680px; margin-bottom: 52px; }
.section__head--flush { margin-bottom: 0; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section__head p { margin-top: 18px; font-size: 18px; color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.principle:hover { border-color: #D0D7DE; box-shadow: 0 14px 40px rgba(13, 17, 23, .08); }
.principle__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 12px; background: var(--ink); color: var(--lime); }
.principle h3, .principle h4 { font: 700 21px/1.1 var(--font-display); letter-spacing: -.02em; margin: 0 0 10px; }
.principle p { font-size: 16px; color: var(--muted); }
.subhead { margin: 0 0 18px; font-size: 22px; }
.principles + .subhead { margin-top: 48px; }

/* Bottleneck map */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.map { display: grid; gap: 16px; margin: 0; }
.lane { padding: 22px 24px 24px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.lane__title { margin-bottom: 16px; font: 700 13px/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lane__stops { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 30px; margin: 0; padding: 0; list-style: none; }
.stop { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 104px; padding: 14px 14px 12px; background: #fff; border: 1px solid #D0D7DE; border-radius: 12px; }
.stop b { font: 700 15px/1.25 var(--font-display); }
.stop > span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.stop + .stop::before {
  content: ""; position: absolute; left: -21px; top: 50%; width: 9px; height: 9px; margin-top: -5px;
  border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg);
}
.stop--gpu { background: var(--ink); border-color: var(--ink); color: #fff; }
.stop--gpu > span { color: var(--on-dark); }
.nums { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 10px; }
.num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: var(--ink); font: 700 12px/1 var(--font-body); }
.lane--target { background: var(--lime-50); border-color: var(--lime-600); }
.lane--target .lane__title { color: var(--ink); }
.lane--target .stop { min-height: 0; border-color: var(--lime-600); }
.nowrap { white-space: nowrap; }
.lane--target .stop + .stop::before { border-color: var(--ink); }

.chokes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 48px; margin: 48px 0 0; padding: 0; list-style: none; }
.chokes li { display: flex; gap: 14px; align-items: flex-start; }
.chokes .num { flex: none; margin-top: 1px; }
.chokes b { display: block; font: 700 16px/1.3 var(--font-display); }
.chokes span:not(.num) { display: block; font-size: 15px; color: var(--muted); }

.aims { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--muted); }
.aims > span:first-child { margin-right: 4px; }

/* Trends */
.trend .principle__icon { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.trend__src { margin-top: 14px; font-size: 13px; color: var(--muted); }
.trend__src a, .facts a { color: var(--ink); text-decoration-color: var(--lime-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.approach { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.facts { display: grid; gap: 22px; }
.facts li { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.facts__tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--ink); flex: none; }
.facts__tick .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.facts__tick--logo { width: 48px; height: 48px; margin: -7px -7px 0 -7px; background: #fff; border: 1px solid var(--line); }
.facts__tick--logo img { display: block; width: 32px; height: 32px; }
.facts b { display: block; font: 700 18px/1.3 var(--font-display); margin-bottom: 4px; }
.facts div span { display: block; font-size: 16px; color: var(--muted); }


/* Contact */
.section--dark { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 80% at 100% 0%, rgba(204, 255, 0, .10), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px;
}
.kicker--light { color: var(--lime); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__intro h2 { font-size: clamp(32px, 4vw, 46px); }
.contact__intro > p { margin-top: 18px; max-width: 480px; font-size: 18px; color: var(--on-dark); }
.contact__intro > .contact__note { font-size: 15px; color: #8B949E; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 12px 18px;
  border: 1.5px solid rgba(204, 255, 0, .5); border-radius: 12px; background: rgba(204, 255, 0, .08);
  font-weight: 700; font-size: 18px; color: var(--lime); text-decoration: none; transition: background .2s;
}
.contact__mail:hover { background: rgba(204, 255, 0, .16); }

/* Topic links */
.topics-card { padding: 30px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.topics-card h3 { font-size: 22px; margin-bottom: 18px; }
.topics { display: grid; gap: 10px; margin-bottom: 18px; }
.topics a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  border: 1.5px solid #D0D7DE; border-radius: 12px; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: border-color .15s, background .15s;
}
.topics a:hover { border-color: var(--ink); background: var(--soft); }
.topics .icon { width: 18px; height: 18px; color: var(--muted); }
.form__note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.form__note a { color: var(--ink); text-decoration-color: var(--lime-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Standalone pages (privacy, thank you) */
.page { padding: 56px 0 96px; }
.page .container { max-width: 820px; }
.page__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 56px; }
.page h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 12px; }
.page h2 { font-size: 24px; margin: 40px 0 12px; }
.page p, .page li { color: var(--ink-2); margin-bottom: 12px; }
.page ul { padding-left: 22px; list-style: disc; }
.page a { color: var(--ink); text-decoration-color: var(--lime-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page__meta { font-size: 15px; color: var(--muted); margin-bottom: 30px; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 48px var(--gutter); text-align: center; }
.center-page .logo { justify-content: center; margin-bottom: 36px; }
.center-page h1 { font-size: clamp(36px, 6vw, 52px); margin-bottom: 14px; }
.center-page p { margin-bottom: 28px; color: var(--muted); font-size: 18px; }

/* Footer */
.footer { padding: 44px 0 56px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__meta { text-align: right; font-size: 14px; color: var(--muted); }
.footer__note { margin-top: 4px; font-size: 13px; }
.footer__meta a { color: inherit; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; padding-bottom: 72px; }
  .visual { max-width: 520px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .approach { grid-template-columns: 1fr; gap: 36px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 80px 0; }
  .chokes { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .lane__stops { grid-auto-flow: row; grid-auto-columns: auto; gap: 22px; }
  .stop { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; min-height: 0; }
  .stop + .stop::before { left: 50%; top: -17px; margin: 0 0 0 -5px; transform: rotate(135deg); }
  .nums { margin: 0 0 0 auto; padding: 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .principles { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
  .nav__links { display: none; }
  .topics-card { padding: 22px; }
  .footer__meta { text-align: left; }
  .hero__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .visual .flow, .pulse { animation: none; }
  .visual .flow { stroke-dasharray: none; }
  .btn, .principle { transition: none; }
}
