/* =========================================================
   Kindwired Co. — Landing
   ========================================================= */

:root {
  --midnight: #1A1A2E;
  --amethyst-dark: #2A1F3D;
  --amethyst: #7B5EA7;
  --lavender: #C4A8E0;
  --lavender-pale: #F3EDFB;
  --cream: #FAF7F2;
  --seafoam: #3D9B8C;
  --terracotta: #E07B6A;
  --gold: #C9A84C;

  --text-on-dark: #FAF7F2;
  --text-on-light: #1A1A2E;
  --muted-on-dark: #B8B5D0;
  --muted-on-light: #5E5A72;

  --grad: linear-gradient(90deg, #7B5EA7, #3D9B8C, #E07B6A, #C9A84C);

  --font-head: 'Nunito', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --maxw: 1120px;
  --maxw-narrow: 720px;

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ----- shared type ----- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lavender);
  margin: 0 0 24px;
}
.eyebrow.light {
  color: var(--amethyst);
}

/* ----- gradient bar ----- */
.gradient-bar {
  height: 4px;
  width: 120px;
  background: var(--grad);
  border-radius: 999px;
}
.footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  border-radius: 0;
  margin-top: 0;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(123,94,167,.28), transparent 60%),
    radial-gradient(900px 500px at 85% 90%, rgba(61,155,140,.14), transparent 60%),
    var(--midnight);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  padding: 28px 28px 64px;
  overflow: hidden;
}

.hero-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(196,168,224,.15) 1px, transparent 1px);
  background-size: 22px 22px;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.lockup .logo {
  width: 38px; height: 38px; flex-shrink: 0;
}
.lockup .wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .04em;
}
.nav-links a {
  color: var(--muted-on-dark);
  transition: color .2s var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--lavender);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .nav-links { gap: 18px; font-size: 13px; }
  .nav-links a:first-child { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}
.hero .eyebrow { color: var(--lavender); margin-bottom: 28px; }

.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 28px;
  color: var(--cream);
}
.hero-title span { display: block; }
.hero-title span:last-child {
  color: var(--lavender);
  font-style: italic;
  font-size: 1.18em;
  line-height: 1;
  margin-top: .04em;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: var(--muted-on-dark);
  max-width: 560px;
  margin: 0 0 36px;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  opacity: .75;
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.scroll-indicator:hover { opacity: 1; transform: translateX(-50%) translateY(-2px); }
.scroll-chev {
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--lavender);
  border-bottom: 1.5px solid var(--lavender);
  transform: rotate(45deg);
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(4px, 4px); }
}

/* =========================================================
   SECTION 2 — IDENTIFY
   ========================================================= */
.identify {
  background: var(--cream);
  color: var(--text-on-light);
  padding: clamp(96px, 16vw, 180px) 28px;
  position: relative;
}
.identify::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 56px;
  background: linear-gradient(180deg, rgba(123,94,167,.0), var(--amethyst));
}
.identify-inner {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}
.editorial p {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  color: var(--text-on-light);
  margin: 0 0 28px;
  letter-spacing: -.01em;
}
.editorial p em {
  font-style: italic;
  color: var(--amethyst);
}
.editorial-signoff {
  font-weight: 800 !important;
  color: var(--amethyst) !important;
  margin-top: 44px !important;
}

/* =========================================================
   SECTION 3 — PRODUCT
   ========================================================= */
.product {
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(123,94,167,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(224,123,106,.10), transparent 60%),
    var(--midnight);
  color: var(--text-on-dark);
  padding: clamp(96px, 14vw, 160px) 28px;
}
.product-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .product-inner { grid-template-columns: 1fr; }
}

.product-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 40px;
  color: var(--cream);
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 44px;
}
.product-features .feature {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.5;
  color: var(--lavender);
  margin: 0;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(196,168,224,.18);
}
.product-features .feature:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--amethyst);
  color: var(--cream);
  padding: 18px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .02em;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 6px 24px rgba(123,94,167,.28);
}
.btn-primary:hover {
  background: #8B6EB7;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(123,94,167,.4);
}
.btn-primary .btn-arrow {
  transition: transform .25s var(--ease);
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.product-mockup {
  margin: 0;
  position: relative;
}
.product-mockup::before {
  content: "";
  position: absolute;
  inset: -8% -4% -4% -4%;
  background: radial-gradient(closest-side, rgba(196,168,224,.18), transparent 70%);
  z-index: 0;
}
.product-mockup img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* =========================================================
   SECTION 4 — READ
   ========================================================= */
.read {
  background: var(--cream);
  color: var(--text-on-light);
  padding: clamp(96px, 14vw, 160px) 28px;
}
.read-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.read-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 56px;
  color: var(--text-on-light);
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0 0 72px;
  border-top: 1px solid rgba(26,26,46,.1);
}
.article {
  border-bottom: 1px solid rgba(26,26,46,.1);
}
.article a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 28px 24px;
  color: var(--text-on-light);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.article a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--amethyst);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.article a:hover {
  background-color: var(--lavender-pale);
  color: var(--amethyst);
}
.article a:hover::before {
  transform: scaleY(1);
}
.article h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 0 0 8px;
  grid-column: 1;
}
.article p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted-on-light);
  margin: 0;
  grid-column: 1;
}
.article .read-more {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.article a:hover .read-more { color: var(--amethyst); }
@media (max-width: 640px) {
  .article a {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }
  .article .read-more {
    grid-column: 1;
    grid-row: auto;
  }
}

.subscribe {
  background: var(--lavender-pale);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 760px) {
  .subscribe { grid-template-columns: 1fr; }
}
.subscribe-copy h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--text-on-light);
}
.subscribe-copy p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--muted-on-light);
  margin: 0;
}
.substack-embed {
  width: 100%;
  height: 100px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}
.btn-secondary {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1.5px solid var(--amethyst);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--amethyst);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn-secondary:hover {
  background: var(--amethyst);
  color: var(--cream);
  transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--midnight);
  color: var(--text-on-dark);
  padding: clamp(64px, 10vw, 110px) 28px 12px;
  position: relative;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 56px;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer .lockup { grid-column: 1; }
.footer-tag {
  grid-column: 1;
  font-family: var(--font-head);
  font-weight: 400;
  font-style: italic;
  font-size: 17px;
  color: var(--lavender);
  margin: 16px 0 0;
}
.footer-links {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
@media (max-width: 760px) {
  .footer-links { grid-column: 1; align-items: flex-start; margin-top: 16px; }
}
.footer-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-body);
  color: var(--muted-on-dark);
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--cream); }
.footer-links .link-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--cream);
}
.footer-links .link-detail {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.footer-copy {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(196,168,224,.14);
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title span[data-reveal] {
  transition-delay: .1s;
}
.hero-title span[data-reveal]:nth-child(2) {
  transition-delay: .28s;
}
.hero .hero-sub[data-reveal]       { transition-delay: .46s; }
.hero .gradient-bar[data-reveal]   { transition-delay: .62s; }

.product-features .feature[data-reveal]:nth-child(1) { transition-delay: .05s; }
.product-features .feature[data-reveal]:nth-child(2) { transition-delay: .15s; }
.product-features .feature[data-reveal]:nth-child(3) { transition-delay: .25s; }
.product-features .feature[data-reveal]:nth-child(4) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-chev { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   FOCUS STATES (a11y)
   ========================================================= */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 4px;
  border-radius: 4px;
}
