/* IntelliVertex — 2026-inspired palette: Synthetic Naturalism + Dark Mode 2.0 */
:root {
  /* Dark Mode 2.0: deep charcoal, no pure black */
  --bg: #1A1A1A;
  --bg-elevated: #252525;
  --surface: #2D2D2D;
  /* Text */
  --text: #F5F5F0;
  --text-muted: #A0A0A0;
  --text-subtle: #6B6B6B;
  /* Primary: teal — trust, confidence (2026) */
  --accent: #0D9488;
  --accent-hover: #0FB5A8;
  --accent-soft: rgba(13, 148, 136, 0.18);
  /* Secondary: digital lavender — AI, calm */
  --lavender: #B8B5E6;
  --lavender-soft: rgba(230, 230, 250, 0.12);
  /* Tertiary: sage — organic, credible */
  --sage: #9DC183;
  --sage-soft: rgba(157, 193, 131, 0.15);
  /* Borders & dividers */
  --border: rgba(255, 255, 255, 0.08);
  /* Typography */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo: 'Syne', var(--font);
  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

main {
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Skip link for keyboard/screen reader */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #0F1414;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-block;
  flex: 0 0 auto;
  width: max-content;
  min-width: 0;
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.25rem;
  font-stretch: 100%;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: none;
  transition: color var(--duration) var(--ease-out);
}

.logo .logo-v {
  color: var(--accent);
  font-weight: 800;
}

.logo:hover {
  color: var(--text);
}

.logo:hover .logo-v {
  color: var(--accent-hover);
}

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease-out);
}

.nav a:hover {
  color: var(--text);
}

.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-cta {
  color: var(--accent) !important;
}

.nav-cta:hover {
  color: var(--accent-hover) !important;
}

/* Solutions dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--duration) var(--ease-out);
}

.nav-dropdown-trigger:hover {
  color: var(--text);
}

.nav-dropdown-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  margin-left: 0.35rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: 0.2em;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  min-width: 11rem;
  padding: 0.5rem 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: none;
  flex-direction: column;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  border: none;
  border-radius: 0;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 968px) {
  html, body {
    overflow-x: clip;
    overflow-y: auto;
  }
  main .section,
  main .hero {
    overflow-x: hidden;
    max-width: 100%;
  }
  .site-header {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .header-inner {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
  }
  .logo {
    min-width: 0;
    max-width: 65%;
    font-size: 1.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 50;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    background: var(--bg);
    border: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
  }
  .nav.is-open {
    display: flex;
  }
  .nav > a,
  .nav > .nav-dropdown {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    min-width: 0;
    flex-shrink: 0;
  }
  .nav-cta {
    margin-top: 1rem;
    border-bottom: none;
  }
  /* Mobile: flatten Solutions into a simple list (no dropdown) */
  .nav-dropdown {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    flex-shrink: 0;
  }
  .nav-dropdown-trigger {
    display: none !important;
  }
  .nav-dropdown-menu {
    position: static !important;
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex !important;
    flex-direction: column;
    flex-shrink: 0;
  }
  .nav-dropdown-menu a {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
  }
  body.menu-open {
    overflow: hidden;
  }
  .site-footer .container {
    max-width: 100%;
  }
  .footer-brand,
  .footer-tagline {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep focus on left/center where text sits; right can be softer on wide screens */
  object-position: 35% center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  /* Stronger left gradient so text stays readable; subtle tint right */
  background:
    linear-gradient(105deg, rgba(26, 26, 26, 0.94) 0%, rgba(26, 26, 26, 0.82) 40%, rgba(26, 26, 26, 0.55) 70%, rgba(26, 26, 26, 0.35) 100%),
    radial-gradient(ellipse 100% 80% at 30% 50%, rgba(13, 148, 136, 0.08), transparent 55%);
}

/* Large viewports: keep image anchored so it doesn’t stretch oddly */
@media (min-width: 1400px) {
  .hero-bg-img {
    object-position: 30% center;
  }
  .hero-bg-overlay {
    background:
      linear-gradient(105deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.84) 38%, rgba(26, 26, 26, 0.58) 68%, rgba(26, 26, 26, 0.3) 100%),
      radial-gradient(ellipse 90% 70% at 28% 50%, rgba(13, 148, 136, 0.06), transparent 50%);
  }
}

@media (max-width: 900px) {
  .hero-bg-img {
    object-position: 40% center;
  }
  .hero-bg-overlay {
    background: linear-gradient(105deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.88) 100%);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1 1 100%;
  max-width: 640px;
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-support {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sectors we serve */
.sectors-section {
  padding: 3rem 1.5rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sectors-section .container {
  max-width: 960px;
}

.sectors-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin: 0 0 1.25rem;
}

.sectors-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  max-width: 100%;
}

.sector-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Who it's for */
.who-its-for {
  background: var(--bg);
}

.who-its-for .section-lead {
  max-width: 640px;
}

.use-case-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  max-width: 720px;
}

.use-case-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.use-case-list li:last-child {
  margin-bottom: 0;
}

.use-case-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.use-case-list strong {
  color: var(--text);
}


@media (max-width: 1024px) {
  .hero-inner {
    max-width: 100%;
  }
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 1rem;
  }
  .sectors-section {
    padding: 2.5rem 1rem;
  }
  .sector-pill {
    font-size: 0.875rem;
    padding: 0.4rem 0.875rem;
  }
  .capability-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .card-image-wrap {
    height: 140px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.75rem;
  }
  .hero-support {
    font-size: 1rem;
  }
  .section-headline {
    font-size: 1.5rem;
  }
  .card .card-icon,
  .card h3,
  .card p {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .card p {
    padding-bottom: 1.25rem;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1100px;
  }
  .hero-inner {
    max-width: 680px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 6rem 1.25rem 3rem;
  }
  .hero-cta {
    flex-direction: column;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out), transform 0.2s var(--ease-out);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #0F1414;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #0F1414;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-subtle);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ----- Sections ----- */
.section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: min(1000px, 100%);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 640px;
}

/* ----- What we do (cards) ----- */
.what-we-do {
  background: var(--bg);
}

.capability-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.card-image-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--surface);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card .card-icon,
.card h3,
.card p {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.card .card-icon {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  padding-top: 0;
}

.card p {
  padding-bottom: 1.75rem;
  margin: 0;
}

.card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ----- Platform section ----- */
.platform-section {
  background: var(--bg-elevated);
}

/* Single content column: lead, image, and list share same width so image never “breaks out” */
.platform-section .section-headline {
  max-width: 720px;
}

.platform-section .section-lead {
  max-width: 720px;
}

.platform-visual {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.platform-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 360px;
}

.platform-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.platform-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.platform-list li:last-child {
  margin-bottom: 0;
}

.platform-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
}

/* ----- How it works (steps) ----- */
.how-it-works {
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.step-num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----- Why us (trust) ----- */
.why-us {
  background: var(--bg-elevated);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.trust-item {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.trust-item strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.35rem;
}

/* ----- FAQ ----- */
.faq-section {
  background: var(--bg);
}

.faq-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 720px;
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-q {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.faq-a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  padding-left: 0;
}

/* ----- CTA section ----- */
.cta-section {
  padding: 6rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, var(--accent-soft), transparent 60%);
}

.cta-container {
  max-width: 560px;
}

.cta-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.cta-support {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.cta-email {
  font-size: 0.9375rem;
  color: var(--text-subtle);
  margin: 1rem 0 0;
}

.cta-email a {
  color: var(--accent);
  font-weight: 500;
}

.cta-email a:hover {
  color: var(--accent-hover);
}

.cta-email a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- Footer ----- */
.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: inline-block;
  width: max-content;
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1rem;
  font-stretch: 100%;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: none;
  margin: 0 0 0.25rem;
}

.footer-brand .logo-v {
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-legal {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin: 0;
}

/* ----- Reveal animation (scroll-triggered) ----- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children if needed */
.capability-cards .card:nth-child(1) { transition-delay: 0.05s; }
.capability-cards .card:nth-child(2) { transition-delay: 0.1s; }
.capability-cards .card:nth-child(3) { transition-delay: 0.15s; }
.steps .step:nth-child(1) { transition-delay: 0.05s; }
.steps .step:nth-child(2) { transition-delay: 0.15s; }
.steps .step:nth-child(3) { transition-delay: 0.25s; }
.trust-grid .trust-item:nth-child(1) { transition-delay: 0.05s; }
.trust-grid .trust-item:nth-child(2) { transition-delay: 0.1s; }
.trust-grid .trust-item:nth-child(3) { transition-delay: 0.15s; }
.trust-grid .trust-item:nth-child(4) { transition-delay: 0.2s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover,
  .btn-primary:hover {
    transform: none;
  }
}
