/* ShiftBridge — full dark theme, SPA-style transitions, 3D polish */
:root {
  --blue: #2B5BFF;
  --blue-bright: #3D6FFF;
  --blue-soft: #6C8AFF;
  --blue-dim: #1E3FB8;
  --ink-0: #000000;
  --ink-1: #05080F;
  --ink-2: #070B18;
  --ink-3: #0B1124;
  --ink-4: #101834;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --line-accent: rgba(108, 138, 255, 0.25);
  --text: #E8ECF8;
  --text-strong: #FFFFFF;
  --text-dim: #A5ACC2;
  --text-mute: #6F7690;
  --shadow-blue: 0 30px 80px -30px rgba(43, 91, 255, 0.45);
  --shadow-deep: 0 40px 80px -40px rgba(0, 0, 0, 0.75);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.4, 0, 0.15, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--ink-0);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--ink-1);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

::selection {
  background: rgba(43, 91, 255, 0.35);
  color: #fff;
}

/* ----- Top progress bar (SPA transitions) ----- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-bright), var(--blue-soft));
  box-shadow: 0 0 12px rgba(108, 138, 255, 0.6);
  z-index: 200;
  transition: width 0.35s var(--ease-snap), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.progress-bar.show { opacity: 1; }

/* ----- Page container used for SPA fade transitions ----- */
#page {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease), filter 0.42s var(--ease);
  will-change: opacity, transform, filter;
}
#page.leaving {
  opacity: 0;
  transform: translateY(-16px);
  filter: blur(6px);
}
#page.entering {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(8px);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-soft);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(108, 138, 255, 0.28);
  background: rgba(43, 91, 255, 0.08);
  backdrop-filter: blur(12px);
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}

/* alternating dark sections for visual rhythm */
.section-alt {
  background: var(--ink-2);
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(43, 91, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(108, 138, 255, 0.04), transparent 60%);
  pointer-events: none;
}

/* thin accent divider between sections */
.section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 138, 255, 0.28), transparent);
  opacity: 0.55;
}
.hero::after { display: none; }

.section-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
  color: var(--text-strong);
}

.section-lead {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--text-dim);
  max-width: 760px;
  margin: 0 0 50px;
}

/* ----- Navigation — transparent with glassmorphism on scroll ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 18px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(5, 8, 15, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px -20px rgba(0, 0, 0, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.nav-brand:hover { transform: translateY(-1px); }
.nav-brand .logo-img {
  display: block;
  height: 85px;
  width: auto;
  mix-blend-mode: screen;
  /* boost contrast so the near-black PNG background collapses to pure black */
  filter: contrast(1.25) brightness(1.08);
  user-select: none;
  -webkit-user-drag: none;
  transition: height 0.3s var(--ease), filter 0.3s var(--ease);
}
.nav.scrolled .nav-brand .logo-img { height: 65px; }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-strong);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--blue-soft));
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ----- Dropdown Menu ----- */
.nav-dropdown {
  position: relative;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dropdown-toggle svg {
  transition: transform 0.3s var(--ease);
}
.nav-dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 280px;
  background: rgba(11, 17, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(108, 138, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
  list-style: none;
  z-index: 101;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(11, 17, 36, 0.95);
  border-left: 1px solid rgba(108, 138, 255, 0.2);
  border-top: 1px solid rgba(108, 138, 255, 0.2);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  text-decoration: none;
}
.dropdown-item:hover {
  background: rgba(43, 91, 255, 0.1);
  border-color: rgba(108, 138, 255, 0.3);
}
.dropdown-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all 0.25s var(--ease);
}
.dropdown-item:hover .dropdown-icon {
  background: rgba(43, 91, 255, 0.15);
  border-color: rgba(108, 138, 255, 0.3);
  color: var(--blue-soft);
}
.dropdown-icon.flagship-icon {
  background: rgba(43, 91, 255, 0.15);
  border-color: rgba(108, 138, 255, 0.3);
  color: var(--blue-bright);
}
.dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dropdown-content strong {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.dropdown-content span {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.4;
}
.dropdown-content span em {
  color: var(--blue-soft);
  font-style: normal;
}
.coming-soon-item {
  opacity: 0.8;
}
.coming-soon-item:hover {
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue) 100%);
  color: var(--text-strong) !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 22px -8px rgba(43, 91, 255, 0.6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px rgba(43, 91, 255, 0.75);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
  background:
    /* Dark overlay for text readability */
    linear-gradient(180deg, rgba(5, 8, 15, 0.6) 0%, rgba(5, 8, 15, 0.85) 100%),
    /* Hero banner image */
    url('/images/hero-banner.png') center/cover no-repeat,
    /* Fallback gradient */
    radial-gradient(ellipse 80% 60% at 50% 0%, #12204a 0%, transparent 60%),
    var(--ink-0);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, rgba(0, 0, 0, 0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, rgba(0, 0, 0, 0.9), transparent 70%);
  pointer-events: none;
  transition: transform 0.2s linear;
}

/* mouse-tracked parallax layers */
.hero-parallax {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: transform 0.3s var(--ease);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  animation: float 22s ease-in-out infinite;
}
.orb-1 { width: 560px; height: 560px; background: #2B5BFF; top: -180px; left: -140px; }
.orb-2 { width: 460px; height: 460px; background: #6C8AFF; bottom: -140px; right: -120px; animation-delay: -8s; }
.orb-3 { width: 340px; height: 340px; background: #1E3FB8; top: 40%; right: 15%; animation-delay: -14s; opacity: 0.38; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.06); }
  66% { transform: translate(-20px, 30px) scale(0.96); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 22px 0 28px;
  font-weight: 700;
  color: var(--text-strong);
}

.hero h1 .grad {
  background: linear-gradient(100deg, #6C8AFF 0%, #FFFFFF 50%, #6C8AFF 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 0 40px;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue) 100%);
  color: var(--text-strong);
  box-shadow: 0 14px 34px -10px rgba(43, 91, 255, 0.6);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -12px rgba(43, 91, 255, 0.8); }
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(108, 138, 255, 0.4); }

.btn-arrow {
  font-size: 16px;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.hero-stats {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.stat strong {
  font-family: "Space Grotesk", "Inter", sans-serif;
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* ----- Brand marquee ----- */
.marquee {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(11, 17, 36, 0.8) 0%, rgba(7, 11, 24, 0.95) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(43, 91, 255, 0.08), transparent 60%);
}
.marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 20% at 10% 50%, rgba(43, 91, 255, 0.1), transparent 50%),
    radial-gradient(ellipse 30% 20% at 90% 50%, rgba(108, 138, 255, 0.08), transparent 50%);
  pointer-events: none;
}
.marquee-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-soft));
  box-shadow: 0 0 8px rgba(43, 91, 255, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}
.marquee-track {
  display: flex;
  gap: 28px;
  animation: slide 30s linear infinite;
  width: max-content;
  padding: 8px 0;
}
.integration-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease);
  cursor: default;
}
.integration-badge:hover {
  background:
    linear-gradient(135deg, rgba(43, 91, 255, 0.15) 0%, rgba(43, 91, 255, 0.05) 100%);
  border-color: rgba(108, 138, 255, 0.35);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px -8px rgba(43, 91, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.integration-badge svg {
  width: 18px;
  height: 18px;
  color: var(--blue-soft);
  transition: color 0.3s ease;
  flex-shrink: 0;
}
.integration-badge:hover svg {
  color: var(--blue-bright);
}
.integration-badge span {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.integration-badge:hover span {
  color: var(--text);
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- Product Cards ----- */
.products-grid {
  gap: 24px;
}
.product-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 138, 255, 0.25);
  box-shadow: 0 20px 60px -20px rgba(43, 91, 255, 0.2);
}
.product-card.flagship {
  background: linear-gradient(180deg, rgba(43, 91, 255, 0.08) 0%, rgba(43, 91, 255, 0.02) 100%);
  border-color: rgba(108, 138, 255, 0.3);
}
.product-card.flagship:hover {
  border-color: rgba(108, 138, 255, 0.5);
  box-shadow: 0 20px 60px -20px rgba(43, 91, 255, 0.35);
}
.product-card.coming-soon {
  opacity: 0.85;
}
.product-card.coming-soon:hover {
  opacity: 1;
}
.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.product-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(43, 91, 255, 0.15) 0%, rgba(43, 91, 255, 0.05) 100%);
  border: 1px solid rgba(108, 138, 255, 0.2);
  color: var(--blue-soft);
}
.product-card.flagship .product-icon {
  background: linear-gradient(135deg, rgba(43, 91, 255, 0.25) 0%, rgba(43, 91, 255, 0.1) 100%);
  border-color: rgba(108, 138, 255, 0.4);
  color: var(--blue-bright);
}
.product-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.flagship-badge {
  background: linear-gradient(135deg, rgba(43, 91, 255, 0.25) 0%, rgba(43, 91, 255, 0.1) 100%);
  border: 1px solid rgba(108, 138, 255, 0.4);
  color: var(--blue-soft);
}
.soon-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-mute);
}
.product-card h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.product-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 20px;
  flex-grow: 1;
}
.product-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.product-features li svg {
  color: var(--blue-soft);
  flex-shrink: 0;
}
.product-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}
.product-actions .btn {
  flex: 1;
  justify-content: center;
}
@media (max-width: 980px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 24px;
  }
}

/* ----- Grid helpers ----- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ----- Cards ----- */
.card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(108, 138, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(108, 138, 255, 0), rgba(108, 138, 255, 0.4) var(--angle, 50%), rgba(108, 138, 255, 0));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 138, 255, 0.25);
  box-shadow: 0 30px 60px -30px rgba(43, 91, 255, 0.4);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(43, 91, 255, 0.2), rgba(108, 138, 255, 0.06));
  border: 1px solid rgba(108, 138, 255, 0.25);
  color: var(--blue-soft);
  margin-bottom: 20px;
  font-size: 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover .card-icon {
  transform: scale(1.06) rotate(-3deg);
  border-color: rgba(108, 138, 255, 0.5);
}
.card h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.2rem;
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* 3D tilt wrapper — applied via JS */
.tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* ----- Problems / Solutions Section ----- */
.problems-section {
  padding-top: clamp(60px, 8vw, 100px) !important;
}

/* ----- Split panels (problems/solutions) ----- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}

.split .panel {
  border-radius: var(--radius-xl);
  padding: 40px;
  background: linear-gradient(160deg, rgba(16, 24, 52, 0.8) 0%, rgba(11, 17, 36, 0.6) 100%);
  border: 1px solid rgba(108, 138, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  box-shadow:
    0 20px 60px -30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(108, 138, 255, 0.05) inset;
}

.split .panel:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 138, 255, 0.3);
  box-shadow:
    0 30px 80px -30px rgba(43, 91, 255, 0.25),
    0 20px 60px -20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(108, 138, 255, 0.1) inset;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(108, 138, 255, 0.5), transparent);
  opacity: 0.6;
}

.panel.problems::before {
  background: linear-gradient(90deg, transparent, rgba(255, 110, 110, 0.5), transparent);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

.problem-icon {
  background: rgba(255, 110, 110, 0.12);
  border: 1px solid rgba(255, 110, 110, 0.25);
  color: #ff7e7e;
}

.solution-icon {
  background: rgba(43, 91, 255, 0.12);
  border: 1px solid rgba(108, 138, 255, 0.3);
  color: var(--blue-bright);
}

.panel:hover .panel-icon {
  transform: scale(1.1) rotate(-5deg);
}

.panel:hover .problem-icon {
  box-shadow: 0 0 20px rgba(255, 110, 110, 0.3);
}

.panel:hover .solution-icon {
  box-shadow: 0 0 20px rgba(43, 91, 255, 0.3);
}

.panel h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.45rem;
  margin: 0;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel li {
  position: relative;
  padding: 16px 0 16px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  transition: all 0.3s var(--ease);
}

.panel li:first-child { border-top: 0; padding-top: 0; }
.panel li:last-child { padding-bottom: 0; }

.panel li:hover {
  color: var(--text-strong);
  transform: translateX(4px);
}

.panel li b, .panel li strong { color: var(--text-strong); font-weight: 600; }

.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}

.panel.problems li::before {
  background: rgba(255, 110, 110, 0.1);
  border: 1.5px solid rgba(255, 110, 110, 0.5);
}

.panel.problems li::after {
  content: "!";
  position: absolute;
  left: 9px;
  top: 18px;
  font-size: 12px;
  font-weight: 800;
  color: #ff7e7e;
}

.panel.solutions li::before {
  background: linear-gradient(135deg, var(--blue), var(--blue-soft));
  border: none;
  box-shadow: 0 0 12px rgba(43, 91, 255, 0.4);
}

.panel.solutions li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 25px;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.panel li:hover::before {
  transform: scale(1.15);
}

/* ----- Animated Timeline ----- */
.timeline {
  position: relative;
  padding-left: 70px;
  margin: 50px 0 0;
}

.timeline-progress {
  position: absolute;
  left: 30px;
  top: 10px;
  bottom: 40px;
  width: 3px;
  background: linear-gradient(180deg, rgba(108, 138, 255, 0.15), rgba(43, 91, 255, 0.05));
  border-radius: 3px;
  overflow: hidden;
}

.timeline-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue-soft), var(--blue-dim));
  transition: height 0.4s var(--ease);
  box-shadow: 0 0 20px rgba(43, 91, 255, 0.6);
}

.timeline-item {
  position: relative;
  padding: 0 0 52px 0;
  opacity: 0.35;
  transform: translateX(-20px);
  transition: all 0.5s var(--ease);
}

.timeline-item.active {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Timeline dot - centered on progress line */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -47px;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ink-3);
  border: 3px solid rgba(108, 138, 255, 0.3);
  box-shadow: 0 0 0 4px rgba(43, 91, 255, 0.05);
  transition: all 0.4s var(--ease);
}

.timeline-item.active::before {
  background: var(--blue);
  border-color: var(--blue-bright);
  box-shadow:
    0 0 0 6px rgba(43, 91, 255, 0.15),
    0 0 30px rgba(43, 91, 255, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(43, 91, 255, 0.15), 0 0 30px rgba(43, 91, 255, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(43, 91, 255, 0.1), 0 0 40px rgba(43, 91, 255, 0.8); }
}

/* Phase number */
.timeline-number {
  position: absolute;
  left: -70px;
  top: 6px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease);
}

.timeline-item.active .timeline-number {
  opacity: 1;
  transform: translateX(0);
  color: var(--blue-bright);
  text-shadow: 0 0 20px rgba(108, 138, 255, 0.5);
}

.timeline-item h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--text-dim);
  transition: color 0.4s var(--ease);
}

.timeline-item.active h4 {
  color: var(--text-strong);
}

.timeline-item p {
  margin: 0;
  color: var(--text-mute);
  line-height: 1.65;
  transition: color 0.4s var(--ease);
}

.timeline-item.active p {
  color: var(--text);
}

/* Hover effect for active items */
.timeline-item.active:hover {
  transform: translateX(8px);
}

/* Mobile adjustments */
@media (max-width: 860px) {
  .timeline {
    padding-left: 55px;
  }
  .timeline-number {
    left: -55px;
    font-size: 10px;
  }
  .timeline-item {
    padding-bottom: 40px;
  }
  .timeline-item::before {
    left: -42px;
    width: 14px;
    height: 14px;
  }
  .timeline-progress {
    left: 20px;
  }
}

/* ----- Proof cards ----- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .proof-grid { grid-template-columns: 1fr; } }

.proof-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.proof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 138, 255, 0.3);
}
.proof-card .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(43, 91, 255, 0.14);
  color: var(--blue-soft);
  margin-bottom: 16px;
  border: 1px solid rgba(108, 138, 255, 0.22);
}
.proof-card h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.4rem;
  margin: 0 0 14px;
  color: var(--text-strong);
}
.proof-card p {
  color: var(--text-dim);
  margin: 0;
}
.proof-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(43, 91, 255, 0.22), transparent 70%);
  pointer-events: none;
  transition: transform 0.5s var(--ease);
}
.proof-card:hover::after { transform: scale(1.15); }

/* ----- CTA banner ----- */
.cta-banner {
  position: relative;
  padding: 76px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 30%, rgba(108, 138, 255, 0.3), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(43, 91, 255, 0.35), transparent 55%),
    linear-gradient(135deg, #0f1b47 0%, #1a2b6b 100%);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(108, 138, 255, 0.25);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 18px 0;
  color: var(--text-strong);
  position: relative;
}
.cta-banner p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 34px;
  position: relative;
}
.cta-banner .hero-actions { position: relative; justify-content: center; }
@media (max-width: 700px) { .cta-banner { padding: 48px 28px; } }

/* ----- Footer ----- */
.footer {
  background: var(--ink-0);
  padding: 80px 0 36px;
  border-top: 1px solid var(--line);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 138, 255, 0.35), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer a {
  color: var(--text-dim);
  font-size: 14px;
}
.footer a:hover { color: var(--text-strong); }

.footer-brand .logo-img {
  display: block;
  height: 100px;
  width: auto;
  margin-bottom: 20px;
  mix-blend-mode: screen;
  filter: contrast(1.25) brightness(1.08);
  user-select: none;
  -webkit-user-drag: none;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 340px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--primary);
}

/* Legal Modal */
.legal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.legal-modal-overlay.active {
  display: flex;
}
.legal-modal {
  background: #0b1124;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.9);
}
.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.legal-modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.legal-modal-close {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.legal-modal-close:hover {
  background: rgba(255,255,255,0.12);
}
.legal-modal-body {
  overflow-y: auto;
  padding: 28px;
  flex: 1;
}
.legal-modal-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-soft);
  margin: 28px 0 8px;
}
.legal-modal-body h3:first-child {
  margin-top: 0;
}
.legal-modal-body p,
.legal-modal-body li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.legal-modal-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
}
.legal-modal-body a {
  color: var(--blue-soft);
}
.legal-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-mute);
  flex-shrink: 0;
  display: flex;
  gap: 16px;
}
.legal-modal-footer a {
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-modal-footer a:hover,
.legal-modal-footer a.active-policy {
  color: var(--blue-soft);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-mute);
}
@media (max-width: 620px) {
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ----- Reveal on scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  will-change: transform, opacity;
  filter: blur(4px);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }

/* ----- Trinity hero ----- */
.trinity-hero {
  position: relative;
  padding: 180px 0 100px;
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(43, 91, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 75% 60%, rgba(108, 138, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #0a1235 0%, var(--ink-0) 100%);
  overflow: hidden;
}
.trinity-hero .hero-content { max-width: 900px; }

.trinity-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(43, 91, 255, 0.14);
  border: 1px solid rgba(108, 138, 255, 0.32);
  color: var(--blue-soft);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 40px 0 0;
}
.workflow-step {
  padding: 18px 14px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.workflow-step:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 138, 255, 0.35);
}
.workflow-step strong {
  display: block;
  color: var(--text-strong);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.workflow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-soft);
  font-weight: 700;
  z-index: 2;
}
@media (max-width: 820px) {
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .workflow-step::after { display: none; }
}

/* ----- Module cards (Trinity) — DARK ----- */
.module-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 138, 255, 0.35), transparent);
}
.module-card::after {
  content: "";
  position: absolute;
  right: -100px; bottom: -100px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(43, 91, 255, 0.12), transparent 70%);
  pointer-events: none;
  transition: transform 0.5s var(--ease);
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 138, 255, 0.3);
  box-shadow: 0 40px 80px -30px rgba(43, 91, 255, 0.35);
}
.module-card:hover::after { transform: scale(1.2); }

/* Module preview images */
.module-card.has-preview {
  padding-bottom: 0;
}

.module-preview {
  margin-top: 24px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-1);
  border: 1px solid rgba(108, 138, 255, 0.15);
  transition: all 0.4s var(--ease);
}

.module-preview img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
  transition: all 0.4s var(--ease);
  filter: brightness(0.95);
}

.preview-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(43, 91, 255, 0.9);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
}

.module-card:hover .module-preview {
  border-color: rgba(108, 138, 255, 0.35);
  box-shadow: 0 20px 40px -20px rgba(43, 91, 255, 0.25);
}

.module-card:hover .module-preview img {
  opacity: 1;
  filter: brightness(1);
}

.module-card:hover .preview-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Module UI Preview Cards */
.module-ui-preview {
  margin-top: 24px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(108, 138, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
}

.ui-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(108, 138, 255, 0.1);
}

.ui-chip {
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(43, 91, 255, 0.14);
  color: var(--blue-soft);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CRM rows */
.ui-crm-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(108, 138, 255, 0.08);
}

.ui-crm-row:last-child { border-bottom: none; }

.ui-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(43, 91, 255, 0.3), rgba(108, 138, 255, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}

.ui-crm-row b {
  display: block;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
}

.ui-crm-row span {
  color: var(--text-mute);
  font-size: 11px;
}

.ui-tag {
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(108, 138, 255, 0.12);
  color: var(--blue-soft);
  font-size: 10px;
  font-weight: 600;
}

/* Jobcard */
.ui-jobcard {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(108, 138, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
}

.ui-job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ui-job-header b {
  color: var(--text-strong);
  font-size: 13px;
}

.ui-assigned {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mute);
  font-size: 11px;
}

.ui-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(108, 138, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-strong);
}

.ui-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0;
  position: relative;
}

.ui-progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  border-radius: 3px;
}

.ui-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-mute);
  margin-bottom: 12px;
}

.ui-progress-row b { color: var(--text-strong); }

.ui-task-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ui-task-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ui-task-list li:last-child { border-bottom: none; }

.ui-task-list li.ui-done {
  color: var(--text-mute);
  text-decoration: line-through;
}

.ui-check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.ui-done .ui-check {
  background: rgba(43, 91, 255, 0.3);
}

.ui-done .ui-check::after {
  content: '✓';
  color: var(--blue-bright);
}

/* Invoice */
.ui-invoice {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(108, 138, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.ui-invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(108, 138, 255, 0.1);
}

.ui-invoice-header b {
  color: var(--text-strong);
  font-size: 14px;
}

.ui-invoice-header span {
  color: var(--text-mute);
  font-size: 11px;
}

.ui-amount-label {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.ui-amount-big {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 12px;
}

.ui-status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ui-status-pill {
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Kanban board */
.ui-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ui-kanban-col h6 {
  font-size: 10px;
  color: var(--text-mute);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ui-deal-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(108, 138, 255, 0.15);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 6px;
  font-size: 10px;
  color: var(--text-dim);
}

.ui-deal-chip:last-child { margin-bottom: 0; }

.ui-deal-chip b {
  display: block;
  color: var(--text-strong);
  font-size: 11px;
  margin-bottom: 2px;
}

.ui-deal-chip.ui-star {
  border-color: rgba(108, 138, 255, 0.4);
  background: linear-gradient(180deg, rgba(43, 91, 255, 0.15), rgba(43, 91, 255, 0.05));
}

/* Quote box */
.ui-quote-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(108, 138, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
}

.ui-quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ui-quote-header b {
  color: var(--text-strong);
  font-size: 13px;
}

.ui-quote-header span {
  color: var(--text-mute);
  font-size: 10px;
}

.ui-quote-approval {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.ui-quote-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(108, 138, 255, 0.08);
  font-size: 11px;
  color: var(--text-dim);
}

.ui-quote-line:last-of-type {
  border-bottom: none;
}

.ui-amt {
  color: var(--text-strong);
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
}

.ui-quote-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid rgba(108, 138, 255, 0.2);
  font-size: 12px;
  color: var(--text-mute);
}

.ui-total-val {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}
.module-num {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-soft);
  letter-spacing: 0.18em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.module-card h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.32rem;
  margin: 0 0 18px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.feature-group { margin-top: 18px; }
.feature-group h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue-soft);
  margin: 0 0 10px;
  font-weight: 700;
}
.feature-group ul { list-style: none; padding: 0; margin: 0; }
.feature-group li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
}
.feature-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 8px rgba(108, 138, 255, 0.45);
}
.feature-group.extra li { color: var(--text-dim); }
.feature-group.extra li::before {
  background: var(--blue-dim);
  box-shadow: none;
  opacity: 0.85;
}

/* ----- Trinity Dashboard Showcase ----- */
.dashboard-showcase {
  margin-top: 60px;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.dashboard-frame {
  position: relative;
  border-radius: 16px 16px 12px 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(108, 138, 255, 0.25), rgba(43, 91, 255, 0.05));
  border: 1px solid rgba(108, 138, 255, 0.25);
  box-shadow:
    0 60px 120px -40px rgba(43, 91, 255, 0.45),
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotateX(6deg) rotateY(-1deg) translateZ(0);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.dashboard-showcase:hover .dashboard-frame {
  transform: rotateX(3deg) rotateY(0deg) translateZ(20px);
  box-shadow:
    0 80px 140px -50px rgba(43, 91, 255, 0.55),
    0 40px 80px -30px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dashboard-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(11, 17, 36, 0.85);
  border-bottom: 1px solid rgba(108, 138, 255, 0.15);
}

.db-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.db-dot.red { background: #ff5f56; box-shadow: 0 0 6px rgba(255, 95, 86, 0.4); }
.db-dot.yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255, 189, 46, 0.4); }
.db-dot.green { background: #27c93f; box-shadow: 0 0 6px rgba(39, 201, 63, 0.4); }

.db-url {
  margin-left: 12px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: "SF Mono", "Monaco", "Inconsolata", monospace;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-image-wrapper {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1124 0%, #070b18 100%);
}

.dashboard-image {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0);
  transition: transform 0.8s var(--ease);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.dashboard-showcase:hover .dashboard-image {
  transform: translateY(-8px);
}

.dashboard-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 24, 0.6) 50%, rgba(7, 11, 24, 0.95) 100%);
  pointer-events: none;
}

.dashboard-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse 60% 40% at center, rgba(43, 91, 255, 0.15), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
  filter: blur(60px);
  z-index: -1;
  transition: opacity 0.6s var(--ease);
}

.dashboard-showcase:hover .dashboard-glow {
  opacity: 0.9;
}

/* Mobile responsiveness */
@media (max-width: 860px) {
  .dashboard-frame {
    transform: rotateX(3deg) rotateY(0deg);
  }
  .dashboard-showcase:hover .dashboard-frame {
    transform: rotateX(2deg) rotateY(0deg) translateZ(10px);
  }
}

/* ----- Product frame mock (Trinity hero) ----- */
.product-frame {
  margin-top: 60px;
  position: relative;
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(108, 138, 255, 0.35), rgba(43, 91, 255, 0.04));
  border: 1px solid rgba(108, 138, 255, 0.22);
  box-shadow: 0 50px 100px -40px rgba(43, 91, 255, 0.4);
}
.product-frame-inner {
  border-radius: 14px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 24px;
  overflow: hidden;
}
.product-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.product-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.product-bar span:nth-child(1) { background: #ff5f56; }
.product-bar span:nth-child(2) { background: #ffbd2e; }
.product-bar span:nth-child(3) { background: #27c93f; }

.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kanban-col {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.kanban-col h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
}
.kanban-col h5 em {
  font-style: normal;
  color: var(--blue-soft);
}
.deal-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  margin-bottom: 10px;
  color: var(--text-dim);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.deal-chip:hover {
  border-color: rgba(108, 138, 255, 0.35);
  transform: translateY(-1px);
}
.deal-chip strong {
  display: block;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.deal-chip .val {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(43, 91, 255, 0.22);
  color: var(--blue-soft);
  font-weight: 600;
  font-size: 11.5px;
  border: 1px solid rgba(108, 138, 255, 0.22);
}
@media (max-width: 820px) {
  .kanban { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .kanban { grid-template-columns: 1fr; }
}

/* ----- Contact section - Multi-step form ----- */
.contact-section {
  background: linear-gradient(180deg, var(--ink-1) 0%, rgba(43, 91, 255, 0.03) 100%);
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

/* Multi-step form container */
.multi-step-form {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(16, 24, 52, 0.5) 0%, rgba(11, 17, 36, 0.3) 100%);
  border: 1px solid rgba(108, 138, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.multi-step-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 138, 255, 0.45), transparent);
}

@media (max-width: 600px) {
  .multi-step-form { padding: 32px 24px; }
}

/* Progress steps */
.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 8px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(108, 138, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-mute);
  transition: all 0.3s var(--ease);
}

.progress-step.active .step-indicator {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border-color: var(--blue-bright);
  color: #fff;
  box-shadow: 0 0 20px rgba(43, 91, 255, 0.4);
}

.progress-step.completed .step-indicator {
  background: rgba(43, 91, 255, 0.2);
  border-color: var(--blue);
  color: var(--blue-bright);
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  transition: color 0.3s;
}

.progress-step.active .step-label {
  color: var(--blue-bright);
}

.progress-line {
  width: 60px;
  height: 2px;
  background: rgba(108, 138, 255, 0.15);
  border-radius: 1px;
  transition: background 0.3s;
}

.progress-line.completed {
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
}

@media (max-width: 600px) {
  .progress-line { width: 30px; }
  .step-label { font-size: 10px; }
}

/* Form steps */
.form-step {
  display: none;
  animation: stepEnter 0.4s var(--ease);
}

.form-step.active {
  display: block;
}

@keyframes stepEnter {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-header {
  text-align: center;
  margin-bottom: 32px;
}

.step-header h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--text-strong);
}

.step-header p {
  color: var(--text-dim);
  margin: 0;
}

/* Floating labels */
.form-group.floating {
  position: relative;
  margin-bottom: 20px;
}

.form-group.floating input {
  width: 100%;
  padding: 18px 16px 8px 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(108, 138, 255, 0.15);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s var(--ease);
}

.form-group.floating input:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: rgba(43, 91, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(43, 91, 255, 0.1);
}

.form-group.floating label {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-mute);
  pointer-events: none;
  transition: all 0.2s var(--ease);
}

.form-group.floating input:focus + label,
.form-group.floating input:not(:placeholder-shown) + label {
  top: 12px;
  font-size: 11px;
  color: var(--blue-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  transition: color 0.3s;
}

.form-group.floating input:focus ~ .input-icon {
  color: var(--blue-bright);
}

/* Regular form groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(108, 138, 255, 0.15);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s var(--ease);
  resize: vertical;
}

.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: rgba(43, 91, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(43, 91, 255, 0.1);
}

.styled-select {
  appearance: none;
  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='%236C8AFF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-strong);
}

/* Fix dropdown options for all browsers */
.form-group select option,
.form-group select optgroup {
  background-color: #0a0f1e;
  color: #e6e9f0;
  padding: 10px;
}

/* Firefox specific fix */
.form-group select {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Ensure text is visible in dropdown */
.form-group select:not(:focus) {
  color: var(--text-strong);
}

/* Interest cards */
.interest-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 500px) {
  .interest-cards { grid-template-columns: 1fr; }
}

.interest-card {
  cursor: pointer;
  position: relative;
}

.interest-card input {
  position: absolute;
  opacity: 0;
}

.interest-card .card-content {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(108, 138, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s var(--ease);
}

.interest-card:hover .card-content {
  border-color: rgba(108, 138, 255, 0.25);
  background: rgba(43, 91, 255, 0.03);
}

.interest-card input:checked + .card-content {
  border-color: var(--blue-bright);
  background: rgba(43, 91, 255, 0.08);
  box-shadow: 0 0 30px rgba(43, 91, 255, 0.15);
}

.interest-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--blue-soft);
  transition: all 0.3s;
}

.interest-card input:checked + .card-content .card-icon {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff;
  box-shadow: 0 10px 30px rgba(43, 91, 255, 0.3);
}

.interest-card .card-icon.trinity-icon {
  background: rgba(43, 91, 255, 0.15);
}

.interest-card h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--text-strong);
}

.interest-card p {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0;
}

/* Step actions */
.step-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(43, 91, 255, 0.2), rgba(108, 138, 255, 0.1));
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--blue-bright);
  animation: successPop 0.5s var(--ease);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.form-success h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.8rem;
  margin: 0 0 12px;
  color: var(--text-strong);
}

.form-success p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.success-subtitle {
  font-size: 14px !important;
  color: var(--text-mute) !important;
}

/* Honeypot - hidden spam protection */
.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Button loader */
.btn-loader {
  display: inline-flex;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Question sets */
.question-set {
  animation: fadeIn 0.3s var(--ease);
}

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

/* ----- Mobile base fixes ----- */
@media (max-width: 860px) {
  html, body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: clamp(26px, 6vw, 36px);
  }

  .section-lead {
    font-size: 16px;
  }
}

/* ----- Mobile menu - hidden by default on desktop ----- */
.mobile-menu {
  display: none;
}

/* ----- Mobile nav ----- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--line);
    margin-top: 12px;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.9);
  }
  /* Mobile dropdown adjustments */
  .nav-dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 0 0 0;
    min-width: auto;
    display: block !important; /* Always show on mobile */
  }
  .nav-dropdown.open .dropdown-menu,
  .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block !important;
  }

  .dropdown-item {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 15px !important;
    margin: 5px 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    border-radius: 5px !important;
  }
  .dropdown-menu::before { display: none; }

  .dropdown-item:hover {
    background: rgba(108, 138, 255, 0.15) !important;
  }

  /* Force dropdown visibility */
  .nav-dropdown .dropdown-item {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .nav-dropdown.open .dropdown-item {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .dropdown-icon {
    width: 36px;
    height: 36px;
  }

  /* Mobile Menu Styles */
  .mobile-menu {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-inner {
    padding: 80px 20px 20px;
    height: 100%;
    overflow-y: auto;
  }

  .mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-nav-link {
    display: block;
    padding: 16px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: background 0.2s ease;
    border: 1px solid rgba(108, 138, 255, 0.1);
  }

  .mobile-nav-link:hover {
    background: rgba(108, 138, 255, 0.1);
    border-color: rgba(108, 138, 255, 0.3);
  }

  .mobile-dropdown {
    margin: 8px 0;
  }

  .mobile-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(108, 138, 255, 0.1);
    border: 1px solid rgba(108, 138, 255, 0.2);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-dropdown-toggle:hover {
    background: rgba(108, 138, 255, 0.15);
    border-color: rgba(108, 138, 255, 0.3);
  }

  .mobile-dropdown-toggle svg {
    transition: transform 0.3s ease;
  }

  .mobile-dropdown-toggle.active svg {
    transform: rotate(180deg);
  }

  .mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-dropdown-menu.active {
    max-height: 500px;
  }

  .mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 138, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .mobile-dropdown-item:hover {
    background: rgba(108, 138, 255, 0.1);
    border-color: rgba(108, 138, 255, 0.2);
    transform: translateX(4px);
  }

  .mobile-dropdown-item svg {
    flex-shrink: 0;
    color: var(--primary);
  }

  .mobile-dropdown-content {
    flex: 1;
  }

  .mobile-dropdown-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .mobile-dropdown-content span {
    display: block;
    font-size: 12px;
    opacity: 0.7;
  }

  .mobile-dropdown-item.coming-soon {
    opacity: 0.8;
  }

  .mobile-dropdown-item.coming-soon::after {
    content: "Coming Soon";
    font-size: 10px;
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
  }

  /* Show mobile menu only on mobile */
  @media (max-width: 860px) {
    .mobile-menu {
      display: block !important;
    }
    
    /* Hide desktop navigation on mobile */
    .nav-links {
      display: none !important;
    }
    
    .nav-cta {
      display: none;
    }
    
    /* Show hamburger menu on mobile */
    .nav-toggle {
      display: flex;
    }
  }

  /* Hide hamburger menu on desktop */
  @media (min-width: 861px) {
    .nav-toggle {
      display: none;
    }
    
    /* Explicitly hide mobile menu on desktop */
    .mobile-menu {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
  }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Mobile form optimizations */
  .multi-step-form {
    padding: 28px 20px;
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .form-progress {
    gap: 8px;
    margin-bottom: 24px;
  }

  .progress-step {
    min-width: 60px;
  }

  .step-indicator {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .step-label {
    font-size: 9px;
  }

  .progress-line {
    width: 20px;
  }

  .form-step {
    min-height: auto;
  }

  .step-header {
    margin-bottom: 20px;
  }

  .step-header h3 {
    font-size: 20px;
  }

  .step-header p {
    font-size: 14px;
  }

  .interest-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .interest-card {
    min-height: 70px;
  }

  .interest-card .card-content {
    padding: 16px;
    flex-direction: row;
    text-align: left;
    gap: 12px;
  }

  .interest-card .card-icon {
    width: 40px;
    height: 40px;
  }

  .interest-card .card-icon svg {
    width: 22px;
    height: 22px;
  }

  .interest-card h4 {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .interest-card p {
    font-size: 12px;
  }

  .form-fields {
    gap: 16px;
  }

  .form-group {
    min-height: 56px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 16px 14px 6px;
    font-size: 16px; /* Prevent iOS zoom */
  }

  .form-group label {
    font-size: 13px;
    left: 14px;
    top: 16px;
  }

  .form-group input:focus + label,
  .form-group input:not(:placeholder-shown) + label,
  .form-group select:focus + label,
  .form-group select:not([value=""]) + label,
  .form-group textarea:focus + label,
  .form-group textarea:not(:placeholder-shown) + label {
    top: 6px;
    font-size: 10px;
  }

  .input-icon {
    right: 12px;
    top: 16px;
  }

  .step-actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 24px;
  }

  .step-actions .btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  .styled-select {
    padding: 14px 40px 14px 14px;
    font-size: 16px; /* Prevent iOS zoom */
  }

  /* Mobile navigation improvements */
  .nav-links.open {
    left: 12px;
    right: 12px;
    padding: 20px;
    gap: 14px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .nav-links a {
    font-size: 16px;
    padding: 8px 0;
  }

  .dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown-toggle svg {
    transition: transform 0.2s ease;
  }

  .dropdown-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    padding: 8px 0 0 12px;
  }

  .dropdown-item {
    padding: 12px;
  }

  .dropdown-content strong {
    font-size: 14px;
  }

  .dropdown-content span {
    font-size: 12px;
  }

  /* Touch-friendly improvements */
  .btn,
  .nav-links a,
  .dropdown-item,
  .interest-card,
  .step-indicator {
    min-height: 44px; /* iOS recommended touch target */
  }

  .btn-primary,
  .btn-ghost {
    min-height: 48px;
  }
}

/* Trinity mobile adjustments */
@media (max-width: 860px) {
  .module-card {
    padding: 28px 24px;
  }

  .module-card h3 {
    font-size: 20px;
  }

  .module-ui-preview {
    margin-top: 20px;
    padding: 14px;
  }

  .ui-kanban {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .ui-kanban-col h6 {
    font-size: 9px;
  }

  .ui-deal-chip {
    padding: 6px;
    font-size: 9px;
  }

  .ui-deal-chip b {
    font-size: 10px;
  }

  .ui-quote-box {
    padding: 12px;
  }

  .ui-quote-header b {
    font-size: 12px;
  }

  .ui-quote-line {
    font-size: 10px;
    gap: 8px;
  }

  .ui-total-val {
    font-size: 14px;
  }

  .ui-amount-big {
    font-size: 24px;
  }
}

@media (max-width: 520px) {
  .ui-kanban {
    grid-template-columns: 1fr;
  }

  .ui-crm-row {
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
  }

  .ui-avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
}

/* ----- Small mobile adjustments ----- */
@media (max-width: 480px) {
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero p.lead {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .product-card {
    padding: 24px;
  }

  .product-card h3 {
    font-size: 18px;
  }

  .multi-step-form {
    padding: 24px 16px;
  }

  .step-header h3 {
    font-size: 18px;
  }

  .success-message h3 {
    font-size: 22px;
  }

  .timeline-item {
    padding-left: 36px;
  }

  .timeline-number {
    left: -45px;
    font-size: 10px;
  }
}

/* ----- Mobile viewport height fix ----- */
@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

/* ----- Accessibility / reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-parallax { transform: none !important; }
}

/* ----- Word split animation (hero h1) ----- */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.03em;
}
.split-word span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: word-rise 0.9s var(--ease) forwards;
}
@keyframes word-rise {
  to { transform: translateY(0); opacity: 1; }
}
