/* ==========================================================================
   NeoNeko — site styles
   Single stylesheet, no build step. Tweak the tokens below to reskin.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Brand gradient — used on the wordmark, buttons and accents */
  --brand-a: #ff2e7e;   /* pink  */
  --brand-b: #7b5cff;   /* violet */
  --brand-c: #3d82f6;   /* blue  */

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* Dark (default) */
:root,
[data-theme="dark"] {
  --bg:        #08080e;
  --bg-glow-1: rgba(123, 92, 255, .18);
  --bg-glow-2: rgba(255, 46, 126, .12);
  --surface:   rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border:    rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text:      #f2f3f7;
  --text-dim:  #a2a5b4;
  --text-mute: #74778a;
  --header-bg: rgba(10, 10, 18, .72);
  --shadow:    0 20px 50px rgba(0, 0, 0, .45);
}

/* Light */
[data-theme="light"] {
  --bg:        #f7f7fb;
  --bg-glow-1: rgba(123, 92, 255, .12);
  --bg-glow-2: rgba(255, 46, 126, .08);
  --surface:   rgba(255, 255, 255, .8);
  --surface-2: #ffffff;
  --border:    rgba(10, 10, 30, .1);
  --border-strong: rgba(10, 10, 30, .18);
  --text:      #14141f;
  --text-dim:  #4d5062;
  --text-mute: #74778a;
  --header-bg: rgba(247, 247, 251, .78);
  --shadow:    0 20px 50px rgba(20, 20, 45, .1);
}

/* --- Base ----------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;   /* keeps anchors clear of the sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow behind everything, like the reference shot */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% -10%, var(--bg-glow-1), transparent 65%),
    radial-gradient(760px 460px at 88% 8%,  var(--bg-glow-2), transparent 62%);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -.022em;
  font-weight: 700;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--brand-b);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* Logo art is a wide illustration; crop it square from the centre so the moon
   and figure stay in frame at any size. */
.brand-mark {
  flex: 0 0 auto;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(96deg, var(--brand-a), var(--brand-b) 55%, var(--brand-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;   /* centres the nav between brand and actions */
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav a:hover { color: var(--text); background: var(--surface); }

/* Underline bar, matching the reference header */
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-c));
  transform: scaleX(0);
  transition: transform .22s var(--ease);
}

.nav a.is-active { color: var(--text); font-weight: 600; }
.nav a.is-active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease);
}
.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.nav-toggle { display: none; }

.bars, .bars::before, .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after  { top: 6px; }

/* --- Hero ----------------------------------------------------------------- */

.hero { padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 8vw, 96px); }

.hero-inner { max-width: 820px; }

.eyebrow {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 66px);
  font-weight: 800;
}

.grad {
  background: linear-gradient(96deg, var(--brand-a), var(--brand-b) 50%, var(--brand-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 62ch;
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--text-dim);
}
.lede strong { color: var(--text); font-weight: 600; }
.lede-left { margin-top: 18px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(96deg, var(--brand-a), var(--brand-b) 60%, var(--brand-c));
  box-shadow: 0 10px 26px rgba(123, 92, 255, .3);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(123, 92, 255, .4); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }

/* --- Sections ------------------------------------------------------------- */

.section { padding: clamp(64px, 9vw, 104px) 0; }

.section-alt {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 6px;
}

.prose {
  max-width: 68ch;
  margin-top: 20px;
  display: grid;
  gap: 16px;
  color: var(--text-dim);
  font-size: 17px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.pills li {
  padding: 7px 15px;
  font-size: 14px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* --- Cards ---------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .22s var(--ease), border-color .22s var(--ease),
              box-shadow .22s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card p { color: var(--text-dim); font-size: 15.5px; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-top h3 { font-size: 20px; }

.card-feature {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 46, 126, .07), transparent 55%),
    var(--surface);
  border-color: var(--border-strong);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.tag {
  flex: 0 0 auto;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.tag-accent {
  color: #fff;
  background: linear-gradient(96deg, var(--brand-a), var(--brand-b));
  border-color: transparent;
}

/* --- Feature grid --------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px 32px;
  margin: 40px 0 8px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--brand-a), var(--brand-c)) 1;
}
.feature p {
  padding-left: 14px;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* --- Contact -------------------------------------------------------------- */

.contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.contact-card {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-value { font-size: 17px; font-weight: 600; }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-name { font-size: 18px; }
.footer-brand img { border-radius: 8px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a {
  font-size: 15px;
  color: var(--text-dim);
  transition: color .18s var(--ease);
}
.footer-nav a:hover { color: var(--text); }

.footer-note {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-mute);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 860px) {
  .nav-toggle { display: grid; }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 24px 20px;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.is-open { display: flex; }

  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav a::after { display: none; }
  .nav a.is-active { background: var(--surface); }

  .footer-note { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 18px; }
  .cta-row .btn { flex: 1 1 auto; }
}

/* --- Motion preferences --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .card:hover, .contact-card:hover { transform: none; }
}
