/* ==============================
   0. CUSTOM PROPERTIES
   ============================== */
:root {
  --bg: #0F1626;
  --bg2: #192536;
  --bg3: #0C1220;
  --text: #ffffff;
  --muted: #b7c0d1;
  --accent: #0A96A6;
  --accent-glow: rgba(10, 150, 166, 0.18);
  --accent-warm: #C75000;
  --accent-warm-light: #E89670;
  --accent-warm-glow: rgba(199, 80, 0, 0.15);
  --card: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.14);
  --shadow: rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --radius-lg: 16px;
  --space: 1rem;
  --success: #059669;
  --danger: #DC2626;

  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: 'Clash Display', 'Inter', system-ui, sans-serif;
}

/* ==============================
   1. RESET & BASE
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.is-hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ==============================
   2. LAYOUT: NAVBAR
   ============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 22, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--space);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- 2b. NAV DROPDOWN --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  line-height: 1.5;
}

.nav-dropdown-trigger:hover {
  color: var(--text);
}

.nav-dropdown-trigger.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-dropdown-trigger .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-trigger .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 160px;
  background: rgba(15, 22, 38, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1100;
  list-style: none;
  margin: 0;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-item.active {
  color: var(--accent);
}

/* --- 2c. CTA DROPDOWN (Get Started) --- */
.cta-dropdown {
  position: relative;
}

.cta-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cta-dropdown-trigger .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.cta-dropdown.open .cta-dropdown-trigger .chevron {
  transform: rotate(180deg);
}

.cta-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: rgba(20, 20, 30, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.35rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 100;
  margin: 0;
}

.cta-dropdown.open .cta-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cta-dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.cta-dropdown-item:hover,
.cta-dropdown-item:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ==============================
   3. BUTTONS
   ============================== */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1.4;
}

.btn-nav {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(10, 150, 166, 0.25);
}

.btn-warm {
  background: var(--accent-warm);
  color: var(--text);
}

.btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--accent-warm-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(10, 150, 166, 0.12);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ==============================
   4. HERO SECTIONS
   ============================== */
.hero {
  min-height: 100vh;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 50%, var(--bg3) 100%);
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s ease;
}

.hero-bg--active {
  opacity: 0.08;
}

.hero-bg--0 {
  background-image: url("assets/insights-bg.png");
}

.hero-bg--1 {
  background-image: url("assets/insights-bg1.png");
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Root hero (index.html) */
.hero--home .hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero-logo {
  height: 128px;
  width: auto;
  margin-bottom: 1.5rem;
}

.hero--home h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 800px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Entry cards (index.html hero) */
.hero-entry-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.entry-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(10, 150, 166, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.entry-card-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.entry-card-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.entry-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.entry-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.entry-card-cta {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.entry-card:hover .entry-card-cta {
  gap: 0.7rem;
}

.entry-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.entry-card-demo {
  margin-top: 1.25rem;
}

/* Product hero (food.html, it.html) */
.hero--product {
  min-height: 60vh;
}

.hero--product .hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 0 3rem;
}

.hero--product h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero--product .hero-subtitle {
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==============================
   5. CARDS (GENERIC)
   ============================== */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow);
}

/* ==============================
   6. FEATURES SECTION
   ============================== */
.features {
  padding: 6rem 0;
  background: var(--bg2);
}

.features h2 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.features .section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.features-grid-6 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  color: var(--accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ==============================
   7. STATS SECTION
   ============================== */
.stats {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 850;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* Stats marquee */
.stats-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.stats-marquee::before,
.stats-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.stats-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--marquee-bg, #F2F2F2), transparent);
}

.stats-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--marquee-bg, #F2F2F2), transparent);
}

.stats-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.stats-track:hover {
  animation-play-state: paused;
}

.stats-track .stat-card {
  flex-shrink: 0;
  width: 220px;
  text-align: center;
  padding: 1.5rem 1.25rem;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==============================
   8. DASHBOARD PREVIEWS
   ============================== */
.previews {
  padding: 5rem 0;
  background: var(--bg);
}

.previews h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.previews .section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 550px;
  margin: 0 auto 3rem;
}

.previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.device-frame {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.06));
  border: 2px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.device-frame:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.device-frame-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  opacity: 0.6;
}

.device-frame-icon svg {
  width: 100%;
  height: 100%;
}

.device-frame-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.device-frame-caption {
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.7;
}

/* Dashboard Image Carousel */
.dashboard-carousel {
  max-width: 1100px;
  margin: 0 auto;
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide--active {
  position: absolute;
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: calc(var(--radius-lg) - 2px);
}

.carousel-caption {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  background: rgba(15, 22, 38, 0.85);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  border-radius: 0 0 calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.carousel-dot:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.carousel-dot--active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ==============================
   9. USE CASES SECTION
   ============================== */
.use-cases {
  padding: 5rem 0;
  background: var(--bg2);
}

.use-cases h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.use-case-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.use-case-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.use-case-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==============================
   10. PRICING SECTION
   ============================== */
.pricing-section {
  padding: 5rem 0;
  background: var(--bg2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.pricing-tab {
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.pricing-tab:first-child {
  border-radius: 8px 0 0 8px;
}

.pricing-tab:last-child {
  border-radius: 0 8px 8px 0;
}

.pricing-tab.active {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.pricing-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.pricing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(15, 22, 38, 0.92);
  backdrop-filter: none;
}

.pricing-card > .btn {
  margin-top: auto;
}

.pricing-featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(10, 150, 166, 0.15);
}

.pricing-tier {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.pricing-tier-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 850;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.pricing-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  width: 100%;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-includes {
  color: var(--accent) !important;
  font-weight: 600;
}

.bespoke-description {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pricing-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-coming-soon h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-coming-soon p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ==============================
   11. DEMO & CONTACT SECTIONS
   ============================== */
.demo-section {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.demo-section .section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
}

.demo-section--collapsed {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.5s ease;
}

.demo-section--collapsed.demo-section--open {
  max-height: 800px;
  opacity: 1;
  padding: 5rem 0;
  overflow: visible;
}

.demo-form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 0 3px rgba(10, 150, 166, 0.14);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(183, 192, 209, 0.5);
}

.checkbox-group {
  margin-top: 0.6rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* Form messages (inline feedback) */
.form-message {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  display: none;
}

.form-message.visible {
  display: block;
}

.form-success {
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: #6ee7b7;
}

.form-error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

/* Contact strip */
.contact-section {
  padding: 4.5rem 0;
  background: var(--bg2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-inline {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 1rem 0 0.5rem;
}

.contact-inline input {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.contact-inline input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 150, 166, 0.14);
}

.contact-inline input::placeholder {
  color: rgba(183, 192, 209, 0.5);
}

/* ==============================
   12. FOOTER
   ============================== */
.site-footer {
  background: var(--bg3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 0 2rem;
}

.footer-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  gap: 0.4rem;
}

.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.85;
}

.footer-logo-text {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-tagline {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.8;
  align-self: center;
}

.footer-info {
  text-align: right;
}

.footer-address {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  opacity: 0.75;
  font-style: normal;
  max-width: 260px;
  margin-left: auto;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(10, 150, 166, 0.1);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom small {
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0.7;
}

.footer-bottom a {
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-bottom a:hover {
  opacity: 1;
}

/* ==============================
   12b. TESTIMONIALS (about.html)
   ============================== */
.testimonials {
  padding: 5rem 0;
  background: var(--bg);
}

.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  text-align: center;
  padding: 2rem;
}

.testimonial-card blockquote {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0 0 1.25rem;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.testimonial-card cite span {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ==============================
   12c. ONBOARDING (about.html)
   ============================== */
.onboarding {
  padding: 5rem 0;
  background: var(--bg2);
}

.onboarding h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.onboarding-step {
  text-align: center;
  padding: 2rem 1.5rem;
  counter-increment: step;
}

.onboarding-step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.onboarding-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.onboarding-step p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==============================
   13. LIGHT THEME SECTIONS
   ============================== */
.theme-light-blue,
.theme-white {
  --text: #1e293b;
  --muted: #64748b;
  --card: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.08);
  --accent-glow: rgba(10, 150, 166, 0.10);
  color: var(--text);
}

.theme-light-blue h2,
.theme-white h2 {
  color: #0F1626;
}

.theme-light-blue {
  background: #D1DDEF !important;
  --card-border: rgba(0, 0, 0, 0.20);
}

.theme-light-blue .card {
  border-color: rgba(0, 0, 0, 0.20);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.theme-white {
  background: #F2F2F2 !important;
}

/* Buttons: primary text must stay white on blue */
.theme-light-blue .btn-primary,
.theme-white .btn-primary {
  color: #ffffff;
}

.theme-light-blue .btn-warm,
.theme-white .btn-warm {
  color: #ffffff;
}

/* Outline buttons: dark text + dark border */
.theme-light-blue .btn-outline,
.theme-white .btn-outline {
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.18);
}

.theme-light-blue .btn-outline:hover,
.theme-white .btn-outline:hover {
  border-color: var(--accent);
  background: rgba(10, 150, 166, 0.08);
}

/* Card hover */
.theme-light-blue .card:hover,
.theme-white .card:hover {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Stat cards */
.theme-light-blue .stat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.20);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.theme-white .stat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Section borders: swap white to dark */
.theme-light-blue.stats,
.theme-light-blue.pricing-section,
.theme-light-blue.demo-section,
.theme-light-blue.contact-section,
.theme-white.stats,
.theme-white.pricing-section,
.theme-white.demo-section,
.theme-white.contact-section {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* Demo form wrap */
.theme-light-blue .demo-form-wrap {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.20);
}

.theme-white .demo-form-wrap {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Form inputs */
.theme-light-blue .form-group input,
.theme-light-blue .form-group select,
.theme-light-blue .form-group textarea,
.theme-white .form-group input,
.theme-white .form-group select,
.theme-white .form-group textarea {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text);
}

.theme-light-blue .form-group input:focus,
.theme-light-blue .form-group select:focus,
.theme-light-blue .form-group textarea:focus,
.theme-white .form-group input:focus,
.theme-white .form-group select:focus,
.theme-white .form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.01);
  box-shadow: 0 0 0 3px rgba(10, 150, 166, 0.12);
}

.theme-light-blue .form-group input::placeholder,
.theme-light-blue .form-group textarea::placeholder,
.theme-white .form-group input::placeholder,
.theme-white .form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

/* Contact inline */
.theme-light-blue .contact-inline input,
.theme-white .contact-inline input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text);
}

.theme-light-blue .contact-inline input:focus,
.theme-white .contact-inline input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 150, 166, 0.12);
}

.theme-light-blue .contact-inline input::placeholder,
.theme-white .contact-inline input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

/* Checkbox */
.theme-light-blue .checkbox-label,
.theme-white .checkbox-label {
  color: var(--muted);
}

/* Pricing cards */
.theme-light-blue .pricing-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.20);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.theme-white .pricing-card {
  background: #ffffff;
}

.theme-light-blue .pricing-tab,
.theme-white .pricing-tab {
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--muted);
}

.theme-light-blue .pricing-tab:hover:not(.active),
.theme-white .pricing-tab:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.theme-light-blue .pricing-features li,
.theme-white .pricing-features li {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Device frames */
.theme-light-blue .device-frame,
.theme-white .device-frame {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.03));
  border-color: rgba(0, 0, 0, 0.10);
}

.theme-light-blue .device-frame:hover,
.theme-white .device-frame:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.theme-light-blue .device-frame-label,
.theme-white .device-frame-label {
  color: var(--text);
  opacity: 0.8;
}

/* Entry cards */
.theme-light-blue .entry-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.20);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.theme-white .entry-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.theme-light-blue .entry-card:hover,
.theme-white .entry-card:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(10, 150, 166, 0.1);
}

/* Carousel */
.theme-light-blue .carousel-viewport,
.theme-white .carousel-viewport {
  border-color: rgba(0, 0, 0, 0.10);
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.theme-light-blue .carousel-caption,
.theme-white .carousel-caption {
  background: rgba(255, 255, 255, 0.92);
}

.theme-light-blue .carousel-dot,
.theme-white .carousel-dot {
  border-color: rgba(0, 0, 0, 0.2);
}

.theme-light-blue .carousel-dot:hover,
.theme-white .carousel-dot:hover {
  border-color: rgba(0, 0, 0, 0.4);
}

/* ==============================
   13b. HELPERS
   ============================== */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.section-anchor {
  scroll-margin-top: 90px;
}

/* ==============================
   14. RESPONSIVE
   ============================== */
@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-row {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-bar {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .footer-logo a {
    align-items: center;
  }

  .footer-info {
    text-align: center;
  }

  .footer-address {
    margin: 0 auto;
  }

  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
    width: 100%;
  }

  .nav-menu {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 22, 38, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 1.6rem 1.2rem;
    z-index: 1200;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 0.25rem;
    align-items: stretch;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    display: block;
    padding: 0.8rem 0;
    font-size: 1.05rem;
    border-bottom: none;
  }

  .nav-link.active {
    color: var(--accent);
    border-bottom: none;
  }

  .mobile-only .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero--home h1 {
    font-size: 2rem;
  }

  .hero-entry-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0 3rem;
  }

  .hero--product h1 {
    font-size: 1.8rem;
  }

  .hero-headline {
    padding: 3rem 0 2rem;
  }

  .features h2,
  .stats h2,
  .previews h2,
  .pricing-section h2,
  .demo-section h2,
  .contact-section h2,
  .use-cases h2 {
    font-size: 1.65rem;
  }

  .features-grid,
  .features-grid-6 {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .previews-grid {
    grid-template-columns: 1fr;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .demo-form-wrap {
    padding: 1.5rem;
  }

  .contact-inline {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .footer-logo a {
    align-items: center;
  }

  .footer-info {
    text-align: center;
  }

  .footer-address {
    margin: 0 auto;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Dropdown mobile styles */
  .nav-dropdown {
    position: static;
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    padding: 0.8rem 0;
    font-size: 1.05rem;
    border-bottom: none;
  }

  .nav-dropdown-trigger.active {
    color: var(--accent);
    border-bottom: none;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-dropdown.open .dropdown-menu {
    max-height: 200px;
    padding: 0.25rem 0;
    transform: none;
  }

  .dropdown-item {
    text-align: center;
    padding: 0.6rem 0;
  }

  /* CTA dropdown mobile styles */
  .cta-dropdown {
    position: static;
    width: 100%;
    text-align: center;
  }

  .cta-dropdown-trigger {
    width: 100%;
    justify-content: center;
  }

  .cta-dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .cta-dropdown.open .cta-dropdown-menu {
    max-height: 200px;
    padding: 0.25rem 0;
    transform: none;
  }

  .cta-dropdown-item {
    text-align: center;
    padding: 0.6rem 0;
  }

  /* New page section responsive */
  .testimonials h2,
  .onboarding h2 {
    font-size: 1.65rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .entry-card {
    padding: 1.75rem 1.25rem;
  }

  .pricing-tab {
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
  }
}
