/* ---------- Tokens (sampled from Cloudera Anywhere Cloud brand files) ---------- */
:root {
  --indigo-950: #07002E;   /* deepest background */
  --indigo-900: #0B0040;   /* page background */
  --indigo-800: #120058;   /* raised surfaces */
  --navy: #001450;         /* logo navy */
  --orange: #F15925;       /* logo orange */
  --orange-hot: #FF6A2B;
  --frost: #C0D7E3;        /* logo light blue */
  --periwinkle: #4A5FAB;   /* logo blue square */
  --violet: #5B63F5;       /* digital glow blue */
  --white: #FFFFFF;
  --text: #EEF1FF;
  --text-dim: rgba(222, 228, 255, 0.68);
  --line: rgba(192, 215, 227, 0.16);
  --line-strong: rgba(192, 215, 227, 0.32);
  --error: #FF8A7A;

  --glass: linear-gradient(155deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03) 60%);
  --glass-border: rgba(255, 255, 255, 0.14);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--indigo-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Ambient backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, var(--indigo-800) 0%, var(--indigo-900) 45%, var(--indigo-950) 100%); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow--violet { width: 60vw; height: 60vw; right: -20vw; bottom: -25vw; background: var(--violet); opacity: .42; }
.glow--orange { width: 50vw; height: 22vw; left: 10vw; top: 38vh; background: var(--orange); opacity: .12; }

/* Rounded-square grid, echoing the brand's tile motif */
.tiles { position: absolute; top: 0; bottom: 0; width: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Crect x='6' y='6' width='98' height='98' rx='22' fill='none' stroke='%23C0D7E3' stroke-opacity='0.13' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 110px 110px; }
.tiles--left { left: -60px; mask-image: linear-gradient(90deg, #000, transparent), linear-gradient(#000 0%, transparent 70%); mask-composite: intersect; -webkit-mask-image: linear-gradient(90deg, #000 10%, transparent); }
.tiles--right { right: -60px; -webkit-mask-image: linear-gradient(270deg, #000 10%, transparent); mask-image: linear-gradient(270deg, #000 10%, transparent); }
.pixels { position: absolute; inset: 0; }
.pixel { position: absolute; border-radius: 3px; opacity: 0; animation: drift var(--d, 14s) linear var(--delay, 0s) infinite; }
@keyframes drift {
  0% { transform: translateY(20px); opacity: 0; }
  15%, 75% { opacity: var(--o, .7); }
  100% { transform: translateY(-120px); opacity: 0; }
}

/* ---------- Nav ---------- */
.nav { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo { width: clamp(120px, 14vw, 168px); }
.nav__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--frost);
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.04); backdrop-filter: blur(10px); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(56px, 9vw, 120px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { margin: 0 0 20px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.hero__title { margin: 0 0 24px; font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; color: var(--white); }
.accent { background: linear-gradient(95deg, var(--orange) 10%, var(--orange-hot) 50%, #FF9A62); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { margin: 0 0 36px; max-width: 34em; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-dim); }

/* Buttons */
.btn { --h: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 28px;
  font: 700 16px/1 var(--font); letter-spacing: -.005em; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { color: var(--white); background: linear-gradient(180deg, #FF6C35, var(--orange)); box-shadow: 0 10px 30px -8px rgba(241, 89, 37, .65), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(241, 89, 37, .75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--wide { width: 100%; }

/* Product showcase */
.showcase { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 560px; justify-self: end; }
.card { position: absolute; margin: 0; padding: 18px 18px 14px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(232, 240, 250, .92), rgba(192, 215, 227, .78));
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 30px 60px -20px rgba(3, 0, 30, .75), inset 0 1px 0 rgba(255,255,255,.9);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .35s cubic-bezier(.2,.7,.3,1); will-change: transform;
  opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.3,1) forwards; }
.card img { flex: 1; min-height: 0; width: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 20, 80, .28)); }
.card figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); opacity: .7; }
.card--a { left: 0; top: 4%; width: 54%; height: 58%; animation-delay: .1s; }
.card--b { right: 0; top: 0; width: 42%; height: 48%; animation-delay: .22s; }
.card--c { left: 12%; bottom: 0; width: 28%; height: 36%; animation-delay: .34s; }
.card--d { right: 4%; bottom: 6%; width: 50%; height: 40%; animation-delay: .46s;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border-color: var(--glass-border); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.card--d figcaption { color: var(--frost); }
.card--d img { filter: drop-shadow(0 16px 22px rgba(0,0,0,.45)); }
@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Details (form) section ---------- */
.details { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 10vw, 140px);
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; scroll-margin-top: 24px; }

/* Signature: the logo's tile path assembles as each section is completed */
.progress { position: sticky; top: 32px; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.progress__mark { width: 176px; height: auto; margin: 0 0 24px; overflow: visible; }
.tile { fill: rgba(255,255,255,.03); stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 4;
  transform-box: fill-box; transform-origin: center; transition: fill .45s ease, stroke .45s ease, transform .45s cubic-bezier(.3,1.6,.5,1), filter .45s ease; }
.tile.is-on { stroke: transparent; stroke-dasharray: none; transform: scale(1.0); }
.tile[data-tile="name"].is-on, .tile[data-tile="contact"].is-on { fill: var(--orange); filter: drop-shadow(0 0 14px rgba(241,89,37,.55)); }
.tile[data-tile="bundle"].is-on, .tile[data-tile="street"].is-on { fill: var(--frost); filter: drop-shadow(0 0 14px rgba(192,215,227,.45)); }
.tile[data-tile="region"].is-on { fill: var(--violet); filter: drop-shadow(0 0 16px rgba(91,99,245,.7)); }
.tile.pop { animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.progress__label { margin: 0 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--frost); }
.progress__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--text-dim); }
.progress__list li { display: flex; align-items: center; gap: 10px; transition: color .3s ease; }
.progress__list li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--line-strong); transition: background .3s, border-color .3s; }
.progress__list li.is-on { color: var(--text); }
.progress__list li.is-on::before { background: var(--orange); border-color: var(--orange); }
.progress__note { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-dim); }

/* Glass panel */
.panel { position: relative; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 40px 80px -40px rgba(3,0,30,.9), inset 0 1px 0 rgba(255,255,255,.12); }
.panel__head { margin-bottom: 32px; }
.panel__head h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; color: var(--white); }
.panel__head p { margin: 0; color: var(--text-dim); font-size: 15px; }

fieldset { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.grid { display: grid; gap: 0 16px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: 1.3fr 1fr 0.8fr; }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.optional { margin-left: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }

input, select { width: 100%; height: 52px; padding: 0 16px; font: 500 16px var(--font); color: var(--white);
  background: rgba(7, 0, 46, .45); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none; }
input::placeholder { color: rgba(222,228,255,.38); }
input:hover, select:hover { border-color: rgba(192,215,227,.5); }
input:focus, select:focus { outline: none; border-color: var(--violet); background: rgba(7, 0, 46, .65); box-shadow: 0 0 0 4px rgba(91, 99, 245, .28); }
input:-webkit-autofill { -webkit-text-fill-color: var(--white); -webkit-box-shadow: 0 0 0 100px #1a1060 inset; caret-color: var(--white); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--frost); border-bottom: 2px solid var(--frost); transform: rotate(45deg); pointer-events: none; }
select { padding-right: 44px; cursor: pointer; text-overflow: ellipsis; }
select option { color: #0B0040; background: #fff; }
[hidden] { display: none !important; }

/* Bundle picker */
.field__label { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.style-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 16px; cursor: pointer;
  border-radius: var(--radius-md); background: rgba(7,0,46,.35); border: 1px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.style-card:hover { border-color: rgba(192,215,227,.55); transform: translateY(-2px); }
.style-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.style-card__img { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 12px;
  background: linear-gradient(160deg, rgba(232,240,250,.95), rgba(192,215,227,.8)); }
.style-card__img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,20,80,.25)); }
.style-card__name { padding-right: 28px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--white); }
.style-card::after { content: ""; position: absolute; right: 14px; bottom: 16px; width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--line-strong); transition: background .2s, border-color .2s; }
.style-card:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241,89,37,.25), 0 18px 40px -20px rgba(241,89,37,.6); }
.style-card:has(input:checked)::after { background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--orange); }
.style-card:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 3px; }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size span { display: grid; place-items: center; min-width: 58px; height: 46px; padding: 0 14px; font: 700 14px var(--font); cursor: pointer;
  border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(7,0,46,.35); transition: all .2s; }
.size span:hover { border-color: rgba(192,215,227,.55); }
.size input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(241,89,37,.7); }
.size input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.field.is-invalid .style-card, .field.is-invalid .size span { border-color: var(--error); }
.included { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong); background: rgba(255,255,255,.03); }
.included__title { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--frost); }
.included ul { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.included li { display: flex; align-items: center; gap: 10px; }
.included img { width: 36px; height: 36px; object-fit: contain; padding: 4px; border-radius: 10px; background: linear-gradient(160deg, rgba(232,240,250,.95), rgba(192,215,227,.8)); }

.hint { margin: 6px 0 0; font-size: 13px; color: var(--text-dim); }
.error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--error); min-height: 0; }
.error:empty { display: none; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); box-shadow: 0 0 0 3px rgba(255,138,122,.18); }
.field.is-invalid .hint { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.panel__foot { padding-top: 8px; }
.form-status { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--error); }
.form-status:empty { display: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success state */
.success { text-align: center; padding: clamp(16px, 4vw, 40px) 0; outline: none; }
.success__badge { width: 84px; height: 84px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 24px; color: var(--white);
  background: linear-gradient(160deg, #FF6C35, var(--orange)); box-shadow: 0 16px 40px -10px rgba(241,89,37,.7); animation: pop .6s cubic-bezier(.3,1.6,.5,1); }
.success__badge svg { width: 44px; height: 44px; }
.success__badge path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .25s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.025em; color: var(--white); }
.success__lede { margin: 0 0 18px; color: var(--text-dim); }
.success__address { display: inline-block; margin: 0 0 24px; padding: 20px 28px; font-style: normal; text-align: left; line-height: 1.6;
  border-radius: var(--radius-md); background: rgba(7,0,46,.45); border: 1px solid var(--line-strong); }
.success__fine { max-width: 30em; margin: 0 auto 24px; font-size: 14px; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer { position: relative; }
.footer__band { height: clamp(140px, 22vw, 280px); background: url("assets/globe-band.jpg") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--text-dim); background: var(--indigo-950); }
.footer__inner p { margin: 0; }
.footer { background: var(--indigo-950); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .showcase { justify-self: center; max-width: 480px; }
  .details { grid-template-columns: 1fr; }
  .progress { position: static; display: grid; grid-template-columns: auto 1fr; gap: 0 24px; align-items: center; padding: 24px; }
  .progress__mark { width: 110px; margin: 0; grid-row: span 2; }
  .progress__list { display: none; }
  .progress__label { margin: 0; }
  .progress__note { border: 0; padding: 6px 0 0; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .styles { gap: 10px; }
  .style-card { padding: 8px 8px 12px; }
  .style-card__name { font-size: 13px; }
  .style-card::after { right: 10px; bottom: 12px; width: 18px; height: 18px; }
  .nav { padding-top: 20px; padding-bottom: 20px; }
  .nav__tag { font-size: 11px; padding: 6px 10px; }
  .btn { width: 100%; }
  .showcase { aspect-ratio: 1 / 1.1; }
  .card { padding: 12px 12px 10px; border-radius: 20px; }
  .card figcaption { font-size: 10px; }
  .progress { grid-template-columns: 1fr; text-align: left; }
  .progress__mark { grid-row: auto; margin-bottom: 14px; width: 96px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .pixels { display: none; }
}

/* Review build banner (CONFIG.reviewMode) */
.review-banner { position: sticky; top: 0; z-index: 10; padding: 10px 16px; text-align: center; font: 600 13px var(--font);
  color: var(--navy); background: var(--frost); box-shadow: 0 6px 20px -8px rgba(0,0,0,.5); }
