/* Agentic.ae — coming-soon landing
 * Pure HTML/CSS/JS. No build step. Deployed as-is to S3 + CloudFront.
 */

:root {
  --gold: #d9a14a;
  --gold-bright: #f4cf78;
  --gold-deep: #8a5a1d;
  --sand: #f6e3bf;
  --ink: #1a0d02;
  --ink-soft: rgba(26, 13, 2, 0.72);
  --paper: rgba(255, 246, 226, 0.92);

  --radius-card: 18px;
  --radius-input: 12px;
  --shadow-soft: 0 30px 80px -20px rgba(20, 10, 0, 0.55);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0500;
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---------- Background layers ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg__image {
  position: absolute;
  inset: -4%;
  background-image: url('/assets/desert-bg.webp');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.05);
  animation: drift 38s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.02);
}

.bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 25%,
      rgba(0, 0, 0, 0) 0%,
      rgba(10, 5, 0, 0.35) 55%,
      rgba(8, 4, 0, 0.78) 100%
    ),
    linear-gradient(180deg, rgba(255, 200, 120, 0.05) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

@keyframes drift {
  0% {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.1) translate3d(-2%, -1.5%, 0);
  }
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Stage ---------- */

.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 4vw, 56px) clamp(20px, 5vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
}

.brand__logo {
  height: clamp(40px, 6vw, 56px);
  width: auto;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
}

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

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 720px;
  padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
  gap: 18px;
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(246, 227, 191, 0.75);
  font-weight: 500;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid rgba(246, 227, 191, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(20, 10, 0, 0.18);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 12vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 12px 60px rgba(0, 0, 0, 0.55);
}

.shimmer {
  background: linear-gradient(
    100deg,
    var(--gold-bright) 0%,
    #fff5d8 18%,
    var(--gold) 35%,
    #fff5d8 52%,
    var(--gold-bright) 70%,
    var(--gold-deep) 100%
  );
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero__lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: rgba(246, 227, 191, 0.92);
  max-width: 56ch;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* ---------- Form ---------- */

.interest {
  margin-top: clamp(24px, 4vw, 40px);
  width: 100%;
  max-width: 620px;
  padding: clamp(20px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(255, 246, 226, 0.08) 0%, rgba(255, 246, 226, 0.04) 100%);
  border: 1px solid rgba(255, 220, 160, 0.18);
  border-radius: var(--radius-card);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.interest__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .interest__row {
    grid-template-columns: 1fr;
  }
}

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

.field__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 227, 191, 0.65);
  font-weight: 500;
}

.field input,
.field textarea {
  font: inherit;
  color: var(--paper);
  background: rgba(8, 4, 0, 0.45);
  border: 1px solid rgba(255, 220, 160, 0.18);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(246, 227, 191, 0.4);
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 220, 160, 0.32);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold-bright);
  background: rgba(8, 4, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(244, 207, 120, 0.18);
}

.cta {
  margin-top: 6px;
  position: relative;
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 15px;
  color: #1a0d02;
  background: linear-gradient(
    135deg,
    var(--gold-bright) 0%,
    var(--gold) 55%,
    var(--gold-deep) 100%
  );
  padding: 14px 22px;
  border-radius: var(--radius-input);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  transition:
    transform 200ms ease,
    box-shadow 220ms ease,
    filter 200ms ease;
  box-shadow:
    0 12px 30px -8px rgba(180, 120, 40, 0.6),
    inset 0 1px 0 rgba(255, 240, 200, 0.6);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 250, 220, 0.55) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 600ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 40px -8px rgba(180, 120, 40, 0.7),
    inset 0 1px 0 rgba(255, 240, 200, 0.7);
}

.cta:hover::before {
  transform: translateX(120%);
}

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

.cta:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4) brightness(0.85);
}

.cta__arrow {
  font-size: 18px;
  transition: transform 200ms ease;
}

.cta:hover .cta__arrow {
  transform: translateX(3px);
}

.interest__status {
  margin: 4px 0 0;
  min-height: 1.2em;
  font-size: 13px;
  color: rgba(246, 227, 191, 0.75);
  transition: color 200ms ease;
}

.interest__status[data-state='error'] {
  color: #ffb086;
}

.interest__status[data-state='success'] {
  color: #ffe09c;
}

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

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 227, 191, 0.55);
  padding-top: 16px;
}

.meta__dot {
  opacity: 0.4;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .bg__image {
    animation: none;
  }
  .shimmer {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  #particles {
    display: none;
  }
}
