/* CADA Software — cadasoftware.com pilot site */
:root {
  --bg: #0b0f14;
  --bg2: #121820;
  --panel: #161d27;
  --line: #2a3544;
  --ink: #e8eef6;
  --muted: #8b9bb0;
  --blue: #3d8bfd;
  --blue-dim: #2563b8;
  --cyan: #5ec8ff;
  --ok: #3d9b6a;
  --warn: #c9a227;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 600px at 10% -10%, #1a2740 0%, transparent 55%),
    radial-gradient(800px 500px at 100% 0%, #0d2030 0%, transparent 50%),
    var(--bg);
  line-height: 1.5;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 20, 0.85);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0f2f5;
  object-fit: contain;
}
.brand span { font-size: 15px; }
.brand small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 14px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font: 600 14px/1 var(--font);
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s, background 0.12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #4a96ff, var(--blue-dim));
  color: #fff !important;
  border-color: #2b6fd4;
}
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
}
.btn-gold {
  background: linear-gradient(180deg, #e4c76a, #b8922a);
  color: #1a1408 !important;
  border-color: #8a7020;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 600;
}
.hero .lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 36em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.hero-visual {
  background: linear-gradient(160deg, #1a2433, #0e141c);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-visual img {
  width: min(100%, 320px);
  height: auto;
  border-radius: 12px;
  background: #eef1f5;
}
.hero-visual p {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Sections */
section { padding: 48px 0; }
section.alt {
  background: rgba(18, 24, 32, 0.65);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
h2 {
  font-family: var(--display);
  font-size: 28px;
  margin: 0 0 10px;
}
.section-lead {
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--cyan);
}
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .num {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* Steps */
.steps { display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.step .n {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #1a2740;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-weight: 700; color: var(--cyan);
}
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .price-grid { grid-template-columns: 1fr; }
}
.price {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
}
.price.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue-dim), var(--shadow);
}
.price .tag {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #1a2740;
  color: var(--cyan);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.price h3 { margin: 0 0 6px; }
.price .amt {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0;
}
.price .amt span { font-size: 14px; color: var(--muted); font-weight: 500; }
.price ul {
  margin: 12px 0 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.price li { margin: 6px 0; }

/* Pilot form */
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 560px;
  box-shadow: var(--shadow);
}
label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 6px;
}
input, select, textarea {
  width: 100%;
  background: #0e131a;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  font: 15px var(--font);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.15);
}
textarea { min-height: 100px; resize: vertical; }
.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.form-success {
  display: none;
  padding: 14px;
  border-radius: 10px;
  background: #13261c;
  border: 1px solid #2a5c40;
  color: #a8e0c0;
  margin-top: 12px;
}

/* Disclaimer */
.disclaimer {
  font-size: 13px;
  color: var(--muted);
  border-left: 3px solid var(--warn);
  padding: 8px 0 8px 14px;
  margin: 20px 0 0;
}

/* Footer */
footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}
footer .brand img { width: 32px; height: 32px; }

/* Page header */
.page-head { padding: 40px 0 10px; }
.page-head h1 {
  font-family: var(--display);
  font-size: 34px;
  margin: 0 0 10px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.table th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.table td { color: var(--ink); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cyan);
  background: #121a24;
}

.pilot-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding-bottom: 48px;
}
@media (max-width: 800px) {
  .pilot-layout { grid-template-columns: 1fr; }
  .nav-links .btn { padding: 10px 12px; font-size: 13px; }
}

/* —— Public gate (video wall until ready) —— */
html.cada-gated,
html.cada-gated body {
  overflow: hidden;
  height: 100%;
}
html.cada-gated body > *:not(#cada-gate) {
  visibility: hidden !important;
  pointer-events: none !important;
}

#cada-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070a;
  color: var(--ink);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
#cada-gate.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cada-gate-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cada-gate-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #05070a;
}
.cada-gate-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.35) 0%, rgba(5, 7, 10, 0.55) 45%, rgba(5, 7, 10, 0.88) 100%),
    radial-gradient(600px 400px at 50% 40%, transparent 0%, rgba(5, 7, 10, 0.5) 100%);
  pointer-events: none;
}

.cada-gate-ui {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px 20px 40px;
  max-width: 360px;
}
.cada-gate-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.cada-gate-brand {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.cada-gate-tag {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cada-gate-next {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(22, 29, 39, 0.75);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cada-gate-next:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(18, 28, 40, 0.9);
}
.cada-gate-form {
  margin-top: 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}
.cada-gate-form.is-open {
  max-height: 80px;
  opacity: 1;
}
.cada-gate-form input {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.9);
  color: var(--ink);
  font: inherit;
  text-align: center;
}
.cada-gate-form input:focus {
  outline: none;
  border-color: var(--blue);
}
.cada-gate-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  min-height: 1.2em;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
