/* X Creator marketing — ink studio, voice-first */

:root {
  --ink: #070709;
  --ink-elevated: #0a0a0c;
  --surface: #121214;
  --line: #232326;
  --muted: #6e6e73;
  --soft: #8e8e93;
  --text: #f5f5f7;
  --text-dim: #c7c7cc;
  --accent: #f0b429;
  --accent-soft: rgba(240, 180, 41, 0.14);
  --orb-a: #1a1a2e;
  --orb-b: #16213e;
  --phone-bezel: #1c1c1e;
  --phone-rim: #2c2c2e;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
  --max: 1120px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

.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;
}

/* Atmosphere */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
}

.brand,
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-x {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.brand-rule {
  width: 1px;
  height: 1.1rem;
  background: var(--soft);
  opacity: 0.55;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-lockup {
  margin: 0 0 1.25rem;
}

.brand-lockup .brand-x {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  letter-spacing: -0.08em;
}

.brand-lockup .brand-rule {
  height: clamp(1.75rem, 5vw, 2.75rem);
  width: 2px;
  background: var(--text);
  opacity: 0.85;
}

.brand-lockup .brand-name {
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.28em;
}

.brand-lockup-sm .brand-x {
  font-size: 2rem;
}

.brand-lockup-sm .brand-rule {
  height: 1.35rem;
}

.brand-lockup-sm .brand-name {
  font-size: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--soft);
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink) !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: #fff;
  color: var(--ink) !important;
}

@media (max-width: 720px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
}

/* Hero — one composition: brand + line + CTA over a full-bleed phone plane */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: orb-drift 18s var(--ease-out) infinite alternate;
}

.orb-a {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  top: -12%;
  right: -8%;
  background: var(--orb-a);
  opacity: 0.75;
}

.orb-b {
  width: min(60vw, 440px);
  height: min(60vw, 440px);
  bottom: 8%;
  left: -12%;
  background: var(--orb-b);
  opacity: 0.55;
  animation-delay: -6s;
  animation-duration: 22s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 245, 247, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 245, 247, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

@keyframes orb-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, 4%, 0) scale(1.08);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero h1 .h1-dim {
  color: var(--soft);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover {
  background: #fff;
}

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

.btn-ghost:hover {
  border-color: var(--soft);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 0.25rem;
  min-height: min(56svh, 620px);
  /* Soft vignette so copy stays readable without sticker overlays */
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 78%, transparent 100%);
}

.phone {
  position: relative;
  width: min(100%, 280px);
  border-radius: 2rem;
  padding: 0.45rem;
  background: linear-gradient(160deg, var(--phone-rim), var(--phone-bezel) 45%, #0c0c0e);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px rgba(0, 0, 0, 0.55);
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone img {
  width: 100%;
  border-radius: 1.6rem;
  background: #000;
}

.phone-hero {
  width: min(92vw, 320px);
  animation:
    phone-rise 1.15s var(--ease-out) both,
    phone-float 7s ease-in-out 1.15s infinite;
}

@keyframes phone-rise {
  from {
    opacity: 0;
    transform: translateY(56px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (min-width: 900px) {
  .hero {
    display: block;
    padding: 0;
    min-height: calc(100svh - var(--header-h));
  }

  .hero-copy {
    position: relative;
    z-index: 3;
    max-width: 46rem;
    padding: clamp(3rem, 8vh, 5.5rem) clamp(2rem, 5vw, 4rem) 2rem;
  }

  .hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -10% -20% -20% -15%;
    background: radial-gradient(
      ellipse 70% 80% at 20% 40%,
      rgba(7, 7, 9, 0.92) 0%,
      rgba(7, 7, 9, 0.55) 55%,
      transparent 75%
    );
    pointer-events: none;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 0;
    margin: 0;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0;
    /* Edge-to-edge plane: phone bleeds off right + bottom */
    mask-image: linear-gradient(
      105deg,
      transparent 0%,
      transparent 28%,
      black 48%,
      black 100%
    );
  }

  .phone-hero {
    width: min(46vw, 480px);
    margin-right: -4vw;
    margin-bottom: -8vh;
    border-radius: 2.4rem;
    padding: 0.55rem;
  }

  .phone-hero img {
    border-radius: 1.95rem;
  }
}

/* Sections */
.section {
  position: relative;
  padding: clamp(4.5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-inner.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 860px) {
  .section-inner.split {
    grid-template-columns: 1fr 1fr;
  }

  .section-inner.split.reverse .section-copy {
    order: 2;
  }

  .section-inner.split.reverse .section-media {
    order: 1;
  }
}

.section-copy.centered {
  max-width: 36rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-copy > p {
  margin: 0 0 1.5rem;
  color: var(--text-dim);
  max-width: 32rem;
  font-size: 1.1rem;
}

.section-copy.centered > p {
  margin-left: auto;
  margin-right: auto;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text);
  font-weight: 500;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-media {
  display: flex;
  justify-content: center;
}

.section-voice {
  background:
    radial-gradient(ellipse 60% 50% at 85% 40%, rgba(26, 26, 46, 0.55), transparent 70%),
    var(--ink-elevated);
}

.section-workflow {
  background:
    linear-gradient(180deg, transparent, rgba(240, 180, 41, 0.03)),
    var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-studio {
  background:
    radial-gradient(ellipse 55% 45% at 15% 50%, rgba(22, 33, 62, 0.5), transparent 70%),
    var(--ink-elevated);
}

.section-activity {
  background: var(--ink);
}

/* Workflow stages — not cards: open composition */
.workflow-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  max-width: 44rem;
  margin: 0 auto;
}

.stage {
  margin: 0;
  text-align: center;
}

.stage .phone-sm {
  width: min(100%, 220px);
  margin: 0 auto 1.25rem;
  animation: none;
}

.stage figcaption {
  display: grid;
  gap: 0.25rem;
}

.stage strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stage span {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .workflow-stage {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stage .phone-sm {
    width: min(100%, 240px);
  }
}

/* CTA */
.section-cta {
  padding-top: clamp(3rem, 8vw, 5rem);
}

.cta-panel {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  border-radius: 1.75rem;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(240, 180, 41, 0.1), transparent 55%),
    linear-gradient(180deg, #121216, #0a0a0c);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 245, 247, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 245, 247, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
}

.cta-panel .brand-lockup {
  justify-content: center;
}

.cta-panel h2 {
  margin-bottom: 0.75rem;
}

.cta-panel > p {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--text-dim);
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.waitlist input {
  flex: 1 1 220px;
  max-width: 320px;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist input::placeholder {
  color: var(--muted);
}

.waitlist input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.waitlist .btn {
  flex: 0 0 auto;
}

.form-note {
  margin: 0 0 0.75rem !important;
  color: var(--accent) !important;
  font-weight: 500;
}

.platforms {
  margin: 0 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.brand-footer .brand-x {
  font-size: 1.1rem;
}

.brand-footer .brand-name {
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--soft);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--text);
}

/* Legal pages */
.legal-page {
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.legal-article {
  max-width: 40rem;
  margin: 0 auto;
}

.legal-article h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.5rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal-article h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-article p,
.legal-article li {
  color: var(--text-dim);
}

.legal-article ul {
  padding-left: 1.2rem;
}

.legal-article li + li {
  margin-top: 0.5rem;
}

.legal-article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

[data-reveal][data-delay="1"] {
  transition-delay: 0.12s;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .orb,
  .phone-hero,
  .phone {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Manifesto: consumers vs creators */
.section-manifesto .section-copy.centered {
  margin-bottom: 2.5rem;
}

.manifesto-quote {
  margin: 0 auto;
  max-width: 44rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background:
    radial-gradient(120% 140% at 50% 0%, var(--accent-soft), transparent 55%),
    var(--ink-elevated);
  text-align: center;
}

.manifesto-quote blockquote {
  margin: 0;
}

.manifesto-quote blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.manifesto-quote figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.manifesto-close {
  max-width: 36rem;
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 1.1rem;
}
