@import url('https://api.fontshare.com/v2/css?f[]=chillax@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg: #111119;
  --bg-card: hsl(233, 19%, 12%);
  --bg-card-hover: #252736;
  --bg-nav: rgba(0, 0, 0, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 255, 255, 0.15);
  --border-nav: rgba(255, 255, 255, 0.10);
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.60);
  --text-faint: rgba(255, 255, 255, 0.40);
  --font-sans: "Open Sans", sans-serif;
  --font-display: "Chillax", sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 700;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-nav);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-trigger:hover,
.nav-item.open .nav-trigger {
  color: #fff;
}

.nav-trigger svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.nav-item.open .nav-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: hsl(233, 19%, 10%);
  border: 1px solid var(--border-nav);
  border-radius: 12px;
  padding: 0.5rem;
  z-index: 200;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.nav-item.open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.70);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #111119 !important;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
  margin-left: 1rem;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.90);
}

/* ===== COMPANY MEGA-DROPDOWN ===== */
.nav-dropdown-company {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  flex-direction: row;
  background: hsl(233, 19%, 9%);
  border: 1px solid var(--border-nav);
  border-radius: 12px;
  z-index: 200;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  overflow: hidden;
}

.nav-item.open .nav-dropdown-company {
  display: flex;
}

/* Left panel */
.company-left {
  width: 30%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  background: hsl(233, 19%, 7%);
  border-right: 1px solid var(--border-nav);
  align-self: flex-start;
}

.company-left-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.company-left-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  flex: 1;
  letter-spacing: -0.02em;
}

.company-left-cta {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
  margin-top: auto;
}

.company-left-cta:hover {
  color: #fff;
}

/* Right tile grid */
.company-right {
  width: 70%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.company-tile {
  display: block;
  padding: 1.125rem 1.125rem;
  border-bottom: 1px solid var(--border-nav);
  transition: background 0.15s;
  text-decoration: none;
}

.company-tile:nth-child(odd) {
  border-right: 1px solid var(--border-nav);
}

.company-tile:last-child {
  border-bottom: none;
}

/* If last child is odd (sole tile in final row), remove phantom right border from empty cell */
.company-tile:last-child:nth-child(odd) {
  border-right: none;
}

/* Remove bottom border from second-to-last tile if it's in the right column of the penultimate row */
.company-tile:nth-last-child(2):nth-child(even) {
  border-bottom: none;
}

.company-tile:hover {
  background: rgba(255,255,255,0.04);
}

.company-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.375rem;
}

.company-tile-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-sans);
}

.company-tile-arrow {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  margin-left: 0.25rem;
  transition: color 0.15s;
}

.company-tile:hover .company-tile-arrow {
  color: rgba(255,255,255,0.7);
}

.company-tile-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.45;
}

/* ===== INDUSTRIES MEGA-DROPDOWN ===== */
.nav-dropdown-industries {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  flex-direction: row;
  background: hsl(233, 19%, 9%);
  border: 1px solid var(--border-nav);
  border-radius: 12px;
  z-index: 200;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  overflow: hidden;
}

.nav-item.open .nav-dropdown-industries {
  display: flex;
}

/* Left panel */
.industries-left {
  width: 30%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  background: hsl(233, 19%, 7%);
  border-right: 1px solid var(--border-nav);
  align-self: flex-start;
}

.industries-left-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.industries-left-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  flex: 1;
  letter-spacing: -0.02em;
}

.industries-left-cta {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
  margin-top: auto;
}

.industries-left-cta:hover {
  color: #fff;
}

/* Right tile grid */
.industries-right {
  width: 70%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.industries-tile {
  display: block;
  padding: 1.125rem 1.125rem;
  border-bottom: 1px solid var(--border-nav);
  transition: background 0.15s;
  text-decoration: none;
}

.industries-tile:nth-child(odd) {
  border-right: 1px solid var(--border-nav);
}

.industries-tile:nth-last-child(1),
.industries-tile:nth-last-child(2) {
  border-bottom: none;
}

.industries-tile:hover {
  background: rgba(255,255,255,0.04);
}

.industries-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.375rem;
}

.industries-tile-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-sans);
}

.industries-tile-arrow {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  margin-left: 0.25rem;
  transition: color 0.15s;
}

.industries-tile:hover .industries-tile-arrow {
  color: rgba(255,255,255,0.7);
}

.industries-tile-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.45;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background-image: url('/hero-abstract.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 72px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17,17,25,0.3) 0%, rgba(17,17,25,0.5) 60%, rgba(17,17,25,1) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding-inline: 1.5rem;
  padding-block: 6rem;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.04);
}

.eyebrow-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.6;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #111119;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: rgba(255,255,255,0.92);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.50);
  color: #fff;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== SECTIONS ===== */
.section {
  padding-block: 4rem;
}

.section-dark {
  background: var(--bg);
}

.section-alt {
  background: hsl(233, 19%, 10%);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 1rem;
  display: block;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.7;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.375rem;
  background: rgba(255,255,255,0.04);
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card-agents {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.6;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.12);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(255,255,255,0.04);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } }

.step {
  text-align: center;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
  margin-inline: auto;
  margin-bottom: 1.25rem;
  background: rgba(255,255,255,0.04);
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

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

details {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-block: 1.25rem;
}

details summary {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.90);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

details summary::after {
  content: '+';
  font-size: 1.25rem;
  color: rgba(255,255,255,0.40);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] summary::after {
  content: '−';
}

details p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-top: 0.875rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding-block: 7rem;
  background: linear-gradient(to bottom, var(--bg), hsl(233, 19%, 9%), var(--bg));
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.cta-section p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: hsl(233, 19%, 7%);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo img {
  height: 22px;
  opacity: 0.70;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.40);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.75);
}

/* ===== MODULE PAGE ===== */
.module-hero {
  min-height: 30vh;
  padding-top: 72px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, hsl(233,19%,10%) 0%, hsl(240,19%,8%) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.module-hero-content {
  padding-block: 2rem 2.5rem;
}

.module-hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
}

.module-hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.60);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.module-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.agent-card:hover {
  border-color: var(--border-card-hover);
}

.agent-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.375rem;
}

.agent-card p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.50);
  line-height: 1.5;
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-block: 0;
}

/* ===== HIGHLIGHT TEXT ===== */
.highlight {
  color: rgba(255,255,255,0.90);
}

/* ===== BIG NUMBER ===== */
.stat-big {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* ===== NAV MOBILE TOGGLE ===== */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-stats { gap: 1.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .steps-grid { grid-template-columns: 1fr; }
}
