/* ============================================
   CACO Bridge — CacoBridge.com
   Enterprise SaaS Website Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --navy: #0D1B2A;
  --white: #FFFFFF;
  --cyan-start: #00BFFF;
  --cyan-end: #00E5FF;
  --muted-blue: #5A7A94;
  --muted-blue-light: #6A8FAA;
  --teal-start: #0077AA;
  --teal-end: #0091CC;

  --font-primary: -apple-system, 'Helvetica Neue', 'Arial', sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-semibold: 600;

  --section-pad: 120px;
  --container-max: 1200px;
  --nav-height: 72px;
  --radius: 8px;
  --radius-lg: 16px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

.subtitle {
  font-weight: var(--fw-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

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

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

.section__title {
  text-align: center;
  margin-bottom: 24px;
}

.section__subtitle {
  text-align: center;
  color: var(--muted-blue);
  max-width: 640px;
  margin: 0 auto 64px;
  font-size: 1.0625rem;
}

.section--white .section__subtitle {
  color: var(--muted-blue-light);
}

/* Accent divider */
.accent-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-start), var(--cyan-end));
  border: none;
  margin: 24px auto 0;
  border-radius: 1px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  border-radius: 6px;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--cyan-start), var(--cyan-end));
  color: var(--navy);
}

.btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 191, 255, 0.25);
}

.btn--outline {
  border: 1.5px solid var(--cyan-start);
  color: var(--cyan-start);
  background: transparent;
}

.btn--outline:hover {
  background: rgba(0, 191, 255, 0.08);
  transform: translateY(-1px);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

.nav__links a.active {
  position: relative;
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-start), var(--cyan-end));
  border-radius: 1px;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  margin-right: -12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  padding: calc(var(--nav-height) + 40px) 24px 80px;
}

.hero__logo {
  width: min(500px, 80vw);
  margin-bottom: 48px;
}

.hero__tagline {
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero__description {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--muted-blue);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero__patent {
  margin-top: 48px;
  font-size: 0.8125rem;
  color: var(--muted-blue);
  font-weight: var(--fw-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Feature Cards (Product Overview) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid #E8ECF0;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--cyan-start);
  box-shadow: 0 8px 32px rgba(0, 191, 255, 0.08);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 229, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--cyan-start);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 12px;
}

.feature-card__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-blue-light);
}

.product-note {
  text-align: center;
  margin-top: 48px;
  font-size: 0.9375rem;
  color: var(--muted-blue-light);
  font-style: italic;
}

/* --- How It Works (Demo Embed) --- */
.demo-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-container iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

.demo-mobile-fallback {
  display: none;
}

/* --- Use Cases --- */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 0;
}

.usecase-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid #E8ECF0;
  transition: all 0.3s ease;
}

.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.08);
}

.usecase-card--featured {
  border-color: var(--cyan-start);
  position: relative;
}

.usecase-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-start), var(--cyan-end));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.usecase-card__label {
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-start);
  margin-bottom: 12px;
}

.usecase-card__title {
  font-size: 1.375rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 16px;
}

.usecase-card__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-blue-light);
}

.usecase-card__subtext {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted-blue);
  font-style: italic;
  line-height: 1.6;
}

/* --- Global Markets (Map) --- */
.map-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.map-container svg {
  width: 100%;
  height: auto;
}

.map-region {
  fill: rgba(90, 122, 148, 0.2);
  stroke: rgba(90, 122, 148, 0.4);
  stroke-width: 0.5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-region:hover,
.map-region.active {
  fill: rgba(0, 191, 255, 0.25);
  stroke: var(--cyan-start);
  stroke-width: 1;
}

.territory-panel {
  display: none;
  margin-top: 48px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeSlideUp 0.4s ease;
}

.territory-panel.visible {
  display: block;
}

.territory-panel__title {
  font-size: 1.5rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 16px;
}

.territory-panel__text {
  color: var(--muted-blue);
  margin-bottom: 24px;
  line-height: 1.7;
}

.territory-panel__features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.territory-panel__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
}

.territory-panel__features li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-start), var(--cyan-end));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230D1B2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* Map mobile fallback */
.map-mobile {
  display: none;
}

.map-mobile__card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-mobile__card:hover {
  border-color: var(--cyan-start);
  background: rgba(0, 191, 255, 0.05);
}

.map-mobile__card h4 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.map-mobile__card p {
  font-size: 0.875rem;
  color: var(--muted-blue);
}

/* --- About / Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin-bottom: 24px;
  border: 3px solid rgba(255, 255, 255, 0.08);
}

.team-card__name {
  font-size: 1.375rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.875rem;
  font-weight: var(--fw-light);
  color: var(--cyan-start);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.team-card__bio {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted-blue);
  text-align: left;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  gap: 16px;
}

.faq-item__question:hover {
  color: var(--cyan-start);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--white);
  border-radius: 1px;
  top: 50%;
  left: 50%;
}

.faq-item__icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding-bottom: 24px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted-blue);
}

/* --- Pricing --- */
.pricing-wrapper {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.pricing-card {
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid #E8ECF0;
  margin-bottom: 32px;
}

.pricing-card__price {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pricing-card__price span {
  font-size: 1.125rem;
  font-weight: var(--fw-regular);
  color: var(--muted-blue-light);
}

.pricing-card__billing {
  font-size: 0.9375rem;
  color: var(--muted-blue-light);
  margin-bottom: 32px;
}

.pricing-card__features {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted-blue-light);
  text-align: left;
  margin-bottom: 36px;
}

.pricing-enterprise {
  padding: 32px;
  border-radius: var(--radius);
  background: #F7F9FB;
  margin-bottom: 32px;
}

.pricing-enterprise h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.pricing-enterprise p {
  font-size: 0.9375rem;
  color: var(--muted-blue-light);
  line-height: 1.7;
}

.pricing-note {
  font-size: 0.8125rem;
  color: var(--muted-blue-light);
  margin-top: 24px;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 8px;
  color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--white);
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-blue);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan-start);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A7A94' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--navy);
  color: var(--white);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.contact-alt {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9375rem;
  color: var(--muted-blue);
}

.contact-alt a {
  color: var(--cyan-start);
  transition: opacity 0.2s;
}

.contact-alt a:hover {
  opacity: 0.8;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
  color: var(--muted-blue);
  font-size: 0.8125rem;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo img {
  height: 28px;
  width: auto;
  opacity: 0.6;
}

.footer__center {
  text-align: center;
}

.footer__patent {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--white);
}

/* --- Hero Stat Line --- */
.hero__stat-line {
  margin-top: 40px;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--muted-blue);
  letter-spacing: 0.06em;
  font-weight: var(--fw-light);
}

.hero__until-now {
  color: var(--white);
  font-weight: var(--fw-semibold);
}

/* --- Implementation Timeline --- */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.timeline-phase {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.timeline-phase__badge {
  display: inline-block;
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--cyan-start), var(--cyan-end));
  color: var(--navy);
  border-radius: 20px;
  margin-bottom: 16px;
}

.timeline-phase__title {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 4px;
}

.timeline-phase__days {
  font-size: 0.8125rem;
  color: var(--cyan-start);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.timeline-phase__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-blue);
  text-align: left;
}

/* --- Patent Badge --- */
.patent-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px auto 8px;
  padding: 8px 20px;
  border-radius: 24px;
  border: 1px solid rgba(0, 191, 255, 0.3);
  background: rgba(0, 191, 255, 0.06);
  color: var(--cyan-start);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}

/* --- GDPR Badge --- */
.gdpr-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-start);
  border: 1px solid rgba(0, 191, 255, 0.25);
  border-radius: 4px;
  background: rgba(0, 191, 255, 0.06);
}

/* --- Pricing Pilot --- */
.pricing-pilot {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--cyan-start);
  background: rgba(0, 191, 255, 0.03);
  margin-bottom: 24px;
  text-align: center;
}

.pricing-pilot h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.pricing-pilot p {
  font-size: 0.9375rem;
  color: var(--muted-blue-light);
  line-height: 1.7;
}

/* --- Sticky Demo CTA --- */
.sticky-demo-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 28px;
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--cyan-start), var(--cyan-end));
  color: var(--navy);
  border-radius: 48px;
  box-shadow: 0 8px 32px rgba(0, 191, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.sticky-demo-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-demo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 191, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* --- Page Transitions (two-panel wipe) --- */
.trans-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.trans-panel__front,
.trans-panel__back {
  position: absolute;
  inset: 0;
  background: var(--navy);
  will-change: transform;
  transform: translateX(-101%);          /* parked off-screen by default */
}

/* A thin cyan accent line on the leading edge of the front panel */
.trans-panel__front::after {
  content: '';
  position: absolute;
  background: linear-gradient(135deg, var(--cyan-start), var(--cyan-end));
}

/* ===== DIRECTIONAL STARTING POSITIONS ===== */
/* LEFT  — panels slide from left to right */
.trans-panel[data-dir="left"]  .trans-panel__front,
.trans-panel[data-dir="left"]  .trans-panel__back  { transform: translateX(-101%); }
.trans-panel[data-dir="left"]  .trans-panel__front::after {
  top: 0; right: -2px; width: 3px; height: 100%;
}

/* RIGHT — panels slide from right to left */
.trans-panel[data-dir="right"] .trans-panel__front,
.trans-panel[data-dir="right"] .trans-panel__back  { transform: translateX(101%); }
.trans-panel[data-dir="right"] .trans-panel__front::after {
  top: 0; left: -2px; width: 3px; height: 100%;
}

/* UP    — panels slide from bottom to top */
.trans-panel[data-dir="up"]    .trans-panel__front,
.trans-panel[data-dir="up"]    .trans-panel__back  { transform: translateY(101%); }
.trans-panel[data-dir="up"]    .trans-panel__front::after {
  left: 0; top: -2px; height: 3px; width: 100%;
}

/* ===== PHASE 1: COVER — front slides in to fill screen ===== */
.trans-panel.phase-cover[data-dir="left"]  .trans-panel__front {
  animation: slideToCenter-x 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.trans-panel.phase-cover[data-dir="right"] .trans-panel__front {
  animation: slideToCenter-x 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.trans-panel.phase-cover[data-dir="up"]    .trans-panel__front {
  animation: slideToCenter-y 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes slideToCenter-x {
  to { transform: translateX(0); }
}
@keyframes slideToCenter-y {
  to { transform: translateY(0); }
}

/* ===== PHASE 2: REVEAL — back (which was behind front) slides away ===== */
/* Both panels start at center; back slides out in the CONTINUED direction */
.trans-panel.phase-reveal .trans-panel__front {
  transform: translateX(0);   /* stays still briefly */
}

.trans-panel.phase-reveal[data-dir="left"]  .trans-panel__back {
  transform: translateX(0);
  animation: exitRight 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.trans-panel.phase-reveal[data-dir="left"]  .trans-panel__front {
  animation: exitRight 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.04s forwards;
}

.trans-panel.phase-reveal[data-dir="right"] .trans-panel__back {
  transform: translateX(0);
  animation: exitLeft 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.trans-panel.phase-reveal[data-dir="right"] .trans-panel__front {
  animation: exitLeft 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.04s forwards;
}

.trans-panel.phase-reveal[data-dir="up"]    .trans-panel__back {
  transform: translateY(0);
  animation: exitUp 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.trans-panel.phase-reveal[data-dir="up"]    .trans-panel__front {
  animation: exitUp 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.04s forwards;
}

@keyframes exitRight {
  to { transform: translateX(101%); }
}
@keyframes exitLeft {
  to { transform: translateX(-101%); }
}
@keyframes exitUp {
  to { transform: translateY(-101%); }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Intro Paragraph --- */
.intro-text {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted-blue-light);
}

.section--navy .intro-text {
  color: var(--muted-blue);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    gap: 32px;
  }

  .demo-container iframe {
    height: 550px;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  /* Nav mobile */
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    background: rgba(13, 27, 42, 0.98);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px 24px 32px;
    gap: 0;
    margin: 0;
    list-style: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1001;
  }

  .nav__links.open {
    display: flex !important;
  }

  .nav__links > li {
    display: block;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
  }

  .nav__links > li > a {
    display: block;
    width: 100%;
    padding: 18px 0;
    font-size: 1.0625rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__links > li > a.btn {
    margin-top: 24px;
    text-align: center;
    border-bottom: 0;
    padding: 14px 20px;
    font-size: 0.9375rem;
  }

  .nav__toggle {
    display: flex;
  }

  /* Grids to single column */
  .features-grid,
  .usecases-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .territory-panel__features {
    grid-template-columns: 1fr;
  }

  /* Demo: hide iframe, show fallback */
  .demo-container {
    display: none;
  }

  .demo-mobile-fallback {
    display: block;
  }

  /* Map: hide SVG, show mobile cards */
  .map-desktop {
    display: none;
  }

  .map-mobile {
    display: block;
  }

  /* Pricing */
  .pricing-card {
    padding: 40px 24px;
  }

  .pricing-pilot {
    padding: 28px 20px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
  }

  .hero__logo {
    width: min(320px, 75vw);
    margin-bottom: 32px;
  }

  .hero__tagline {
    font-size: 1.5rem;
  }

  .hero__description {
    font-size: 0.9375rem;
    margin-bottom: 32px;
  }

  .hero__stat-line {
    margin-top: 28px;
    font-size: 0.875rem;
  }

  /* Cards tighter on mobile */
  .feature-card {
    padding: 28px 20px;
  }

  .usecase-card {
    padding: 28px 20px;
  }

  /* Timeline */
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .timeline-phase {
    padding: 24px 20px;
  }

  /* Patent badge */
  .patent-badge {
    font-size: 0.6875rem;
    padding: 6px 14px;
    margin-top: 32px;
  }

  /* Team bios more readable */
  .team-card__bio {
    font-size: 0.875rem;
  }

  /* Advisory section */
  .advisory-section h3 {
    font-size: 1.0625rem;
  }

  /* Sticky CTA */
  .sticky-demo-cta {
    bottom: 16px;
    right: 16px;
    padding: 12px 20px;
    font-size: 0.8125rem;
  }

  /* FAQ answers need more room on mobile */
  .faq-item.open .faq-item__answer {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 56px;
  }

  body {
    font-size: 16px;
  }

  .hero__logo {
    width: min(260px, 70vw);
    margin-bottom: 24px;
  }

  .hero__tagline {
    font-size: 1.375rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .intro-text {
    font-size: 0.9375rem;
  }

  .feature-card__text,
  .usecase-card__text,
  .timeline-phase__text {
    font-size: 0.875rem;
  }

  .pricing-card__price {
    font-size: 2rem;
  }

  .nav__logo img {
    height: 28px;
  }

  /* Ensure contact form fields are full width */
  .contact-form {
    padding: 0;
  }

  .sticky-demo-cta {
    bottom: 12px;
    right: 12px;
    padding: 10px 16px;
    font-size: 0.75rem;
  }
}

/* --- Legal Pages --- */
.legal-page {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page .effective-date {
  font-size: 0.875rem;
  color: var(--muted-blue-light);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-page p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: #3A4A5C;
}

.legal-page ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: #3A4A5C;
}

/* --- Press Page --- */
.press-page {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.press-entry {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0;
  border-bottom: 1px solid #E8ECF0;
}

.press-entry:last-child {
  border-bottom: none;
}

.press-entry__date {
  font-size: 0.8125rem;
  color: var(--muted-blue-light);
  font-weight: var(--fw-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.press-entry__source {
  font-size: 0.75rem;
  color: var(--cyan-start);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.press-entry__title {
  font-size: 1.5rem;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  margin-bottom: 20px;
}

.press-entry__body {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #3A4A5C;
}

.press-entry__body p {
  margin-bottom: 16px;
}

.press-entry__body blockquote {
  border-left: 3px solid var(--cyan-start);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--navy);
}

.press-entry__body .quote-attribution {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--muted-blue-light);
  margin-top: 8px;
}
