/* ==================================================================
   SMTHING CREATIONS — COMING SOON PAGE
   Design tokens: ink #14171B / ink-2 #1B1F24 / paper #F6F6F3 /
   paper-2 #ECEBE6 / accent #1B8F63 / accent-strong #12643F
   Type: grotesk display, humanist body, mono for labels + cursor
================================================================== */

/* ------------------------------------------------------------------
   1. RESET
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body, h1, h2, h3, p, dl, dd, figure { margin: 0; }

ul, ol { list-style: none; margin: 0; padding: 0; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

input, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------------------------
   2. DESIGN TOKENS
------------------------------------------------------------------ */
:root {
  /* colour */
  --ink:            #14171B;
  --ink-2:          #1B1F24;
  --paper:          #F6F6F3;
  --paper-2:        #ECEBE6;
  --accent:         #1B8F63;
  --accent-strong:  #12643F;

  --text-on-paper:        rgba(20, 23, 27, 0.92);
  --text-on-paper-muted:  rgba(20, 23, 27, 0.62);
  --text-on-ink:          rgba(246, 246, 243, 0.94);
  --text-on-ink-muted:    rgba(246, 246, 243, 0.62);

  --line-on-paper: rgba(20, 23, 27, 0.12);
  --line-on-ink:   rgba(246, 246, 243, 0.16);

  /* type */
  --font-display: 'Neue Haas Grotesk Display', 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* layout */
  --container-max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --radius-sm: 3px;
  --radius-md: 6px;

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

/* ------------------------------------------------------------------
   3. BASE
------------------------------------------------------------------ */
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-on-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--font-mono); }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------------
   4. SIGNATURE ELEMENT — the blinking cursor
------------------------------------------------------------------ */
.cursor {
  font-family: var(--font-mono);
  color: var(--accent);
  animation: blink 1.1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------------
   5. HEADER / NAV
------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 23, 27, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-on-ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text-on-ink);
}

.nav__brand-sub {
  color: var(--text-on-ink-muted);
  font-weight: 500;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
}
.nav__toggle-bar {
  width: 20px; height: 2px;
  background: var(--text-on-ink);
  border-radius: 2px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.95rem;
  color: var(--text-on-ink-muted);
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--text-on-ink); }

/* ------------------------------------------------------------------
   6. BUTTONS
------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-1px); }

.btn--secondary {
  background: transparent;
  border-color: var(--line-on-ink);
  color: var(--text-on-ink);
}
.btn--secondary:hover { border-color: var(--text-on-ink-muted); transform: translateY(-1px); }

.btn--submit { width: 100%; }
.btn--submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------------
   7. SECTION SHELL
------------------------------------------------------------------ */
.section {
  padding-block: var(--section-pad);
}

.section--dark {
  background: var(--ink);
  color: var(--text-on-ink);
}

.section--soft {
  background: var(--paper-2);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.15;
}

.section--dark .section__title { color: var(--text-on-ink); }

.section__intro {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-on-paper-muted);
  max-width: 42rem;
}
.section--dark .section__intro,
.section--soft .section__intro { color: var(--text-on-paper-muted); }
.section--dark .section__intro { color: var(--text-on-ink-muted); }

.section__closer {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--text-on-paper-muted);
  max-width: 42rem;
}

/* ------------------------------------------------------------------
   8. HERO
------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 14vw, 9rem) clamp(5rem, 10vw, 7rem);
}

.hero__watermark {
  position: absolute;
  top: 8%;
  right: -4%;
  font-family: var(--font-mono);
  font-size: clamp(6rem, 18vw, 13rem);
  font-weight: 700;
  color: var(--text-on-ink);
  opacity: 0.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-on-ink-muted);
  border: 1px solid var(--line-on-ink);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27, 143, 99, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(27, 143, 99, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  color: var(--text-on-ink);
}

.hero__lede {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-on-ink-muted);
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ------------------------------------------------------------------
   9. ABOUT
------------------------------------------------------------------ */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--text-on-paper-muted);
  max-width: 40rem;
}
.about__text p + p { margin-top: 1.1rem; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-content: start;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-on-paper);
  border-radius: var(--radius-sm);
  color: var(--text-on-paper);
}

/* ------------------------------------------------------------------
   10. FEATURE CARDS
------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line-on-paper);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card__icon {
  display: inline-flex;
  width: 2.25rem; height: 2.25rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.card__desc {
  font-size: 0.95rem;
  color: var(--text-on-paper-muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------------
   11. WHY REBUILD — compare grid (dark section)
------------------------------------------------------------------ */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-on-ink);
  border-left: 1px solid var(--line-on-ink);
}

.compare-item {
  padding: 1.75rem;
  border-right: 1px solid var(--line-on-ink);
  border-bottom: 1px solid var(--line-on-ink);
}

.compare-item__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-on-ink);
  margin-bottom: 0.5rem;
}

.compare-item__desc {
  font-size: 0.92rem;
  color: var(--text-on-ink-muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------------
   12. VALUES — glossary
------------------------------------------------------------------ */
.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem 3rem;
}

.glossary__item {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-on-paper);
}

.glossary__term {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.glossary__def {
  font-size: 1rem;
  color: var(--text-on-paper);
  margin-inline-start: 0;
  line-height: 1.55;
}

/* ------------------------------------------------------------------
   13. FUTURE CONTENT — topic cluster
------------------------------------------------------------------ */
.topic-cluster {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 2.1;
  color: var(--text-on-paper-muted);
  max-width: 56rem;
}
.topic-cluster span {
  color: var(--text-on-paper);
}
.topic-cluster span::after {
  content: " \00b7 ";
  color: var(--text-on-paper-muted);
}
.topic-cluster span:last-child::after {
  content: "";
}

/* ------------------------------------------------------------------
   14. CONTACT
------------------------------------------------------------------ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact__lede {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-on-ink-muted);
}

.contact__channels {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact__channels li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.95rem;
}
.contact__channel-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-on-ink-muted);
  min-width: 5.5rem;
}
.contact__channels a {
  color: var(--text-on-ink);
  border-bottom: 1px solid var(--line-on-ink);
  transition: border-color 0.2s var(--ease);
}
.contact__channels a:hover { border-color: var(--accent); }
.contact__channel-soon {
  color: var(--text-on-ink-muted);
  font-style: italic;
}

/* ------------------------------------------------------------------
   15. FORM
------------------------------------------------------------------ */
.form__row {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-on-ink-muted);
  margin-bottom: 0.5rem;
}

.form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-sm);
  color: var(--text-on-ink);
  transition: border-color 0.2s var(--ease);
}
.form__input:focus { border-color: var(--accent); }
.form__input::placeholder { color: var(--text-on-ink-muted); }

.form__textarea { resize: vertical; min-height: 7rem; }

.form__error {
  display: block;
  min-height: 1.2rem;
  font-size: 0.8rem;
  color: #E8836B;
  margin-top: 0.4rem;
}

.form__status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  min-height: 1.2rem;
}

/* ------------------------------------------------------------------
   16. FOOTER
------------------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: var(--text-on-ink);
  border-top: 1px solid var(--line-on-ink);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-on-ink);
}

.nav__brand--footer { display: inline-block; margin-bottom: 0.75rem; }

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-on-ink-muted);
  max-width: 24rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__nav a {
  font-size: 0.9rem;
  color: var(--text-on-ink-muted);
  transition: color 0.2s var(--ease);
}
.footer__nav a:hover { color: var(--text-on-ink); }

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__social a {
  font-size: 0.9rem;
  color: var(--text-on-ink-muted);
  transition: color 0.2s var(--ease);
}
.footer__social a:hover { color: var(--text-on-ink); }
.footer__social-soon {
  font-size: 0.9rem;
  color: var(--text-on-ink-muted);
  opacity: 0.6;
  font-style: italic;
}

.footer__meta {
  padding-block: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-on-ink-muted);
}

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

/* ------------------------------------------------------------------
   18. REDUCED MOTION
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; opacity: 1; }
  .status-dot { animation: none; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .card, .form__input, .skip-link {
    transition: none;
  }
}

/* ------------------------------------------------------------------
   19. HIGH CONTRAST COMPATIBILITY
------------------------------------------------------------------ */
@media (prefers-contrast: more) {
  :root {
    --line-on-paper: rgba(20, 23, 27, 0.4);
    --line-on-ink: rgba(246, 246, 243, 0.4);
  }
  .btn--secondary { border-width: 2px; }
}

/* ------------------------------------------------------------------
   20. RESPONSIVE
------------------------------------------------------------------ */
@media (max-width: 860px) {
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: absolute;
    top: 4.5rem;
    left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-on-ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav__menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__link {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-on-ink);
  }
  .nav__menu .btn { margin-top: 1rem; width: 100%; }

  .hero__watermark { opacity: 0.04; }
}

@media (max-width: 540px) {
  .card-grid { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; text-align: center; }
}
