/* ==========================================================
   FeazAI — Landing Page
   Warm ivory canvas · Midnight sapphire · Soft brass
   ========================================================== */

:root {
  --ivory:        #F7F4ED;
  --ivory-soft:   #F1ECDF;
  --paper:        #FDFBF6;
  --ink:          #0E1F4B;
  --ink-2:        #132B66;
  --ink-3:        #2B3A5C;
  --muted:        #6B6E7A;
  --muted-2:      #8C8D91;
  --rule:         #E3DCC9;
  --rule-2:       #D9D0B9;
  --brass:        #B08D57;
  --brass-soft:   #C9A876;
  --brass-tint:   #EADFC6;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

/* ---------- Typography primitives ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.018em;
  line-height: 1.05;
  font-feature-settings: "liga" 1, "dlig" 1;
}
.display em { font-style: italic; color: var(--ink-2); }

h1.display { font-size: clamp(44px, 6.2vw, 86px); }
h2.display { font-size: clamp(36px, 4.4vw, 60px); }
h3.display { font-size: clamp(24px, 2.2vw, 32px); }

.lede {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 54ch;
}
.lede--tagline {
  font-style: italic;
  opacity: 0.82;
  margin-top: -0.4em;
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink-2);
  color: var(--ivory);
}
.btn--primary:hover { background: #0B1E4A; transform: translateY(-1px); }
.btn--ghost {
  color: var(--ink-2);
  border: 1px solid var(--rule-2);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--link {
  color: var(--ink-2);
  padding: 0;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  border-radius: 0;
}
.btn .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(12px);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark .glyph {
  width: 18px; height: 18px;
  color: var(--ink-2);
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  transition: color .2s ease;
}
.nav a:hover { color: var(--ink-2); }
.nav-cta .btn { padding: 10px 18px; font-size: 13px; }
@media (max-width: 760px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 120px) 0 clamp(60px, 9vw, 140px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 88% 10%, rgba(176, 141, 87, 0.07), transparent 60%),
    radial-gradient(900px 500px at 8% 90%, rgba(19, 43, 102, 0.04), transparent 60%);
  pointer-events: none;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  position: relative;
}
.hero-copy .eyebrow { margin-bottom: 22px; display: inline-block; }
.hero-copy h1 { margin: 0 0 24px; max-width: 14ch; }
.hero-copy .lede { margin: 0 0 36px; }
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-3);
  background: var(--paper);
}
.source-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(176,141,87,0.18);
}
.source-chip strong { color: var(--ink-2); font-weight: 600; }
.source-chip .sep { color: var(--rule-2); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
}

/* ---------- Device frame ---------- */

.device {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 1206 / 2622;
  margin: 0 auto;
  border-radius: 54px;
  background: #0B0D10;
  padding: 10px;
  box-shadow:
    0 1px 1px rgba(255,255,255,0.5) inset,
    0 30px 60px -20px rgba(19, 43, 102, 0.28),
    0 10px 24px -10px rgba(19, 43, 102, 0.18);
}
.device::before {
  /* subtle bezel highlight */
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 53px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 20%, transparent 80%, rgba(255,255,255,0.05));
  pointer-events: none;
}
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: var(--ivory);
}
.device-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: var(--ivory);
}

/* Hero carousel */
.carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px) scale(1.005);
  transition: opacity 1.1s ease, transform 1.4s ease;
  pointer-events: none;
}
.carousel .slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.carousel-meta {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.carousel-dots {
  display: inline-flex;
  gap: 8px;
}
.carousel-dots button {
  width: 18px; height: 2px;
  background: var(--rule-2);
  padding: 0; border-radius: 0;
  transition: background .3s ease, width .3s ease;
}
.carousel-dots button.active { background: var(--ink-2); width: 28px; }
.carousel-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-3);
  min-width: 14ch;
  text-align: left;
}

/* ---------- Capability strip ---------- */

.capabilities {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.capabilities .wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.cap {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.cap:last-child { border-right: 0; }
.cap .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.cap h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.01em;
}
.cap p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 960px) {
  .capabilities .wrap { grid-template-columns: repeat(2, 1fr); }
  .cap { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .cap:nth-child(2n) { border-right: 0; }
  .cap:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
@media (max-width: 560px) {
  .capabilities .wrap { grid-template-columns: 1fr; }
  .cap { border-right: 0; }
  .cap:last-child { border-bottom: 0; }
}

/* ---------- Showcase ---------- */

.showcase {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.showcase + .showcase { padding-top: 0; }
.showcase .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.showcase.reverse .wrap { grid-template-columns: 1.1fr 0.9fr; }
.showcase.reverse .showcase-copy { order: 2; }
.showcase.reverse .showcase-visual { order: 1; }
.showcase-copy .eyebrow { margin-bottom: 18px; display: inline-block; }
.showcase-copy h2 { margin: 0 0 22px; }
.showcase-copy .lede { margin-bottom: 26px; }
.showcase-copy ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.showcase-copy ul li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--ink-3);
}
.showcase-copy ul li .n {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 14px;
}
.showcase-copy ul li strong { color: var(--ink-2); font-weight: 600; font-family: var(--sans); }

.showcase-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 640px;
}
.showcase-visual.pair {
  perspective: 1400px;
}
.showcase-visual .device { width: min(300px, 70vw); }
.showcase-visual .device.back {
  position: absolute;
  transform: translate(-28%, 4%) rotate(-3deg);
  filter: saturate(0.96) brightness(0.98);
  opacity: 0.95;
  z-index: 1;
}
.showcase-visual .device.front {
  position: relative;
  transform: translate(12%, 0) rotate(2deg);
  z-index: 2;
}
.showcase-visual .device.solo {
  transform: rotate(0deg);
}

@media (max-width: 960px) {
  .showcase .wrap, .showcase.reverse .wrap { grid-template-columns: 1fr; }
  .showcase.reverse .showcase-copy { order: 1; }
  .showcase.reverse .showcase-visual { order: 2; }
  .showcase-visual { min-height: 580px; }
  .showcase-visual .device.back { transform: translate(-32%, 4%) rotate(-3deg); }
  .showcase-visual .device.front { transform: translate(16%, 0) rotate(2deg); }
}

/* Compliance blur overlays (applied on top of screenshots) */
.mask {
  position: absolute;
  background: rgba(247, 244, 237, 0.35);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  border-radius: 4px;
  pointer-events: none;
}
.mask.tight {
  background: rgba(247, 244, 237, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Why section ---------- */

.why {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.why-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.why-head .eyebrow { display: inline-block; margin-bottom: 18px; }
.why-head h2 { margin: 0 0 20px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.why-item {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why-item:first-child { padding-left: 0; }
.why-item:last-child { border-right: 0; padding-right: 0; }
.why-item .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 18px;
  margin-bottom: 4px;
}
.why-item h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.why-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item { border-bottom: 1px solid var(--rule); padding: 28px 24px 28px 0; }
  .why-item:nth-child(2n) { border-right: 0; padding-right: 0; }
  .why-item:nth-child(2n+1) { padding-left: 0; }
  .why-item:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: 0; padding: 24px 0; }
  .why-item:last-child { border-bottom: 0; }
}

/* ---------- Approach / Compliance ---------- */

.approach {
  padding: clamp(80px, 10vw, 140px) 0;
}
.approach .wrap {
  max-width: 880px;
  text-align: center;
}
.approach .eyebrow { margin-bottom: 22px; display: inline-block; }
.approach-statement {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.approach-brackets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--brass);
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: 20px;
}
.approach-brackets .hr {
  width: 60px; height: 1px; background: var(--brass);
}
.approach-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}
.approach-notes .note h5 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 10px;
}
.approach-notes .note p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 760px) {
  .approach-notes { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Final CTA ---------- */

.cta {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--ink-2);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 85% 110%, rgba(201, 168, 118, 0.14), transparent 60%),
    radial-gradient(600px 300px at 10% -10%, rgba(247, 244, 237, 0.04), transparent 60%);
  pointer-events: none;
}
.cta .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.cta .eyebrow { color: var(--brass-soft); margin-bottom: 18px; display: inline-block; }
.cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 56px);
  color: var(--ivory);
  margin: 0 0 20px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.cta .lede { color: rgba(247, 244, 237, 0.78); max-width: 44ch; }

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-form form {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(234, 223, 198, 0.3);
  padding-bottom: 8px;
}
.cta-form input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--ivory);
  padding: 14px 0;
  font-size: 16px;
  font-family: var(--sans);
  outline: none;
  font-weight: 300;
}
.cta-form input::placeholder { color: rgba(247, 244, 237, 0.45); }
.cta-form button {
  color: var(--brass-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s ease, transform .2s ease;
}
.cta-form button:hover { color: var(--ivory); transform: translateX(2px); }
.cta-form .meta {
  font-size: 12px;
  color: rgba(247, 244, 237, 0.5);
  letter-spacing: 0.02em;
}
.cta-form .status {
  font-size: 12px;
  color: var(--brass-soft);
  min-height: 16px;
  font-family: var(--serif);
  font-style: italic;
}
@media (max-width: 860px) {
  .cta .wrap { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .col h6 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.site-footer .col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer .col a {
  font-size: 13.5px;
  color: var(--ink-3);
  transition: color .2s ease;
}
.site-footer .col a:hover { color: var(--ink-2); }
.site-footer .brand p {
  margin: 14px 0 0;
  max-width: 32ch;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.legal {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}
.legal .disclaimer { max-width: 64ch; color: var(--muted-2); }
@media (max-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .brand { grid-column: 1 / -1; }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.availability {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
  font-feature-settings: "ss01" 1;
}
.availability::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brass);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.availability--dark {
  color: rgba(247, 244, 237, 0.5);
  margin-top: 14px;
}
.availability--dark::before {
  background: var(--brass-soft);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .carousel .slide { opacity: 0; }
  .carousel .slide.active { opacity: 1; transform: none; }
}
