/* ==========================================================================
   YDX — Your Device Experience
   ========================================================================== */

:root {
  /* Core roles */
  --color-bg: #161826;
  --color-text: #e9e9ed;

  /* Accent */
  --color-accent: #f7941d;
  --color-accent-100: oklch(0.95 0.04 75);
  --color-accent-200: oklch(0.91 0.07 72);
  --color-accent-300: oklch(0.86 0.10 69);
  --color-accent-400: oklch(0.80 0.13 65);
  --color-accent-500: oklch(0.74 0.155 60);
  --color-accent-600: oklch(0.65 0.15 56);
  --color-accent-700: oklch(0.54 0.12 52);
  --color-accent-800: oklch(0.43 0.09 48);
  --color-accent-900: oklch(0.32 0.06 45);

  /* Neutrals */
  --color-neutral-100: oklch(0.96 0.005 280);
  --color-neutral-200: oklch(0.90 0.006 280);
  --color-neutral-300: oklch(0.80 0.008 280);
  --color-neutral-400: oklch(0.68 0.010 280);
  --color-neutral-500: oklch(0.56 0.012 280);
  --color-neutral-600: oklch(0.45 0.014 280);
  --color-neutral-700: oklch(0.36 0.016 280);
  --color-neutral-800: oklch(0.27 0.018 280);
  --color-neutral-900: oklch(0.21 0.020 280);

  /* Type */
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading-weight: 500;

  /* Radii — 8px base */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

body {
  margin: 0;
  text-wrap: pretty;
  background:
    radial-gradient(1200px 720px at 82% -160px, rgba(40, 44, 88, 0.85), transparent 60%),
    radial-gradient(1100px 800px at -10% 100%, rgba(0, 0, 0, 0.35), transparent 55%),
    var(--color-bg);
  background-attachment: fixed;
}

a {
  color: var(--color-accent-300);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Components
   -------------------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1;
  padding: 7px 11px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-neutral {
  background: color-mix(in srgb, var(--color-neutral-900) 70%, transparent);
  border-color: color-mix(in srgb, var(--color-neutral-700) 70%, transparent);
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.input {
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-neutral-900) 60%, transparent);
  border: 1px solid var(--color-neutral-700);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.input::placeholder {
  color: color-mix(in srgb, var(--color-text) 40%, transparent);
}

.input:hover {
  border-color: var(--color-neutral-600);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn-primary {
  color: var(--color-accent);
  border-color: color-mix(in srgb, var(--color-accent) 70%, transparent);
}

.btn-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border-color: var(--color-accent);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* --------------------------------------------------------------------------
   Page
   -------------------------------------------------------------------------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--color-text);
}

.page__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px clamp(24px, 6vw, 96px);
}

.col {
  max-width: 880px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Kicker */
.kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.kicker__rule {
  width: 44px;
  height: 1px;
  background: var(--color-accent);
}

.kicker__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-feature-settings: "tnum" 1;
}

/* Logo — a button, so replay is keyboard reachable; styled as a bare wrapper */
.logo {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 0 48px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.logo svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Headline */
.headline {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

.headline span {
  display: block;
}

/* Positioning paragraph */
.lede {
  font-size: 17px;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}

/* Tier strip */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 56px;
  max-width: 760px;
  width: 100%;
}

.tier {
  border-top: 1px solid var(--color-neutral-700);
  padding-top: 16px;
}

.tier__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-300);
  margin: 0 0 8px;
}

.tier__body {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 64%, transparent);
}

/* Capability tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin: 48px 0 0;
}

/* Email capture */
.signup {
  margin-top: 56px;
}

.signup__row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  max-width: 460px;
  flex-wrap: wrap;
  justify-content: center;
}

.signup__row .input {
  flex: 1;
  min-width: 220px;
  min-height: 36px;
}

.signup__row .btn {
  min-height: 36px;
}

/* Kept out of sight and out of the accessibility tree */
.signup__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup__done {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--color-accent-300);
}

.signup__error {
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 0;
  color: var(--color-accent-200);
}

/* Footer */
.page__footer {
  padding: 28px clamp(24px, 6vw, 96px);
  text-align: center;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}

/* --------------------------------------------------------------------------
   Reduced motion — the logo renders in its final state and the replay
   affordance is dropped, rather than left as a control that does nothing.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .logo {
    cursor: default;
  }

  * {
    transition-duration: 1ms !important;
  }
}
