/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; overflow: hidden; }

/* ===== CUSTOM CURSOR ===== */
*, *::before, *::after { cursor: none !important; }

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .2s cubic-bezier(.25, .46, .45, .94), opacity .2s ease;
  opacity: 0;
  mix-blend-mode: difference;
}

#cursor-ring.is-hovering {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ===== TOKENS — exact Attio palette ===== */
:root {
  /* Raw scale (Attio's black/white scales) */
  --black-50:  #101113;
  --black-100: #1C1D1F;
  --black-200: #202124;
  --black-300: #232529;
  --black-400: #2E3238;
  --black-500: #383E47;
  --black-600: #505967;
  --black-700: #6F7988;
  --black-800: #8F99A8;
  --black-900: #A4ADBA;

  --white-100: #FFFFFF;
  --white-200: #FAFAFB;
  --white-300: #F3F4F6;
  --white-400: #EDEFF3;
  --white-500: #E4E7EC;
  --white-600: #DEE2E7;
  --white-700: #D3D8DF;
  --white-800: #CAD0D9;
  --white-900: #B5BDC9;

  /* Semantic aliases */
  --bg:          #FFFFFF;
  --bg-2:        #FAFAFB;
  --surface:     #EDEFF3;
  --surface-sub: #F3F4F6;
  --border:      #E4E7EC;   /* subtle-stroke */
  --border-2:    #D3D8DF;   /* default-stroke */

  --ink:    #1C1D1F;  /* primary-foreground */
  --ink-2:  #505967;  /* tertiary-foreground */
  --ink-3:  #6F7988;  /* accent-foreground  */
  --ink-4:  #A4ADBA;  /* caption-foreground */

  /* Attio's layered shadow system */
  --sh1: 0px 1px 3px 0px rgba(0,0,0,.01);
  --sh2: 0px 2px 4px -1px rgba(0,0,0,.02);
  --sh3: 0px 4px 8px -2px rgba(0,0,0,.03);
  --sh4: 0px 8px 16px -4px rgba(0,0,0,.04);
  --sh5: 0px 16px 32px -8px rgba(0,0,0,.05);
  --sh6: 0px 32px 64px -16px rgba(0,0,0,.06);
  --sh7: 0px 64px 128px -32px rgba(0,0,0,.07);

  --font:      'Host Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:     1200px;
  --r-sm:      6px;
  --r-md:      10px;
  --r-lg:      14px;
  --r-xl:      16px;
  --r-2xl:     20px;
  --r-pill:    999px;
}

/* ===== BASE ===== */
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  scroll-behavior: smooth;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: opacity .15s, background .15s, border-color .15s, color .15s;
}

.btn-primary-sm {
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 0.8rem;
}
.btn-primary-sm:hover { opacity: .85; }

.btn-dark {
  background: var(--ink);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: 1rem;
  border: 1px solid var(--ink);
}
.btn-dark:hover { background: var(--black-200); border-color: var(--black-200); }

.btn-outline {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-2);
  padding: 9px 18px;
  border-radius: 1rem;
}
.btn-outline:hover { border-color: var(--black-800); }

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.14);
  padding: 9px 18px;
  border-radius: 1rem;
}
.btn-outline-light:hover { border-color: rgba(255,255,255,.35); color: #fff; }

.btn-white {
  background: var(--bg);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: var(--r-md);
}
.btn-white:hover { opacity: .88; }

/* ===== NAV — unchanged ===== */
.site-header {
  position: fixed;
  top: 20px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-pill {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--black-100);
  border-radius: 1.2rem;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,.18);
}

.nav-logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; }
.logo-text { color: #fff; font-size: 16px; font-weight: 400;}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #fff; font-size: 14px; font-weight: 400; transition: color .15s; }
.nav-links a:hover { color: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--bg);
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.36;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 24px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  margin-bottom: 28px;
  box-shadow: var(--sh1), var(--sh2);
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0FC27B;
  flex-shrink: 0;
}

.hero-heading {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.12;
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 36rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.hero-tabs {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 52px;
  width: 100%;
  max-width: 540px;
  box-shadow: var(--sh1), var(--sh2);
}

.hero-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background .15s;
  position: relative;
}
.hero-tab:last-child { border-right: none; }

.hero-tab--active {
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-2);
}

.hero-screenshot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 48px;
}

.hero-screenshot-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sh3), var(--sh4), var(--sh5), var(--sh6);
}

.hero-screenshot-card img { width: 100%; height: auto; display: block; }

/* ===== QUOTE ===== */
.quote-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80dvh;
}

.quote-inner { max-width: 580px; margin: 0 auto; }

.quote-text {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 28px;
  font-style: normal;
}

.quote-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 400;
}
.quote-attribution strong { font-weight: 400; color: var(--ink-2); }

/* ===== LOGOS ===== */
.logos-bar {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  background: var(--bg);
}

.logos-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.logos-inner img {
  height: 16px;
  width: auto;
  filter: grayscale(1);
}

/* ===== STATS ===== */
.stats-section {
  padding: 96px 24px;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.stats-inner { max-width: 500px; margin: 0 auto; }

.stats-text {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 10px;
}
.stats-text strong { font-weight: 400; }

.stats-kyo {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 400;
  color: var(--ink-3);
}

/* ===== FEATURE SECTIONS ===== */
.feature-sections-wrapper {
  position: relative;
}


.feature-section {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 80px 24px;
  background: var(--bg);
  box-shadow: 0 -12px 40px rgba(0,0,0,.06);
}

.feature-section-inner { max-width: 920px; margin: 0 auto; width: 100%; }

.feature-section-header { margin-bottom: 40px; }

.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
}

.feature-heading {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.16;
  color: var(--ink);
}
.feature-heading strong { font-weight: 400; }
.feature-heading em { font-style: normal; }

.feature-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 96px 0 28dvh 0;
  overflow: hidden;
}

.cta-dot-grid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-heading {
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 40px;
}

.cta-heading-muted { color: var(--ink-3); }

.cta-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.cta-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-2);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--bg);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black-100);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark-sm { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }

.footer-link {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.38);
  transition: color .15s;
}
.footer-link:hover { color: rgba(255,255,255,.72); }

.footer-copy {
  max-width: var(--max-w);
  margin: 12px auto 0;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.18);
}

/* ===== CHANGELOG ===== */
.cl-page {
  padding: 120px 40px 96px;
}

.cl-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}

.cl-sidebar {
  position: sticky;
  top: 120px;
}

.cl-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.cl-subtitle {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 400;
  line-height: 1.6;
}

.cl-feed {
  display: flex;
  flex-direction: column;
}

.cl-entry {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.cl-entry:last-child {
  border-bottom: 0px solid var(--border);
}

.cl-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.cl-version {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.cl-date {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-4);
}

.cl-entry-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cl-entry-body {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.cl-image-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-sub);
}

.cl-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== RESPONSIVE ===== */

/* No custom cursor on touch devices */
@media (pointer: coarse) {
  *, *::before, *::after { cursor: auto !important; }
  #cursor-dot, #cursor-ring { display: none; }
}

@media (max-width: 900px) {
  .feature-image { border-radius: var(--r-lg); }
  .fp-bento { grid-template-columns: 1fr; }
  .fp-card--wide { grid-column: 1; display: flex; flex-direction: column; }
  .fp-card--wide .fp-card-image { border-left: none; border-top: 1px solid rgba(255,255,255,.06); }
  .fp-caps-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  /* Changelog */
  .cl-page { padding: 100px 20px 72px; }
  .cl-layout { grid-template-columns: 1fr; gap: 40px; }
  .cl-sidebar { position: relative; top: auto; }

  /* Nav */
  .site-header { top: 12px; }
  .nav-pill { gap: 14px; padding: 7px 7px 7px 12px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12px; }
  .btn-primary-sm { font-size: 12px; padding: 5px 10px; }

  /* Hero */
  .hero { padding-top: 52px; padding-bottom: 48px; }
  .hero-content { padding-top: 1.5rem; }
  .hero-heading { font-size: clamp(26px, 7.5vw, 38px); letter-spacing: -0.025em; }
  .hero-sub { font-size: 14px; max-width: 100%; }
  .hero-screenshot { padding: 0 16px; }

  /* Feature sections */
  .feature-section { position: relative; min-height: auto; padding: 48px 16px 56px; box-shadow: none; }
  .feature-section-header { margin-bottom: 24px; }
  .feature-image { border-radius: var(--r-lg); }

  /* Logos */
  .logos-inner { gap: 24px; }

  /* Quote */
  .quote-section { min-height: 50dvh; padding: 40px 20px; }

  /* CTA */
  .cta-section { padding: 72px 24px 72px; }
  .cta-heading { font-size: clamp(24px, 6vw, 36px); margin-bottom: 28px; }
  .cta-tags { gap: 6px; }

  /* Features page */
  .fp-hero { padding: 120px 20px 72px; }
  .fp-section { padding: 48px 20px; }
  .fp-caps-section { padding: 48px 20px; }
  .fp-caps-grid { grid-template-columns: 1fr; }
  .fp-cta { padding: 72px 20px; }
  .fp-card-body { padding: 24px; }
  .fp-card--wide .fp-card-body { padding: 24px; }

  /* Footer */
  .site-footer { padding: 20px 16px; }
}
