/*
  Artkiln — production stylesheet
  Translated 1:1 from design/Artkiln.dc.html (Claude Design prototype).
  Every clamp(), letter-spacing, line-height, aspect-ratio, scroll-margin-top
  and backdrop-filter value below is copied verbatim from the source — do not
  "clean up" or round any of them.
*/

/* ---------------------------------------------------------------------- */
/* Design tokens                                                          */
/* ---------------------------------------------------------------------- */
:root {
  /* brand (parameterized in the DC prototype via props) */
  --ak-accent: #6473f5;
  --ak-accent-hover: #9aa4ff;
  --ak-accent-active: #7280ff;
  --ak-glow: rgba(100, 115, 245, 0.375);

  /* surfaces */
  --ak-bg: #0e0f14;
  --ak-surface: #13151c;
  --ak-elevated: #1a1e27;

  /* text */
  --ak-text: #e7e9ee;
  --ak-muted: #969db0;
  --ak-dim: #5f6678;

  /* verdict colors */
  --ak-verdict-ship: #4ec98a;
  --ak-verdict-iterate: #e3a948;
  --ak-verdict-reject: #d6584f;

  /* borders */
  --ak-border-subtle: rgba(255, 255, 255, 0.07);
  --ak-border-strong: rgba(255, 255, 255, 0.13);

  /* shadow */
  --ak-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);

  /* layout */
  --ak-container: 1180px;

  /* fonts */
  --font-sans: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------------------------------------------------------------------- */
/* Reset / base                                                           */
/* ---------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ak-bg);
  color: var(--ak-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ak-text);
  text-decoration: none;
}

a:hover {
  color: var(--ak-accent-hover);
}

input::placeholder {
  color: var(--ak-dim);
}

::selection {
  background: rgba(100, 115, 245, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------- */
/* Utilities                                                              */
/* ---------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ak-surface);
  color: var(--ak-text);
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--ak-border-strong);
  font-size: 14px;
  transition: top 150ms ease;
}

.skip-link:focus-visible {
  top: 12px;
}

.wrap {
  max-width: var(--ak-container);
  margin: 0 auto;
}

/* Shared focus ring -------------------------------------------------- */
/* The DC prototype has no focus styles at all — this is the gap we fill. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ak-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------- */
/* Site header / nav                                                      */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ak-border-subtle);
}

.site-header__inner {
  padding: 0 clamp(20px, 5vw, 40px);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header__brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ak-text);
  padding: 8px 0;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.site-header__link {
  font-size: 14px;
  color: var(--ak-muted);
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 120ms;
}

.site-header__link:hover {
  color: var(--ak-text);
}

.site-header__cta {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ak-text);
  background: var(--ak-elevated);
  border: 1px solid var(--ak-border-strong);
  padding: 9px 14px;
  border-radius: 7px;
  margin-left: 6px;
  transition: background 120ms, border-color 120ms;
}

.site-header__cta:hover {
  background: #222632;
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ak-text);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
}

.hero__inner {
  padding: clamp(64px, 10vw, 124px) clamp(20px, 5vw, 40px) clamp(70px, 10vw, 130px);
}

.hero__eyebrow {
  margin: 0 0 clamp(22px, 3vw, 30px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ak-dim);
}

.hero__title {
  margin: 0;
  font-size: clamp(42px, 8.4vw, 94px);
  line-height: 0.97;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ak-text);
  max-width: 920px;
  text-wrap: balance;
}

.hero__subtitle {
  margin: clamp(24px, 3vw, 32px) 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ak-muted);
  max-width: 640px;
  text-wrap: pretty;
}

.hero__demo-wrap {
  position: relative;
  margin: clamp(52px, 8vw, 96px) 0 0;
}

.hero__demo-glow {
  position: absolute;
  inset: 10% 4% -8% 4%;
  background: radial-gradient(58% 58% at 50% 42%, var(--ak-glow), rgba(100, 115, 245, 0) 72%);
  filter: blur(48px);
  pointer-events: none;
}

.hero__demo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--ak-shadow), 0 0 0 1px var(--ak-border-subtle);
}

.hero__demo-image-wrap {
  width: 100%;
  height: 100%;
  background: var(--ak-bg);
}

.hero__demo-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The chrome mockup's tab bar + toolbar eat 84px of the 16/9 frame, so a
     16/9 screenshot gets cropped. Anchor to the top so the editor's own header
     survives and only the least important bottom rows are lost. */
  object-position: top;
}

/* ---------------------------------------------------------------------- */
/* Waitlist forms (shared between hero + final CTA)                       */
/* ---------------------------------------------------------------------- */
#waitlist {
  scroll-margin-top: 100px;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(32px, 4vw, 42px) 0 0;
  max-width: 520px;
}

.waitlist-form--cta {
  margin: clamp(30px, 4vw, 40px) 0 0;
  width: 100%;
  max-width: 480px;
}

.waitlist-form__field {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--ak-surface);
  border: 1px solid var(--ak-border-strong);
  border-radius: 7px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ak-text);
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}

.waitlist-form--cta .waitlist-form__field {
  flex: 1 1 220px;
}

.waitlist-form__field:focus-visible {
  outline: none;
  border-color: var(--ak-accent);
  box-shadow: 0 0 0 3px rgba(100, 115, 245, 0.18);
}

.waitlist-form__submit {
  background: var(--ak-accent);
  color: #0b0c11;
  border: none;
  border-radius: 7px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 120ms;
}

.waitlist-form__submit:hover {
  background: var(--ak-accent-hover);
}

.waitlist-form__submit:active {
  background: var(--ak-accent-active);
}

.waitlist-form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.waitlist-form__note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ak-dim);
}

.waitlist-form__status {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ak-accent);
}

.waitlist-form__status:empty {
  margin: 0;
}

.waitlist-form__status--error {
  color: var(--ak-verdict-reject);
}

.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------- */
/* Browser-chrome mockup (decorative)                                      */
/* ---------------------------------------------------------------------- */
.chrome-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #35363a;
}

.chrome-window__tabbar {
  display: flex;
  align-items: center;
  height: 44px;
  background: #202124;
  padding-right: 8px;
  flex-shrink: 0;
}

.chrome-window__lights {
  display: flex;
  gap: 8px;
  padding: 0 14px;
  flex-shrink: 0;
}

.chrome-window__light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.chrome-window__light--red {
  background: #ff5f57;
}

.chrome-window__light--yellow {
  background: #febc2e;
}

.chrome-window__light--green {
  background: #28c840;
}

.chrome-window__tabs {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-left: 4px;
  flex: 1;
}

.chrome-window__tab {
  position: relative;
  height: 34px;
  align-self: flex-end;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #35363a;
  border-radius: 8px 8px 0 0;
  min-width: 120px;
  max-width: 220px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: #e8eaed;
}

.chrome-window__tab-curve {
  position: absolute;
  bottom: 0;
}

.chrome-window__tab-curve--left {
  left: -8px;
}

.chrome-window__tab-curve--right {
  right: -8px;
  transform: scaleX(-1);
}

.chrome-window__tab-curve path {
  fill: #35363a;
}

.chrome-window__tab-favicon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5f6368;
  flex-shrink: 0;
}

.chrome-window__tab-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chrome-window__toolbar {
  height: 40px;
  background: #35363a;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  flex-shrink: 0;
}

.chrome-window__icon-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chrome-window__icon-dot-inner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #9aa0a6;
  opacity: 0.4;
}

.chrome-window__url-bar {
  flex: 1;
  height: 30px;
  border-radius: 15px;
  background: #282a2d;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  margin: 0 6px;
}

.chrome-window__url-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9aa0a6;
  opacity: 0.4;
  flex-shrink: 0;
}

.chrome-window__url-text {
  flex: 1;
  color: #e8eaed;
  font-size: 13px;
  font-family: system-ui, sans-serif;
}

.chrome-window__content {
  flex: 1;
  background: var(--ak-bg);
  overflow: hidden;
}

/* ---------------------------------------------------------------------- */
/* How it works                                                           */
/* ---------------------------------------------------------------------- */
.how__inner {
  padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 40px);
}

.how__heading {
  margin: 0 0 clamp(44px, 6vw, 72px);
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ak-text);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  gap: clamp(28px, 2.6vw, 36px);
}

.how__item {
  border-top: 1px solid var(--ak-border-strong);
  padding-top: 20px;
}

.how__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ak-accent);
}

.how__title {
  margin: 16px 0 10px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ak-text);
}

.how__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ak-muted);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------- */
/* Features                                                                */
/* ---------------------------------------------------------------------- */
.features__inner {
  padding: clamp(50px, 7vw, 90px) clamp(20px, 5vw, 40px);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}

.feature-card {
  background: var(--ak-surface);
  border: 1px solid var(--ak-border-subtle);
  border-radius: 8px;
  padding: clamp(24px, 2.6vw, 32px);
  box-shadow: var(--ak-shadow);
  display: flex;
  flex-direction: column;
}

.feature-card__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ak-text);
}

.feature-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ak-muted);
  text-wrap: pretty;
}

.feature-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 24px;
}

.feature-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ak-muted);
}

.feature-card__tag--ship {
  color: var(--ak-verdict-ship);
}

.feature-card__tag--iterate {
  color: var(--ak-verdict-iterate);
}

.feature-card__tag--reject {
  color: var(--ak-verdict-reject);
}

/* ---------------------------------------------------------------------- */
/* FAQ                                                                     */
/* ---------------------------------------------------------------------- */
.faq__inner {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 40px);
}

.faq__heading {
  margin: 0 0 clamp(34px, 5vw, 56px);
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ak-text);
}

.faq__item {
  border-top: 1px solid var(--ak-border-subtle);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--ak-border-subtle);
}

.faq__question {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  transition: color 120ms;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  content: '';
}

.faq__question:hover {
  color: var(--ak-accent-hover);
}

.faq__question-text {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq__question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ak-dim);
  flex: 0 0 auto;
}

.faq__item[open] .faq__question::after {
  content: '\2212';
}

.faq__answer {
  margin: 0;
  padding: 0 clamp(0px, 4vw, 56px) 24px 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ak-muted);
  max-width: 660px;
}

.faq__answer--pretty {
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------- */
/* Final CTA                                                               */
/* ---------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 420px;
  background: radial-gradient(50% 50% at 50% 50%, var(--ak-glow), rgba(100, 115, 245, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 40px) clamp(80px, 11vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta__heading {
  margin: 0;
  font-size: clamp(34px, 6.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ak-text);
}

/* ---------------------------------------------------------------------- */
/* 404                                                                     */
/* ---------------------------------------------------------------------- */
.notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 40px);
}

.notfound__inner {
  max-width: 520px;
}

.notfound__code {
  margin: 0 0 clamp(18px, 3vw, 26px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ak-dim);
}

.notfound__heading {
  margin: 0;
  font-size: clamp(34px, 6.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ak-text);
  text-wrap: balance;
}

.notfound__text {
  margin: clamp(18px, 3vw, 24px) 0 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--ak-muted);
  text-wrap: pretty;
}

.notfound__link {
  display: inline-block;
  margin-top: clamp(26px, 4vw, 34px);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ak-text);
  background: var(--ak-elevated);
  border: 1px solid var(--ak-border-strong);
  padding: 11px 16px;
  border-radius: 7px;
  transition: background 120ms, border-color 120ms;
}

.notfound__link:hover {
  background: #222632;
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ak-text);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--ak-border-subtle);
}

.site-footer__inner {
  padding: 30px clamp(20px, 5vw, 40px) 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ak-dim);
}

.site-footer__link {
  color: var(--ak-muted);
  transition: color 120ms;
}

.site-footer__link:hover {
  color: var(--ak-accent-hover);
}
