/* =========================================================
   OCCLUSIV — Landing + Survey styles
   Brand system loaded as CSS variables so one edit propagates
   ========================================================= */

:root {
  /* Brand palette — exact hex from brand spec */
  --teal: #0d9488;
  --teal-dark: #115e59;
  --gold: #d4a853;
  --gold-light: #ebd07a;
  --bg-dark: #111827;
  --bg-light: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --surface: #ffffff;
  --border: #e2e8f0;

  /* Ink-on-dark layered opacity system (matches logo spec) */
  --ink-100: rgba(255, 255, 255, 0.92);
  --ink-85: rgba(255, 255, 255, 0.85);
  --ink-55: rgba(255, 255, 255, 0.55);
  --ink-35: rgba(255, 255, 255, 0.35);
  --ink-30: rgba(255, 255, 255, 0.30);
  --ink-10: rgba(255, 255, 255, 0.10);
  --ink-06: rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-display: 'Instrument Serif', 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--ink-100);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =========================================================
   Ambient background treatments (used on both pages)
   ========================================================= */

.ambient-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 50% 38%, rgba(13, 148, 136, 0.14), transparent 65%),
    radial-gradient(ellipse 35% 25% at 50% 62%, rgba(212, 168, 83, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* =========================================================
   Coming Soon page (index.html)
   ========================================================= */

body.coming-soon {
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
}

.hero {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  padding: clamp(32px, 8vh, 80px) 24px 40px;
  position: relative;
  z-index: 1;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(8px, 3vh, 28px);
  animation: fade-in 0.9s var(--ease-out-expo) both;
}

.logo {
  height: auto;
  max-width: min(340px, 78vw);
  /* Soft teal halo behind the logo card — subtle since the logo has its own internal gold glow */
  filter: drop-shadow(0 0 40px rgba(13, 148, 136, 0.12));
}

.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  padding-bottom: 8vh;
}

.coming-soon-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 0.95;
  color: var(--ink-100);
  letter-spacing: -0.025em;
  animation: reveal 1.1s var(--ease-out-expo) 0.2s both;
}

.coming-soon-text em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
  /* Subtle gold luminance */
  text-shadow: 0 0 40px rgba(212, 168, 83, 0.25);
}

.divider {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  animation: fade-in 1.2s var(--ease-out-expo) 0.5s both;
}

.survey-link {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--ink-55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  transition: color 0.3s ease, gap 0.3s ease;
  animation: fade-in 1.2s var(--ease-out-expo) 0.7s both;
  position: relative;
}

.survey-link svg {
  transition: transform 0.3s ease;
}

.survey-link:hover {
  color: var(--gold-light);
}

.survey-link:hover svg {
  transform: translateX(3px);
}

.footer {
  padding: 24px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-30);
  animation: fade-in 1s var(--ease-out-expo) 1s both;
  position: relative;
  z-index: 1;
}

/* =========================================================
   Survey page (survey.html)
   ========================================================= */

body.survey-page {
  min-height: 100vh;
  padding-bottom: 80px;
}

.nav {
  padding: 28px 32px;
  border-bottom: 1px solid var(--ink-06);
  position: relative;
  z-index: 1;
}

.nav-logo {
  display: inline-block;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.75; }

.nav-logo img {
  height: auto;
  max-width: 180px;
  display: block;
}

.form-container {
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 24px;
  position: relative;
  z-index: 1;
}

.form-header {
  margin-bottom: 48px;
  animation: fade-in 0.8s var(--ease-out-expo) both;
}

.form-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4rem);
  line-height: 1;
  color: var(--ink-100);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.form-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.form-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-55);
  max-width: 480px;
}

.survey-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fade-in 1s var(--ease-out-expo) 0.2s both;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-55);
  letter-spacing: 0.015em;
}

.field label .required {
  color: var(--gold);
  margin-left: 2px;
}

.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--ink-06);
  border: 1px solid var(--ink-10);
  color: var(--ink-100);
  padding: 14px 16px;
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
  resize: vertical;
  font-weight: 400;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-30);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.05);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.submit-btn {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: var(--teal);
  border: none;
  padding: 15px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  align-self: flex-start;
  min-width: 180px;
  box-shadow: 0 4px 24px rgba(13, 148, 136, 0.2);
}

.submit-btn:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 32px rgba(13, 148, 136, 0.3);
}

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

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-btn.loading .submit-label { opacity: 0; }

.submit-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  opacity: 0;
}

.submit-btn.loading .submit-spinner {
  opacity: 1;
  animation: spin 0.8s linear infinite;
}

.form-note {
  font-size: 0.78rem;
  color: var(--ink-30);
  margin-top: 4px;
}

.thank-you {
  text-align: center;
  padding: 60px 0;
  animation: reveal 0.9s var(--ease-out-expo) both;
}

.thank-you-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12);
  margin-bottom: 24px;
  color: var(--teal);
}

.thank-you-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink-100);
}

.thank-you-title em {
  font-style: italic;
  color: var(--gold);
}

.thank-you-body {
  color: var(--ink-55);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.back-link {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: color 0.2s, gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-link:hover {
  color: var(--gold);
  gap: 10px;
}

/* =========================================================
   Animations + utilities
   ========================================================= */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 32px 20px; }
  .nav { padding: 20px 20px; }
  .form-container { padding: 40px 20px; }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Selection color */
::selection {
  background: rgba(212, 168, 83, 0.4);
  color: var(--ink-100);
}
