/* ========================================
   Hormony — gethormony.co.uk

   Aesthetic: Light, warm, pastel.
   Trans-flag-inspired palette: soft sky blue, blush pink, white.
   Fraunces (variable optical serif) + Outfit (geometric sans).
   Queer-culture friendly without being garish.
   Film grain texture. Organic shapes.
   ======================================== */

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { height: 12px; opacity: 1; }
  50% { height: 28px; opacity: 0.4; }
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 40px) scale(0.95); }
  66% { transform: translate(50px, -10px) scale(1.08); }
}

:root {
  /* ---- Trans-flag pastel palette ---- */
  --sky: #91CDE8;           /* pastel blue — trans flag blue, softened */
  --sky-pale: #DCF0FA;      /* very light blue wash */
  --sky-deep: #5BA4C9;      /* deeper blue for text/accents */
  --blush: #F2A7C3;         /* pastel pink — trans flag pink, softened */
  --blush-pale: #FDE8F0;    /* very light pink wash */
  --blush-deep: #D4789B;    /* deeper pink for accents */
  --white: #FEFCFD;         /* warm white — the trans flag white */
  --cloud: #F7F3F5;         /* off-white with pink warmth */
  --mist: #EDE8EC;          /* subtle border colour */
  --lilac: #C8B3D9;         /* soft purple accent — queer culture nod */
  --lilac-pale: #EDE4F3;
  --honey: #F0D48A;         /* warm gold for small highlights */

  /* Neutrals — warm-toned */
  --ink: #3A2F3D;           /* deep plum-charcoal, not pure black */
  --ink-mid: #5E5463;
  --ink-light: #8A8290;
  --ink-faint: #B5B0B8;

  /* Type */
  --f-display: 'Fraunces', 'Georgia', serif;
  --f-body: 'Outfit', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Radius */
  --r: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

/* ---- Grain overlay ---- */
.grain {
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  animation: grain 8s steps(10) infinite;
  opacity: 0.4;
}

/* ---- Layout ---- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

/* ---- Animation helpers ---- */
.anim-in {
  opacity: 0;
  animation: slideIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 0.12s + 0.2s);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ink);
}

h3 {
  font-family: var(--f-body);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

p {
  color: var(--ink-light);
  font-size: 1rem;
  font-weight: 300;
}

.kicker {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: var(--space-sm);
}

.section-head { margin-bottom: var(--space-lg); }
.section-sub {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 440px;
  margin-top: var(--space-xs);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 13px 28px;
  border-radius: 100px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn--fill {
  background: var(--ink);
  color: var(--white);
}
.btn--fill:hover {
  background: var(--blush-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58,47,61,0.12);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--mist);
}
.btn--ghost:hover {
  border-color: var(--blush);
  background: var(--blush-pale);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ========================================
   Nav
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--space-md);
  height: 64px;
  background: rgba(254,252,253,0.82);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid rgba(58,47,61,0.05);
}

.nav-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  grid-column: 2;
  justify-self: center;
}
.nav-logo canvas {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  grid-column: 3;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 7px 18px !important;
  background: var(--ink);
  color: var(--white) !important;
  border-radius: 100px;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--blush-deep) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  grid-column: 3;
  justify-self: end;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: 0.3s;
}
.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { bottom: 4px; }
.nav-toggle.active span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.active span:last-child { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
  padding: var(--space-md);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-sm);
}
.mobile-menu a {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: var(--space-xs) 0;
}
.mobile-menu.open { display: flex; }

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px var(--space-md) var(--space-xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.hero-orb--1 {
  width: 520px;
  height: 520px;
  top: -12%;
  right: -8%;
  background: var(--sky-pale);
  animation: orbFloat1 20s ease-in-out infinite;
}
.hero-orb--2 {
  width: 400px;
  height: 400px;
  bottom: 2%;
  left: -10%;
  background: var(--blush-pale);
  animation: orbFloat2 25s ease-in-out infinite;
}
.hero-orb--3 {
  width: 220px;
  height: 220px;
  top: 38%;
  left: 48%;
  background: var(--lilac-pale);
  animation: orbFloat1 18s ease-in-out infinite reverse;
}

/* Hero logo — large, centred, animates to nav on scroll */
.hero-logo-wrap {
  margin-bottom: var(--space-md);
}
.hero-logo-wrap canvas {
  display: block;
  margin: 0 auto;
}

/* Floating logo clone used during scroll animation */
.logo-float {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  transform-origin: left center;
  will-change: transform, left, top, opacity;
  transition: opacity 0.15s;
}
.logo-float canvas { display: block; }

/* Hide nav logo by default — the floating logo takes over */
.nav-logo { opacity: 0; transition: opacity 0.15s; }
.nav-logo.settled { opacity: 1; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: center;
  padding: 0 var(--space-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  padding: 6px 16px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--mist);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  color: var(--blush);
  animation: heartbeat 1.4s ease-in-out infinite;
}
.badge-dot::before {
  content: '\2764';
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  56% { transform: scale(1); }
}

.hero-h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--space-md);
}
.hero-h1 em {
  font-style: italic;
  color: var(--blush-deep);
}

.hero-p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-light);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1.5px;
  height: 12px;
  background: var(--ink-faint);
  border-radius: 2px;
  animation: scrollPulse 2.5s ease-in-out infinite;
}

/* ========================================
   Numbers
   ======================================== */
.numbers {
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  background: var(--cloud);
}
.numbers-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.num { text-align: center; }
.num-val {
  display: block;
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.num-label {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.4;
  font-weight: 400;
}

/* ========================================
   Problem
   ======================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.problem-card {
  padding: var(--space-lg) var(--space-md) var(--space-md);
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  background: var(--white);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(58,47,61,0.06);
}
.problem-num {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blush-deep);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}
.problem-card h3 { margin-bottom: var(--space-xs); }
.problem-card p { font-size: 0.92rem; }

/* ========================================
   Features — light pastel grid
   ======================================== */
.section--dark {
  background: linear-gradient(165deg, var(--sky-pale) 0%, var(--blush-pale) 100%);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,179,217,0.2), transparent 70%);
  pointer-events: none;
}

.section--dark .section-head h2 { color: var(--ink); }
.section--dark .kicker { color: var(--sky-deep); }
.section--dark .section-sub { color: var(--ink-mid); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}
.feat {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  background: rgba(254,252,253,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--r-lg);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.feat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(58,47,61,0.08);
  background: rgba(254,252,253,0.9);
}

.feat-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: var(--space-sm);
  line-height: 1;
}
/* Alternate pastel backgrounds for icons */
.feat:nth-child(1) .feat-icon { background: var(--sky-pale); color: var(--sky-deep); }
.feat:nth-child(2) .feat-icon { background: var(--blush-pale); color: var(--blush-deep); }
.feat:nth-child(3) .feat-icon { background: var(--lilac-pale); color: var(--lilac); }
.feat:nth-child(4) .feat-icon { background: rgba(240,212,138,0.25); color: #B8942E; }
.feat:nth-child(5) .feat-icon { background: var(--blush-pale); color: var(--blush-deep); }
.feat:nth-child(6) .feat-icon { background: var(--sky-pale); color: var(--sky-deep); }

.feat h3 {
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 1rem;
}
.feat p {
  color: var(--ink-light);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.55;
}

/* ========================================
   Values
   ======================================== */
.values-section {
  background: var(--cloud);
}
.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.val-rule {
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: var(--space-md);
}
.val:nth-child(1) .val-rule { background: var(--sky); }
.val:nth-child(2) .val-rule { background: var(--blush); }
.val:nth-child(3) .val-rule { background: var(--lilac); }

.val h3 {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.val p { font-size: 0.92rem; }

/* ========================================
   Survey
   ======================================== */
.section--accent {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.section--accent::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145,205,232,0.12), transparent 70%);
  pointer-events: none;
}
.section--accent::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,167,195,0.08), transparent 70%);
  pointer-events: none;
}
.survey-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
}
.survey-wrap .kicker { color: var(--sky); }
.survey-wrap h2 { color: var(--white); margin-bottom: var(--space-sm); }
.survey-wrap p { color: rgba(254,252,253,0.6); margin-bottom: var(--space-lg); font-weight: 300; font-size: 1.05rem; }
.survey-wrap .btn--fill {
  background: var(--blush);
  color: var(--ink);
  font-weight: 600;
}
.survey-wrap .btn--fill:hover {
  background: var(--blush-pale);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ========================================
   Waitlist
   ======================================== */
.waitlist-wrap { max-width: 720px; }
.waitlist-card {
  background: linear-gradient(135deg, var(--sky-pale), var(--blush-pale));
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-xl);
  padding: var(--space-lg);
}
.waitlist-text { margin-bottom: var(--space-md); }
.waitlist-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: var(--space-xs); }
.waitlist-text p { font-size: 0.95rem; }

.form-row {
  display: flex;
  gap: var(--space-xs);
}
.form-input {
  flex: 1;
  padding: 13px 20px;
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 400;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  background: rgba(254,252,253,0.8);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus {
  border-color: var(--blush);
  background: var(--white);
}
.form-input::placeholder { color: var(--ink-faint); }

.form-fine {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.75rem;
  color: var(--ink-light);
}

.waitlist-ok {
  display: none;
}
.waitlist-ok.show {
  display: block;
}
.waitlist-ok p {
  font-weight: 600;
  color: var(--sky-deep);
  font-size: 1.05rem;
  padding: var(--space-sm) 0;
}

/* ========================================
   Founders
   ======================================== */
.founders-section {
  border-top: 1px solid var(--mist);
}
.founders-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.founders-inner h2 { margin-bottom: var(--space-sm); }
.founders-inner p { font-size: 1.02rem; line-height: 1.75; }

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--ink);
  padding: var(--space-xl) 0 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.footer-brand .nav-logo { font-size: 1.5rem; opacity: 1; }
.footer-brand p {
  color: rgba(254,252,253,0.3);
  font-size: 0.85rem;
  margin-top: -8px;
  font-weight: 300;
}
.footer-nav {
  display: flex;
  gap: var(--space-xl);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col h4 {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(254,252,253,0.2);
  margin-bottom: 4px;
}
.footer-col a {
  color: rgba(254,252,253,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-legal {
  margin-top: var(--space-lg);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(254,252,253,0.06);
}
.footer-legal small {
  color: rgba(254,252,253,0.18);
  font-size: 0.75rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .section { padding: var(--space-xl) 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero { min-height: 90vh; padding-top: 88px; width: 100%; }
  .hero-inner { max-width: 100%; box-sizing: border-box; }
  .hero-logo-wrap { margin-bottom: 0; }
  .hero-logo-wrap canvas { width: 85vw !important; height: auto !important; }
  .logo-float canvas { max-width: 85vw; height: auto !important; }
  .hero-h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-h1 { word-wrap: break-word; }
  .hero-p { font-size: 0.95rem; }
  .hero-scroll { display: none; }

  .numbers-inner { gap: var(--space-lg); }

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

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

  .values-row { grid-template-columns: 1fr; gap: var(--space-lg); }

  .survey-wrap { padding: var(--space-lg) var(--space-md); }
  .survey-wrap h2 { font-size: 1.8rem; }

  .waitlist-card { padding: var(--space-lg) var(--space-md); }

  .founders-inner { padding: var(--space-lg) var(--space-md); }

  .form-row { flex-direction: column; }
  .form-row .btn { width: 100%; justify-content: center; }

  .footer-grid { flex-direction: column; }
  .footer-nav { gap: var(--space-lg); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .numbers-inner { flex-direction: column; gap: var(--space-md); align-items: center; }
}
