/* CDE Systems - company site
   Navy foundation, green signal, and a deliberately compact mobile layout. */

:root {
  --navy-950: #06152a;
  --navy-900: #081c35;
  --navy-800: #0d2b4f;
  --navy-700: #17456d;
  --ink: #10253d;
  --muted: #5f7388;
  --paper: #f3f7fb;
  --white: #ffffff;
  --line: rgba(16, 37, 61, 0.12);
  --green: #32d26a;
  --green-dark: #138c46;
  --cyan: #57d7e7;
  --shadow: 0 18px 50px rgba(3, 18, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

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

.shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: var(--white);
  background: rgba(6, 21, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.site-header .shell {
  display: flex;
  align-items: center;
  max-width: 100%;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a,
.lang-switch a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #c8d5e3;
  font-size: 0.85rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.lang-switch a:hover,
.lang-switch a:focus-visible,
.lang-switch a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-switch a.active {
  color: var(--green);
}

.lang-sep {
  color: rgba(255, 255, 255, 0.28);
}

.site-header .header-cta {
  display: none;
}

.site-header .brand span {
  overflow: visible;
  text-overflow: clip;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(87, 215, 231, 0.22), transparent 28%),
    radial-gradient(circle at 15% 85%, rgba(50, 210, 106, 0.13), transparent 30%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
}

.hero::after {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -160px;
  bottom: -190px;
  border: 1px solid rgba(87, 215, 231, 0.24);
  border-radius: 50%;
  content: "";
}

.hero .shell {
  position: relative;
  z-index: 1;
  padding-top: 76px;
  padding-bottom: 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 10vw, 5.8rem);
}

.hero .lead {
  max-width: 650px;
  margin-bottom: 32px;
  color: #d6e3ef;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #06221a;
  background: var(--green);
  box-shadow: 0 9px 22px rgba(50, 210, 106, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #5be589;
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.section {
  padding: 72px 0;
}

.section + .section {
  padding-top: 22px;
}

.section-dark {
  color: var(--white);
  background: var(--navy-900);
}

.section-heading {
  max-width: 660px;
  margin-bottom: 30px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-dark .section-kicker {
  color: var(--green);
}

.section-title {
  margin-bottom: 14px;
  font-size: clamp(2rem, 6vw, 3.35rem);
}

.section-lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.section-dark .section-lead {
  color: #b7c8d8;
}

.proof-grid,
.coming-grid,
.contact-layout {
  display: grid;
  gap: 18px;
}

.proof-card,
.coming-card,
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.proof-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
}

.proof-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  color: var(--navy-900);
  border-radius: 13px;
  background: linear-gradient(135deg, #b3f6c8, var(--green));
  font-weight: 900;
}

.proof-card h3,
.coming-card h3,
.contact-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.proof-card p,
.coming-card p,
.contact-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.proof-card .text-link {
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(4px);
}

.pitch-wrap {
  overflow: hidden;
  border: 1px solid rgba(87, 215, 231, 0.24);
  border-radius: 22px;
  background: #061c20;
  box-shadow: 0 24px 60px rgba(1, 11, 25, 0.25);
}

#pitch-demo {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}

.cde-pitch-demo {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  width: 100%;
  height: auto;
  padding: 12px;
  aspect-ratio: auto;
}

.cde-pitch-demo__svg {
  width: 100%;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 400 / 220;
  border-radius: 14px;
  background: #103e2e;
}

.cde-pitch-demo__stats {
  display: grid;
  gap: 8px;
  padding: 2px 4px 4px;
}

.cde-pitch-demo__stat {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px 8px;
  color: #d7eee4;
  font-size: 0.72rem;
}

.cde-pitch-demo__stat strong {
  color: #fff;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.cde-pitch-demo__stat strong[data-side="away"] {
  text-align: right;
}

.cde-pitch-demo__stat > span:not(.cde-pitch-demo__stat-track) {
  overflow: hidden;
  color: #a9cabc;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cde-pitch-demo__stat-track {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.cde-pitch-demo__stat-fill {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  transition: width 180ms ease, background 180ms ease;
}

.cde-pitch-demo__sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.coming-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.coming-card::after {
  position: absolute;
  width: 120px;
  height: 120px;
  right: -46px;
  bottom: -48px;
  border: 1px solid rgba(50, 210, 106, 0.25);
  border-radius: 50%;
  content: "";
}

.coming-label {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 9px;
  color: var(--green-dark);
  border-radius: 999px;
  background: #e4f9ea;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section.contact-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-950);
}

.contact-copy .contact-title {
  max-width: 24ch;
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contact-address {
  margin: 0;
  color: #b7c8d8;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.contact-card {
  box-shadow: none;
}

.contact-card .section-title {
  color: var(--ink);
}

.direct-email {
  display: inline-block;
  margin-top: 5px;
  color: var(--green-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(16, 37, 61, 0.18);
  border-radius: 10px;
  color: var(--ink);
  outline: none;
  background: #fbfdff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(50, 210, 106, 0.18);
}

.field-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.turnstile-slot {
  min-height: 65px;
}

.form-status {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-status.success {
  color: var(--green-dark);
}

.form-status.error {
  color: #ac3444;
}

.site-footer {
  color: #bbcad9;
  background: var(--navy-950);
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.footer-brand {
  color: var(--white);
  font-weight: 800;
}

.footer-copy {
  font-size: 0.83rem;
}

.skip-link {
  position: absolute;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: var(--ink);
  border-radius: 8px;
  background: var(--green);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (min-width: 720px) {
  .site-header .shell {
    min-height: 74px;
  }

  .site-nav {
    display: flex;
  }

  .site-header .header-cta {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .lang-switch {
    margin-left: 0;
  }

  .hero .shell {
    padding-top: 112px;
    padding-bottom: 118px;
  }

  .proof-grid,
  .coming-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 96px 0;
  }
}

@media (max-width: 719px) {
  .site-header .shell {
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
  }
}

@media (min-width: 940px) {
  .hero .shell {
    padding-top: 136px;
    padding-bottom: 144px;
  }

  .proof-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .contact-layout {
    grid-template-columns: 0.72fr 1.28fr;
    align-items: start;
  }

  .contact-card:first-child {
    min-height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.contact-layout.contact-layout-email {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

@media (min-width: 940px) {
  .contact-layout.contact-layout-email {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 64px;
  }

  .contact-actions {
    align-items: center;
  }
}
