/* Ponyo Studio — coming soon
   Light palette from the owner's board: ink 0A1931 · deep 1A3D63 · sea 4A7FA7 · light B3CFE5 · paper F6FAFD.
   Token scales are 3·6·9 by construction. No external dependencies. */

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0A1931;
  --deep: #1A3D63;
  --sea: #4A7FA7;
  --light: #B3CFE5;
  --paper: #F6FAFD;
  --line: rgba(26, 61, 99, .16);
  --muted: rgba(10, 25, 49, .78);

  --space-1: 3px;
  --space-2: 6px;
  --space-3: 9px;
  --space-4: 12px;
  --space-5: 18px;
  --space-6: 24px;
  --space-7: 36px;
  --space-8: 48px;
  --space-9: 60px;
  --space-10: 72px;
  --space-11: 96px;
  --space-12: 120px;

  --font-12: 12px;
  --font-15: 15px;
  --font-18: 18px;
  --font-21: 21px;
  --font-24: 24px;
  --font-30: 30px;
  --font-36: 36px;
  --font-48: 48px;
  --font-60: 60px;

  --radius-9: 9px;
  --radius-12: 12px;
  --radius-18: 18px;
  --radius-24: 24px;
  --radius-36: 36px;
  --radius-pill: 999px;

  --border: 1.2px;
  --control-h: 36px;
  --control-h-touch: 48px;
  --container: 1152px;
  --header-h: 72px;

  --shadow-1: 0 6px 24px rgba(10, 25, 49, .1);
  --shadow-2: 0 12px 36px rgba(10, 25, 49, .14);
  --shadow-3: 0 18px 48px rgba(10, 25, 49, .18);

  --ease: ease-out;
  --dur-fast: 180ms;
  --dur: 240ms;
  --dur-slow: 360ms;
  --dur-reveal: 600ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  font-size: var(--font-15);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--deep);
  color: var(--paper);
}

:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-6);
  top: var(--space-4);
  z-index: 60;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-12);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--font-15);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-96px);
  transition: transform var(--dur-fast) var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-7);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background-color: rgba(246, 250, 253, .92);
  border-bottom: var(--border) solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--control-h);
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: var(--space-7);
  height: var(--space-7);
  flex: none;
}

.logo-text {
  display: grid;
  gap: var(--space-1);
  line-height: 1.2;
}

.logo-word {
  font-size: var(--font-18);
  font-weight: 800;
  letter-spacing: .18em;
}

.logo-sub {
  font-size: var(--font-12);
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: var(--control-h);
  padding-inline: var(--space-2);
  border-radius: var(--radius-9);
  color: var(--muted);
  font-size: var(--font-15);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.nav-link:hover {
  color: var(--ink);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  height: var(--control-h);
  padding-inline: var(--space-6);
  border: var(--border) solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--font-15);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn svg {
  width: var(--font-18);
  height: var(--font-18);
  flex: none;
}

.btn:hover {
  transform: translateY(1.2px);
}

.btn:active {
  transform: translateY(1.2px);
}

.btn:disabled {
  opacity: .64;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  box-shadow: 0 0 0 3px rgba(74, 127, 167, .27);
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(74, 127, 167, .27);
}

.btn-small {
  height: var(--control-h);
  padding-inline: var(--space-5);
}

/* Hero */

.hero {
  padding-block: var(--space-11);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
}

.hero-copy {
  max-width: 540px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--deep);
  font-size: var(--font-12);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  max-width: 660px;
  margin-bottom: var(--space-6);
  font-size: var(--font-60);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.018em;
}

.lead {
  max-width: 540px;
  margin-bottom: var(--space-7);
  color: var(--muted);
  font-size: var(--font-18);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.hero-art {
  display: grid;
  place-items: center;
  padding: var(--space-6);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-36);
  background: var(--paper);
  box-shadow: var(--shadow-2);
}

.printer {
  width: 100%;
  max-width: 528px;
  height: auto;
}

/* Illustration motion */

.nozzle {
  animation: nozzle-travel 6s ease-in-out infinite alternate;
}

.spool {
  transform-box: fill-box;
  transform-origin: center;
  animation: spool-turn 12s linear infinite;
}

.float-a {
  animation: float-soft 9s ease-in-out infinite alternate;
}

.float-b {
  animation: float-soft 9s ease-in-out 900ms infinite alternate;
}

@keyframes nozzle-travel {
  from { transform: translate(0, 0); }
  to { transform: translate(-24px, 12px); }
}

@keyframes spool-turn {
  to { transform: rotate(360deg); }
}

@keyframes float-soft {
  from { transform: translateY(0); }
  to { transform: translateY(-9px); }
}

/* Sections */

.section {
  padding-block: var(--space-11);
}

.kicker {
  margin-bottom: var(--space-5);
  color: var(--deep);
  font-size: var(--font-12);
  font-weight: 600;
  letter-spacing: .18em;
}

h2 {
  max-width: 660px;
  margin-bottom: var(--space-7);
  font-size: var(--font-36);
  font-weight: 800;
  line-height: 1.35;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  min-height: 300px;
  padding: var(--space-6);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-24);
  background: var(--paper);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 127, 167, .27);
  box-shadow: var(--shadow-3);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: var(--space-8);
  height: var(--space-8);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-12);
  background: rgba(179, 207, 229, .3);
  color: var(--deep);
}

.icon-tile svg {
  width: var(--font-24);
  height: var(--font-24);
}

.card h3 {
  font-size: var(--font-21);
  font-weight: 800;
  line-height: 1.35;
}

.card p {
  color: var(--muted);
  font-size: var(--font-15);
  line-height: 1.65;
}

/* Waitlist */

.waitlist-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding: var(--space-8);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-36);
  background: var(--light);
}

.waitlist-copy h2 {
  margin-bottom: var(--space-5);
}

.waitlist-copy p {
  color: var(--muted);
  font-size: var(--font-15);
  line-height: 1.65;
}

.waitlist-form {
  display: grid;
  align-content: start;
  gap: var(--space-3);
}

.field-label {
  font-size: var(--font-12);
  font-weight: 600;
  color: var(--ink);
}

.field-row {
  display: flex;
  gap: var(--space-3);
}

.field {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--control-h);
  padding-inline: var(--space-4);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-12);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--font-15);
  line-height: 1.2;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.field::placeholder {
  color: rgba(10, 25, 49, .45);
}

.field:hover {
  border-color: rgba(74, 127, 167, .45);
}

.field:disabled {
  opacity: .64;
  cursor: not-allowed;
}

.waitlist-form .btn {
  border-radius: var(--radius-12);
  padding-inline: var(--space-6);
}

.form-note {
  color: var(--muted);
  font-size: var(--font-12);
  line-height: 1.5;
}

.form-status {
  min-height: var(--space-6);
  color: var(--deep);
  font-size: var(--font-15);
  line-height: 1.5;
}

.form-status.is-error {
  color: var(--deep);
  font-weight: 600;
}

.form-status.is-exists {
  color: var(--ink);
}

.hp {
  position: absolute;
  inline-size: var(--border);
  block-size: var(--border);
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
}

/* Footer */

.site-footer {
  border-top: var(--border) solid var(--line);
  padding-block: var(--space-7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-mark {
  width: var(--space-7);
  height: var(--space-7);
  flex: none;
}

.footer-brand p,
.footer-note {
  color: var(--muted);
  font-size: var(--font-12);
  line-height: 1.5;
}

/* Anchors */

section[id],
#main {
  scroll-margin-top: 96px;
}

/* Reveal (JS adds the class; without JS the content is visible) */

.reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
}

.reveal-init.is-visible {
  opacity: 1;
  transform: none;
}

.card-grid .card.reveal-init:nth-child(2) {
  transition-delay: 60ms;
}

.card-grid .card.reveal-init:nth-child(3) {
  transition-delay: 120ms;
}

/* Tablet */

@media (max-width: 960px) {
  :root {
    --header-h: 60px;
  }

  h1 {
    font-size: var(--font-48);
  }

  .hero {
    padding-block: var(--space-9);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-art {
    max-width: 528px;
    width: 100%;
    margin-inline: auto;
  }

  .section {
    padding-block: var(--space-9);
  }

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

  .waitlist-panel {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .waitlist-copy h2 {
    margin-bottom: var(--space-4);
  }
}

/* Touch tier and compact header */

@media (max-width: 48rem) {
  .site-nav .nav-link {
    display: none;
  }

  .btn,
  .btn-small,
  .field {
    height: var(--control-h-touch);
  }

  .logo {
    min-height: var(--control-h-touch);
  }
}

/* Mobile */

@media (max-width: 600px) {
  .container {
    padding-inline: var(--space-6);
  }

  h1 {
    font-size: var(--font-36);
  }

  h2 {
    font-size: var(--font-30);
  }

  .lead {
    font-size: var(--font-15);
    margin-bottom: var(--space-6);
  }

  .hero {
    padding-block: var(--space-9);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-art {
    max-width: 360px;
    padding: var(--space-5);
    border-radius: var(--radius-24);
  }

  .section {
    padding-block: var(--space-9);
  }

  .card {
    min-height: 0;
    padding: var(--space-6);
  }

  .waitlist-panel {
    padding: var(--space-7) var(--space-6);
    border-radius: var(--radius-24);
  }

  .field-row {
    flex-direction: column;
  }

  .field-row .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Motion guard */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-init {
    opacity: 1;
    transform: none;
  }
}
