:root {
  --ink: #241f1a;
  --ink-muted: #675e54;
  --night: #15242b;
  --night-soft: #20343b;
  --parchment: #efeae0;
  --paper: #f8f5ee;
  --paper-sunken: #e3dcce;
  --line: #d3c9b8;
  --brass: #a87433;
  --brass-dark: #825620;
  --vermilion: #9e3826;
  --water: #2c5a66;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgb(15 24 27 / 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--parchment);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("/assets/grain.svg");
}

a { color: var(--brass-dark); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid #f2c36f;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99;
  padding: 10px 14px;
  color: #fff;
  background: var(--night);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(22px, 5vw, 76px);
  color: #fff;
}

.site-header--dark { position: relative; background: var(--night); }

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-family: var(--display);
  font-size: 1.38rem;
  letter-spacing: 0.13em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}
.brand img { filter: drop-shadow(0 2px 7px rgb(0 0 0 / 0.24)); }

.header-link {
  min-height: 44px;
  padding: 9px 0;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(880px, 100svh);
  grid-template-columns: minmax(0, 1.13fr) minmax(420px, 0.87fr);
  overflow: hidden;
  color: #fff;
  background: var(--night);
}

.hero__image {
  position: relative;
  min-height: 740px;
  background: linear-gradient(90deg, transparent 55%, var(--night) 100%), url("/assets/coastal-city-concept-v1.png") center 54% / cover no-repeat;
}
.hero__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgb(13 24 29 / 0.62), transparent 42%), linear-gradient(90deg, transparent 65%, rgb(21 36 43 / 0.78));
}

.development-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  padding: 8px 11px;
  border: 1px solid rgb(255 255 255 / 0.38);
  color: rgb(255 255 255 / 0.88);
  background: rgb(21 36 43 / 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 660px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 130px clamp(36px, 6vw, 92px) 80px clamp(34px, 5vw, 78px);
}
.hero__content::before {
  width: 92px;
  height: 1px;
  margin-bottom: 26px;
  background: var(--brass);
  content: "";
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--brass);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
}

.hero h1 {
  margin-bottom: 27px;
  font-size: clamp(2.75rem, 4.65vw, 5.6rem);
  letter-spacing: -0.035em;
}
.hero h1 em { color: #d3b67f; font-weight: 400; }

.hero__lead {
  max-width: 585px;
  margin: 0 0 34px;
  color: rgb(255 255 255 / 0.78);
  font-size: clamp(1rem, 1.3vw, 1.17rem);
}

.hero__note {
  margin: 13px 0 0;
  color: rgb(255 255 255 / 0.56);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brass-dark);
  border-radius: 0;
  padding: 12px 22px;
  color: #fffdf8;
  background: var(--brass-dark);
  box-shadow: 0 7px 18px rgb(72 46 17 / 0.2);
  font: 700 0.82rem/1.2 var(--body);
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button:hover { background: #6f4719; box-shadow: 0 10px 24px rgb(72 46 17 / 0.3); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--light { border-color: #d3b67f; color: var(--night); background: #d3b67f; }
.button--light:hover { background: #e0c690; }
.button--danger { border-color: var(--vermilion); background: var(--vermilion); }

.principles, .faq {
  padding: clamp(78px, 9vw, 130px) clamp(22px, 7vw, 110px);
}

.section-heading { max-width: 780px; margin-bottom: 55px; }
.section-heading h2, .beta h2 {
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4vw, 4.3rem);
  letter-spacing: -0.025em;
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.principles article { position: relative; padding: 38px clamp(20px, 3.2vw, 54px) 15px 0; }
.principles article + article { border-left: 1px solid var(--line); padding-left: clamp(20px, 3.2vw, 54px); }
.principle-number { color: var(--brass); font-family: var(--display); font-size: 0.87rem; }
.principles h3 { margin: 16px 0 13px; font-size: 1.65rem; }
.principles p { max-width: 36ch; margin: 0; color: var(--ink-muted); }

.beta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 0.72fr);
  gap: clamp(50px, 9vw, 140px);
  padding: clamp(78px, 9vw, 130px) clamp(22px, 8vw, 130px);
  overflow: hidden;
  color: #fff;
  background: var(--night);
}
.beta::before {
  position: absolute;
  top: -280px;
  left: -190px;
  width: 640px;
  height: 640px;
  border: 1px solid rgb(168 116 51 / 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgb(168 116 51 / 0.03), 0 0 0 160px rgb(168 116 51 / 0.025);
  content: "";
}
.beta__intro { position: relative; align-self: center; }
.beta__intro p:last-child { max-width: 57ch; color: rgb(255 255 255 / 0.7); }

.signup-card {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 4vw, 50px);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.signup-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brass);
  content: "";
}

.field label { display: block; margin-bottom: 8px; font-size: 0.84rem; font-weight: 800; letter-spacing: 0.04em; }
.field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #8f8271;
  border-radius: 0;
  padding: 11px 13px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
}
.field input[aria-invalid="true"], .consent input[aria-invalid="true"] { border-color: var(--vermilion); }

.consent { display: grid; grid-template-columns: 24px 1fr; gap: 11px; margin: 20px 0 6px; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brass-dark); }
.consent label { font-size: 0.86rem; line-height: 1.5; }
.signup-card .button { width: 100%; margin-top: 21px; }
.form-note { margin: 13px 0 0; color: var(--ink-muted); font-size: 0.78rem; text-align: center; }
.field-error { margin: 7px 0 0; color: var(--vermilion); font-size: 0.84rem; font-weight: 700; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin: 0 0 24px; border-left: 4px solid var(--brass); padding: 14px 16px; background: var(--paper-sunken); }
.notice p, .notice ul { margin: 6px 0 0; }
.notice--error { border-color: var(--vermilion); background: #f3e4df; }
.notice--success { border-color: #5a6b3e; background: #e6eadc; }

.faq { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.faq details { min-height: 100%; padding: 23px 25px; background: var(--paper); }
.faq summary { min-height: 44px; font-family: var(--display); font-size: 1.26rem; cursor: pointer; }
.faq details p { color: var(--ink-muted); }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 35px clamp(22px, 7vw, 110px);
  color: rgb(255 255 255 / 0.7);
  background: #101c21;
  font-size: 0.82rem;
}
.brand--footer { color: #fff; font-size: 1rem; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: inherit; }

.action-page { min-height: 100svh; color: #fff; background: var(--night); }
.action-shell { display: grid; width: min(100% - 32px, 660px); min-height: 100svh; place-content: center; margin: auto; padding: 50px 0; }
.brand--center { justify-self: center; margin-bottom: 28px; }
.action-card { position: relative; padding: clamp(30px, 7vw, 62px); color: var(--ink); background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.action-card::before { position: absolute; top: 0; left: 0; width: 100%; height: 5px; content: ""; background: var(--brass); }
.action-card h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.action-card form { margin: 28px 0 20px; }
.action-card .text-link { display: inline-block; min-height: 44px; padding: 9px; }

.legal-page { background: var(--paper); }
.legal-content { width: min(100% - 40px, 780px); min-height: 70svh; margin: 0 auto; padding: clamp(60px, 9vw, 110px) 0; }
.legal-content h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
.legal-content h2 { margin-top: 42px; font-size: 1.75rem; }

@media (max-width: 920px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero__image { min-height: 62svh; background: linear-gradient(0deg, var(--night) 0%, transparent 35%), url("/assets/coastal-city-concept-v1.png") center 50% / cover no-repeat; }
  .hero__content { max-width: none; padding: 42px 28px 76px; }
  .principles__grid { grid-template-columns: 1fr; }
  .principles article + article { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .beta { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { padding: 14px 17px; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 31px; height: 35px; }
  .header-link { font-size: 0.69rem; }
  .hero__image { min-height: 55svh; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
  .hero__content { padding: 35px 20px 65px; }
  .development-badge { right: 12px; bottom: 12px; font-size: 0.62rem; }
  .principles, .faq { padding: 66px 20px; }
  .section-heading { margin-bottom: 34px; }
  .beta { gap: 34px; padding: 66px 16px; }
  .signup-card { padding: 28px 20px; }
  .faq__grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; padding: 36px 20px; }
  .site-footer p { margin: 0; }
  .site-footer nav { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
