/* ============================================================
   CloudNext.id — Stylesheet (NetSuite layout reference)
   ============================================================ */

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

:root {
  /* Brand — navy/teal matching NetSuite dark palette */
  --cn-dark:      #152535;   /* navbar + hero bg */
  --cn-dark-2:    #1a2e3f;   /* slightly lighter bg */
  --cn-dark-3:    #1e3447;   /* card/panel bg */
  --cn-teal:      #0e7490;   /* accent teal (NetSuite-ish) */
  --cn-blue:      #1a4db5;   /* brand blue */
  --cn-accent:    #f59e0b;   /* CTA gold/amber — NetSuite "Take a Test Drive" */
  --cn-accent-2:  #2563eb;   /* secondary CTA blue */
  --cn-border:    rgba(255,255,255,.1);
  --cn-text:      rgba(255,255,255,.92);
  --cn-muted:     rgba(255,255,255,.55);
  --cn-link:      #7dd3fc;

  /* Light section vars */
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --navy:        #0d1b3e;
  --blue:        #1a4db5;
  --accent:      #2563eb;
  --sky:         #dbeafe;

  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 4px 16px rgba(0,0,0,.18);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.28);
  --transition:  .2s ease;
  --max-w:       1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Better tap targets on mobile */
a, button { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
   NAVBAR — NetSuite style: single row, dark teal
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--cn-dark);
  border-bottom: 1px solid var(--cn-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 0;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  margin-right: 32px;
  flex-shrink: 0;
}
.navbar__logo img.logo-img {
  height: 72px !important;
  max-height: 72px !important;
  width: auto !important;
  max-width: 260px !important;
  object-fit: contain;
  object-position: left center;
  display: block !important;
}
.navbar__logo-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.navbar__logo-sub  { font-size: .58rem; font-weight: 600; color: var(--cn-muted); letter-spacing: .08em; text-transform: uppercase; }
.navbar__logo-main { font-size: 1.3rem; font-weight: 800; color: var(--white); letter-spacing: -.3px; }
.navbar__logo-main span { color: #7dd3fc; }

/* Nav links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.navbar__nav-item {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
}

.navbar__nav-item > a,
.navbar__nav-item > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 64px;
  font-size: .84rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  letter-spacing: .005em;
}
.navbar__nav-item > a:hover,
.navbar__nav-item > button:hover,
.navbar__nav-item > a.active,
.navbar__nav-item.open > button {
  color: var(--white);
  background: rgba(255,255,255,.06);
}

/* Chevron */
.nav-chevron {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.navbar__nav-item.open .nav-chevron { transform: rotate(180deg); }

/* Right actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 2px;
}
.lang-toggle button {
  padding: 4px 11px;
  border-radius: 14px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--cn-muted);
  transition: all var(--transition);
}
.lang-toggle button.active {
  background: var(--white);
  color: var(--navy);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  margin-left: auto;   /* push to the far right of the navbar */
  margin-right: -12px; /* cancel the padding so the bars line up with the page edge */
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   MEGA DROPDOWN — NetSuite style
   ============================================================ */
.mega-drop {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: var(--cn-dark-3);
  border-top: 1px solid var(--cn-border);
  border-bottom: 1px solid var(--cn-border);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  z-index: 999;
  animation: dropIn .16s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.navbar__nav-item.open .mega-drop { display: block; }

.mega-drop__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 320px;
}

.mega-drop__cats {
  border-right: 1px solid var(--cn-border);
  padding: 24px 0;
}
.mega-drop__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--cn-muted);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.mega-drop__cat:hover,
.mega-drop__cat.active { background: rgba(255,255,255,.07); color: var(--white); }
.mega-drop__cat-arrow {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.mega-drop__panel { display: none; padding: 24px 32px; animation: fadeIn .14s ease; }
.mega-drop__panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mega-drop__panel-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.mega-drop__panel-sub   { font-size: .78rem; color: var(--cn-muted); margin-bottom: 20px; }

.mega-drop__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 12px;
}
.mega-drop__item {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background var(--transition);
}
.mega-drop__item:hover { background: rgba(255,255,255,.06); }
.mega-drop__item-name { font-size: .86rem; font-weight: 600; color: var(--cn-text); }
.mega-drop__item-desc { font-size: .73rem; color: var(--cn-muted); margin-top: 1px; }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: var(--cn-dark);
  border-top: 1px solid var(--cn-border);
  padding: 12px 24px 24px;
  z-index: 998;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 4px;
  font-size: .95rem; font-weight: 500;
  color: var(--cn-text);
  border-bottom: 1px solid var(--cn-border);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: .84rem; font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
}

/* Gold/amber — NetSuite "Take a Test Drive" */
.btn-gold {
  background: var(--cn-accent);
  color: #1a1a1a;
  border: 1.5px solid var(--cn-accent);
}
.btn-gold:hover { background: #d97706; border-color: #d97706; }

/* Outline white — "Product Tour" */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

/* Primary blue */
.btn-primary {
  background: var(--cn-dark);
  color: var(--white);
  border: 1.5px solid var(--cn-dark);
}
.btn-primary:hover { background: #1e3447; border-color: #1e3447; transform: translateY(-1px); }

/* Outline navy (light sections) */
.btn-outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* Ghost (dark bg) */
.btn-outline {
  border: 1.5px solid rgba(255,255,255,.45);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.07); }

.btn-lg { padding: 13px 28px; font-size: .92rem; border-radius: 10px; }
.btn-sm { padding: 7px 16px; font-size: .78rem; }

/* ============================================================
   HERO — NetSuite layout
   Left: stacked headline list + separator lines
   Right: app screenshot/mockup
   ============================================================ */
.hero {
  padding-top: 76px; /* navbar height */
  background: var(--cn-dark);
  color: var(--white);
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 72px;
}

/* Left column */
.hero__content {}

/* Active / primary headline — large */
.hero__headline-primary {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.hero__eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cn-link); margin-bottom: 14px;
}
.hero__headline-primary h1 {
  font-size: 2.15rem;
  font-weight: 400;          /* NetSuite uses light/regular weight headline */
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -.2px;
}
.hero__headline-primary p {
  font-size: .9rem;
  color: var(--cn-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 22px;
}
.hero__headline-primary .hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Secondary headlines — clickable list below */
.hero__headline-secondary {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  transition: all var(--transition);
}
.hero__headline-secondary:last-child { border-bottom: none; }
.hero__headline-secondary h2 {
  font-size: 1.35rem;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
  line-height: 1.3;
}
.hero__headline-secondary:hover h2 { color: rgba(255,255,255,.8); }

/* Right column — screenshot mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero__mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
}

/* Main large screenshot card */
.hero__screen-main {
  background: var(--cn-dark-2);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.hero__screen-titlebar {
  background: rgba(255,255,255,.05);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero__screen-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.hero__screen-body { padding: 16px; }

/* Floating secondary card */
.hero__screen-float {
  position: absolute;
  bottom: -24px;
  right: -20px;
  width: 220px;
  background: var(--cn-dark);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
}
.hero__screen-float-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cn-muted);
  margin-bottom: 10px;
}
.hero__screen-float-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero__screen-float-row:last-child { border-bottom: none; }
.hero__screen-float-label { font-size: .73rem; color: var(--cn-muted); }
.hero__screen-float-val { font-size: .78rem; font-weight: 700; color: var(--white); }

/* Metric rows inside main screen */
.screen-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .78rem;
}
.screen-metric-row:last-child { border-bottom: none; }
.screen-metric-label { color: var(--cn-muted); }
.screen-metric-val { font-weight: 700; color: var(--white); }
.screen-metric-badge {
  font-size: .68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
}
.badge-green { background: rgba(34,197,94,.15); color: #86efac; }
.badge-blue  { background: rgba(96,165,250,.15); color: #93c5fd; }

/* Header bar inside screen */
.screen-header {
  font-size: .7rem;
  font-weight: 700;
  color: var(--cn-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.screen-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trustbar {
  background: var(--cn-dark-2);
  border-top: 1px solid var(--cn-border);
  border-bottom: 1px solid var(--cn-border);
  padding: 22px 0;
}
.trustbar__inner { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.trustbar__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--cn-muted); white-space: nowrap; flex-shrink: 0; }
.trustbar__logos { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.trustbar__logo  { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.3); letter-spacing: -.2px; transition: color var(--transition); }
.trustbar__logo:hover { color: rgba(255,255,255,.65); }

/* ============================================================
   SECTIONS (light)
   ============================================================ */
.section { padding: 88px 0; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--cn-dark); color: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }

.section-label {
  display: inline-block;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.section--dark .section-label { color: #60a5fa; }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; line-height: 1.15;
  color: var(--navy); margin-bottom: 12px; letter-spacing: -.2px;
}
.section--dark .section-title { color: var(--white); }

.section-subtitle {
  font-size: .95rem; color: var(--gray-600);
  max-width: 560px; line-height: 1.7;
}
.section--dark .section-subtitle { color: var(--cn-muted); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-inline: auto; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }

.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card:hover::after { transform: scaleX(1); }
.feature-card__title { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card__text  { font-size: .85rem; color: var(--gray-600); line-height: 1.65; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: linear-gradient(135deg, var(--cn-dark) 0%, #1a3a5c 100%);
  padding: 56px 0; color: var(--white);
}
.stats-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-strip__num   { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 900; color: #60a5fa; line-height: 1; margin-bottom: 6px; }
.stats-strip__label { font-size: .84rem; color: rgba(255,255,255,.65); }

/* ============================================================
   STEPS
   ============================================================ */
.steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 52px; position: relative; }
.steps__grid::before {
  content: ''; position: absolute;
  top: 30px; left: calc(12.5% + 14px); right: calc(12.5% + 14px);
  height: 2px; background: var(--gray-200);
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-card__num {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 1.1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--white); box-shadow: 0 0 0 3px var(--blue);
}
.step-card__title { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.step-card__text  { font-size: .82rem; color: var(--gray-600); }

/* ============================================================
   MODULES
   ============================================================ */
.modules-preview__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.module-card-sm {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 20px 16px; text-align: center;
  transition: all var(--transition);
}
.module-card-sm:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.module-card-sm__name { font-size: .84rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.module-card-sm__desc { font-size: .74rem; color: var(--gray-600); }

.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.module-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 22px 18px; transition: all var(--transition);
}
.module-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.module-card__category { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 4px; }
.module-card__title    { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.module-card__desc     { font-size: .8rem; color: var(--gray-600); line-height: 1.55; }
.module-card__tag      { display: inline-flex; margin-top: 10px; font-size: .68rem; font-weight: 700; background: var(--sky); color: var(--blue); padding: 2px 9px; border-radius: 8px; }

.modules-filter { display: flex; justify-content: center; gap: 8px; margin-bottom: 44px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 18px; border-radius: 18px; font-size: .8rem; font-weight: 700;
  border: 1.5px solid var(--gray-200); color: var(--gray-600); transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px; position: relative;
}
.testimonial-card::before { content: '"'; position: absolute; top: 10px; left: 20px; font-size: 4rem; color: var(--sky); line-height: 1; font-family: Georgia, serif; }
.testimonial-card__text { font-size: .87rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 20px; padding-top: 20px; }
.testimonial-card__author { display: flex; align-items: center; gap: 10px; }
.testimonial-card__avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue)); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.testimonial-card__name { font-weight: 700; font-size: .85rem; color: var(--navy); }
.testimonial-card__role { font-size: .73rem; color: var(--gray-400); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { background: var(--cn-dark); padding: 72px 0; color: var(--white); text-align: center; }
.cta-banner__title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta-banner__sub   { font-size: .95rem; color: var(--cn-muted); margin-bottom: 28px; }
.cta-banner__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--cn-dark);
  padding: 140px 0 64px;
  color: var(--white); text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p  { font-size: 1rem; color: var(--cn-muted); max-width: 520px; margin: 0 auto 24px; }

/* ============================================================
   SOLUTIONS PAGE
   ============================================================ */
.solutions-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; margin-top: 48px; }
.solutions-sidebar { background: var(--gray-50); border-right: 1px solid var(--gray-200); padding: 6px 0; }
.solutions-sidebar__item { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; font-size: .87rem; font-weight: 700; color: var(--gray-600); cursor: pointer; transition: all var(--transition); border-left: 3px solid transparent; }
.solutions-sidebar__item:hover, .solutions-sidebar__item.active { background: var(--white); color: var(--navy); border-left-color: var(--accent); }
.solutions-content { padding: 32px 36px; }
.solutions-panel { display: none; }
.solutions-panel.active { display: block; }
.solutions-panel__title { font-size: 1.2rem; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.solutions-panel__sub   { font-size: .85rem; color: var(--gray-600); margin-bottom: 24px; }
.solutions-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.solution-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); transition: all var(--transition); cursor: pointer; }
.solution-item:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.solution-item__name { font-size: .87rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.solution-item__desc { font-size: .75rem; color: var(--gray-600); line-height: 1.5; }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card__header { padding: 24px; background: var(--cn-dark); color: var(--white); }
.product-card__header-title { font-size: 1.05rem; font-weight: 800; }
.product-card__header-sub   { font-size: .78rem; color: rgba(255,255,255,.65); margin-top: 3px; }
.product-card__body  { padding: 22px; }
.product-card__features { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.product-card__feature { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--gray-600); }
.product-card__feature::before { content: '✓'; color: var(--accent); font-weight: 900; flex-shrink: 0; margin-top: 1px; }
.product-card__footer { padding: 0 22px 22px; }

/* ============================================================
   WHY CLOUDNEXT PAGE
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.why-card { display: flex; gap: 16px; padding: 24px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); transition: all var(--transition); }
.why-card:hover { box-shadow: var(--shadow); border-color: #93c5fd; }
.why-card__title { font-size: .95rem; font-weight: 800; color: var(--navy); margin-bottom: 7px; }
.why-card__text  { font-size: .85rem; color: var(--gray-600); line-height: 1.65; }

.compare-table { width: 100%; border-collapse: collapse; margin-top: 36px; }
.compare-table th { background: var(--navy); color: var(--white); padding: 13px 18px; font-size: .82rem; font-weight: 700; text-align: left; }
.compare-table td { padding: 11px 18px; font-size: .84rem; border-bottom: 1px solid var(--gray-200); color: var(--gray-600); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--gray-50); }
.compare-check { color: #16a34a; font-weight: 800; }
.compare-x     { color: #dc2626; }

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.55fr; gap: 48px; align-items: start; }
.contact-info__title { font-size: 1.2rem; font-weight: 900; color: var(--navy); margin-bottom: 16px; }
.contact-info__items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-info__item  { display: flex; flex-direction: column; gap: 3px; }
.contact-info__item-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; color: var(--gray-400); letter-spacing: .08em; }
.contact-info__item-value { font-size: .9rem; color: var(--navy); font-weight: 700; }

.contact-form-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.contact-form-wrap h3 { font-size: 1.15rem; font-weight: 900; color: var(--navy); margin-bottom: 5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: .78rem; font-weight: 700; color: var(--gray-800); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: .87rem; font-family: inherit; color: var(--gray-800);
  background: var(--white); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { resize: vertical; min-height: 96px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-required { color: var(--accent); }
.form-group label.req::after { content: ' *'; color: #dc2626; font-weight: 700; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.field-error { font-size: .74rem; color: #dc2626; font-weight: 600; }
.form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 10px 14px; border-radius: var(--radius);
  font-size: .84rem; line-height: 1.5; margin-bottom: 12px;
}
.form-error[hidden] { display: none; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success__icon { font-size: 2.5rem; margin-bottom: 12px; }
.form-success h3 { font-size: 1.2rem; font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.form-success p  { color: var(--gray-600); }

.whatsapp-btn { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; padding: 11px 20px; border-radius: var(--radius); font-weight: 700; font-size: .87rem; transition: all var(--transition); }
.whatsapp-btn:hover { background: #1eb854; transform: translateY(-1px); }

.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question { width: 100%; text-align: left; padding: 16px 0; font-size: .9rem; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-question::after { content: '+'; font-size: 1.2rem; font-weight: 400; color: var(--accent); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 16px; font-size: .87rem; color: var(--gray-600); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--cn-dark); color: rgba(255,255,255,.55); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 48px; }
.footer__brand-logo { font-size: 1.2rem; font-weight: 900; color: var(--white); margin-bottom: 10px; }
.footer__brand-logo span { color: #7dd3fc; }
.footer__brand-text { font-size: .82rem; line-height: 1.65; max-width: 260px; margin-bottom: 20px; }
.footer__social { display: flex; gap: 9px; }
.footer__social a { width: 32px; height: 32px; border-radius: 7px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: .78rem; transition: all var(--transition); }
.footer__social a:hover { background: var(--accent); color: var(--white); }
.footer__col-title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: 14px; }
.footer__col-links { display: flex; flex-direction: column; gap: 8px; }
.footer__col-links a { font-size: .82rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer__col-links a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: .76rem; color: rgba(255,255,255,.3); }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   RESPONSIVE — Mobile First
   ============================================================ */

/* Tablet landscape */
@media (max-width: 1024px) {
  .features__grid        { grid-template-columns: repeat(2, 1fr); }
  .modules-grid          { grid-template-columns: repeat(3, 1fr); }
  .products-grid         { grid-template-columns: repeat(2, 1fr); }
  .footer__grid          { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-strip__grid     { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps__grid           { grid-template-columns: repeat(2, 1fr); }
  .steps__grid::before   { display: none; }
  .modules-preview__grid { grid-template-columns: repeat(3, 1fr); }
  .mega-drop__items      { grid-template-columns: repeat(2, 1fr); }
  .why-grid              { grid-template-columns: 1fr; }
  .hero__inner           { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Tablet portrait + large phone */
@media (max-width: 768px) {
  /* Base */
  html { font-size: 15px; }
  .section { padding: 48px 0; }
  .container { padding-inline: 18px; }

  /* Navbar */
  .navbar__nav, .navbar__actions { display: none; }
  .hamburger { display: flex; }
  .navbar__inner { height: 64px; }
  .navbar__logo img.logo-img {
    height: 52px !important;
    max-height: 52px !important;
    max-width: 180px !important;
  }
  .mega-drop { top: 64px; }
  .mobile-nav { top: 64px; }

  /* Hero */
  .hero { padding-top: 64px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; padding: 40px 0 48px; }
  .hero__visual { display: none; }
  .hero__headline-primary h1 { font-size: 1.7rem; }
  .hero__headline-primary p  { font-size: .9rem; }
  .hero__cta { flex-direction: column; gap: 10px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__headline-secondary h2 { font-size: 1.1rem; }

  /* Page hero */
  .page-hero { padding: 110px 0 48px; }
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero p  { font-size: .9rem; }

  /* Grids */
  .features__grid        { grid-template-columns: 1fr; gap: 16px; }
  .testimonials__grid    { grid-template-columns: 1fr; }
  .products-grid         { grid-template-columns: 1fr; }
  .modules-grid          { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .modules-preview__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps__grid           { grid-template-columns: 1fr; gap: 24px; }
  .why-grid              { grid-template-columns: 1fr; gap: 16px; }
  .solutions-layout      { grid-template-columns: 1fr; }
  .solutions-sidebar     { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .solutions-items       { grid-template-columns: 1fr; }

  /* Form */
  .contact-layout  { grid-template-columns: 1fr; gap: 32px; }
  .form-grid       { grid-template-columns: 1fr; }

  /* Stats */
  .stats-strip__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stats-strip__num  { font-size: 1.8rem; }

  /* Footer */
  .footer__grid   { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Product detail */
  .product-detail {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 48px 0 !important;
  }
  .product-detail--reverse .product-detail__visual { order: 0 !important; }

  /* CTA banner */
  .cta-banner { padding: 52px 0; }
  .cta-banner__title { font-size: 1.5rem; }
  .cta-banner__actions { flex-direction: column; align-items: center; gap: 10px; }
  .cta-banner__actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Section titles */
  .section-title { font-size: 1.55rem; }

  /* Trust bar */
  .trustbar__inner { gap: 20px; }
  .trustbar__logos { gap: 16px; }

  /* Mega drop mobile (slide-in) */
  .mega-drop { position: fixed; top: 64px; overflow-y: auto; max-height: calc(100vh - 64px); }
  .mega-drop__inner { grid-template-columns: 1fr; min-height: auto; }
  .mega-drop__cats  { border-right: none; border-bottom: 1px solid var(--cn-border); padding: 12px 0; display: flex; flex-wrap: wrap; gap: 4px; }
  .mega-drop__cat   { padding: 8px 14px; font-size: .82rem; }
  .mega-drop__panel { padding: 16px 20px; }
  .mega-drop__items { grid-template-columns: 1fr 1fr; gap: 4px; }

  /* Mobile nav */
  .mobile-nav a { font-size: .9rem; padding: 14px 4px; }

  /* Compare table */
  .compare-table th,
  .compare-table td { padding: 10px 12px; font-size: .78rem; }

  /* Why cards */
  .why-card { flex-direction: column; gap: 12px; }
}

/* Inline-styled 3-column blocks: !important is needed to beat the inline style */
@media (max-width: 768px) {
  .grid-3-stack { grid-template-columns: 1fr !important; gap: 16px !important; margin-top: 32px !important; }
  .grid-3-map   { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; margin-top: 32px !important; }
  .grid-3-map > * { grid-column: auto !important; padding: 18px 12px !important; }
}

/* Small phones */
@media (max-width: 480px) {
  html { font-size: 14px; }
  .container { padding-inline: 16px; }

  .navbar__inner { height: 60px; }
  .navbar__logo img.logo-img {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 150px !important;
  }
  .mega-drop { top: 60px; }
  .mobile-nav { top: 60px; }
  .hero { padding-top: 60px; }
  .page-hero { padding: 96px 0 40px; }

  .hero__headline-primary h1 { font-size: 1.5rem; }
  .section-title             { font-size: 1.35rem; }

  .modules-grid          { grid-template-columns: 1fr; }
  .modules-preview__grid { grid-template-columns: 1fr 1fr; }
  .stats-strip__grid     { grid-template-columns: 1fr 1fr; }

  .mega-drop__items { grid-template-columns: 1fr; }

  .btn-lg { padding: 12px 22px; font-size: .9rem; }

  .footer__brand-text { max-width: 100%; }
  .trustbar__logos { gap: 12px; flex-wrap: wrap; }
  .trustbar__logo  { font-size: .75rem; }
}

/* Very small phones (iPhone SE, etc) */
@media (max-width: 360px) {
  .hero__cta .btn { font-size: .82rem; padding: 11px 16px; }
  .modules-preview__grid { grid-template-columns: 1fr; }
  .stats-strip__grid     { grid-template-columns: 1fr; }
}

/* Stats strip with three items (placed last so it wins over the 2-column breakpoints above) */
.stats-strip__grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .stats-strip__grid--3 { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================
   HERO CAROUSEL (homepage) - rounded translucent card; the text
   slides on the left, the "September close review" mockup stays put
   ============================================================ */
.hero--carousel {
  display: block; min-height: 0; padding: 124px 0 68px;
  background:
    radial-gradient(900px 480px at 82% -5%, rgba(37,99,235,.24), transparent 60%),
    linear-gradient(180deg, #0f1f2e 0%, var(--cn-dark) 62%);
}
.hc-caption {
  text-align: center; margin: 0 0 26px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.hc-caption span { display: inline-block; padding-bottom: 5px; border-bottom: 1px solid rgba(125,211,252,.55); }

.hc-stage { position: relative; max-width: 1120px; margin: 0 auto; }
.hc-card {
  background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.13); border-radius: 36px;
  padding: 52px 58px; box-shadow: 0 24px 60px rgba(0,0,0,.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hc-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }

/* all slides share one grid cell, so the card never changes height between slides */
.hc-slides { display: grid; }
.hc-slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s;
}
.hc-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease, transform .55s ease; }

/* same type scale as the original hero */
.hc-text h1, .hc-text h2 {
  font-size: 2.15rem; font-weight: 400; line-height: 1.25; letter-spacing: -.2px;
  color: var(--white); margin: 0 0 14px;
}
.hc-text p { font-size: .9rem; color: var(--cn-muted); line-height: 1.7; max-width: 420px; margin: 0 0 22px; }
.hc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hc-mock { display: flex; justify-content: center; }
.hc-mock .hero__mockup-wrap { max-width: 520px; }

.hc-arrow {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; z-index: 3;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.24); background: rgba(21,37,53,.8);
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.hc-arrow--prev { left: -22px; }
.hc-arrow--next { right: -22px; }
.hc-arrow:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.hc-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hc-arrow:focus-visible, .hc-dots button:focus-visible, .hc-actions .btn:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 3px; }

.hc-dots {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  width: max-content; margin: 28px auto 0; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.09);
}
.hc-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.38); transition: all var(--transition); }
.hc-dots button[aria-current="true"] { width: 24px; border-radius: 6px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hc-slide, .hc-slide.is-active { transition: none; transform: none; }
}
@media (max-width: 1160px) {
  .hc-arrow--prev { left: -8px; }
  .hc-arrow--next { right: -8px; }
}
@media (max-width: 900px) {
  .hero--carousel { padding: 100px 0 46px; }
  .hc-card { padding: 32px 26px; border-radius: 28px; }
  .hc-grid { grid-template-columns: 1fr; gap: 30px; }
  .hc-arrow { display: none; }
  .hc-mock .hero__screen-float { position: static; width: auto; margin-top: 12px; }
}
@media (max-width: 768px) {
  .hc-text h1, .hc-text h2 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .hero--carousel { padding: 88px 0 38px; }
  .hc-caption { font-size: .66rem; margin-bottom: 18px; }
  .hc-card { padding: 26px 18px; border-radius: 24px; }
  .hc-text h1, .hc-text h2 { font-size: 1.5rem; }
  .hc-actions { flex-direction: column; }
  .hc-actions .btn { width: 100%; justify-content: center; }
}
