/* ============================================================
   CLOUDSAGEAI - cloudsageai.css
   Palette: Indigo + Teal + Pink on deep indigo-dark background
   Dark theme only.
============================================================ */

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --indigo:       #6366F1;
  --indigo-light: #818CF8;
  --indigo-dim:   rgba(99,102,241,0.15);
  --teal:         #14B8A6;
  --teal-light:   #2DD4BF;
  --teal-dim:     rgba(20,184,166,0.15);
  --pink:         #EC4899;
  --pink-light:   #F472B6;
  --pink-dim:     rgba(236,72,153,0.15);

  --bg:           #0E0C1A;
  --bg-nav:       #100E1F;
  --bg-surface:   #16132A;
  --bg-card:      #1E1A38;
  --bg-card-hover:#231F40;

  --border:       rgba(255,255,255,0.08);
  --border-mid:   rgba(255,255,255,0.14);

  --white:        #FFFFFF;
  --text-1:       #FFFFFF;
  --text-2:       rgba(255,255,255,0.65);
  --text-3:       rgba(255,255,255,0.40);
  --text-4:       rgba(255,255,255,0.25);

  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-full:  9999px;
  --shadow-md:    0 4px 24px rgba(0,0,0,0.30);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:        64px;
}

/* ============================================================
   RESET + BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--bg-nav);
  display: flex; align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--white);
  letter-spacing: -0.3px;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--pink) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: white;
  flex-shrink: 0;
}
.nav-logo .sage { color: var(--teal); }
.nav-logo .ai   { color: var(--pink); }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-cta {
  font-size: 14px; font-weight: 600;
  background: var(--indigo); color: white;
  padding: 8px 18px; border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--indigo-light); color: white; }

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; height: 2px; width: 100%;
  background: rgba(255,255,255,0.8); border-radius: 2px;
}

.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--bg-nav); padding: 20px 24px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px; font-weight: 500;
  color: var(--text-2);
  padding: 12px 16px; border-radius: var(--radius-sm);
}
.mobile-menu a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.mobile-menu .nav-cta { margin-top: 8px; text-align: center; }

/* ============================================================
   NAV ACTIVE STATE
============================================================ */
.nav-current {
  font-size: 14px; font-weight: 600;
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  cursor: default;
}
.nav-current-mobile {
  font-size: 16px; font-weight: 600;
  color: white;
  padding: 12px 16px;
  display: block;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  background: var(--indigo); color: white;
  padding: 13px 26px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--indigo-light); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  color: var(--text-2);
  padding: 13px 26px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  cursor: pointer; background: none;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--white); }

/* ============================================================
   HERO
============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + 88px);
  padding-bottom: 104px;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(99,102,241,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(20,184,166,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), transparent);
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 2px; background: var(--teal);
}
.hero-headline {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--white);
  max-width: 780px;
  margin-bottom: 24px;
}
.hero-headline .accent-blue  { color: var(--teal); }
.hero-headline .accent-green { color: var(--indigo-light); }
.hero-sub {
  font-size: 18px; line-height: 1.75;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}

/* ============================================================
   SHARED SECTION STYLES
============================================================ */
.section { padding: 88px 24px; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--indigo-light);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.8px;
  color: var(--text-1); line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; line-height: 1.7;
  color: var(--text-3); max-width: 560px;
}
.section-header { margin-bottom: 52px; }

/* ============================================================
   PRODUCTS SECTION
============================================================ */
.products { background: var(--bg-surface); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.product-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.product-card.live    { border-top: 3px solid var(--indigo); }
.product-card.coming-soon { border-top: 3px solid var(--border-mid); }
.product-card.coming-soon .product-body,
.product-card.coming-soon .product-footer { opacity: 0.55; }

.product-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.product-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.product-icon.blue  { background: var(--indigo-dim); }
.product-icon.green { background: var(--teal-dim); }
.product-icon.amber { background: var(--pink-dim); }

.product-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: var(--radius-full); flex-shrink: 0;
}
.badge-live { background: var(--teal-dim); color: var(--teal-light); }
.badge-soon { background: rgba(255,255,255,0.06); color: var(--text-3); }

.product-name {
  font-size: 20px; font-weight: 700; color: var(--text-1);
  letter-spacing: -0.3px; margin-bottom: 6px;
}
.product-tagline {
  font-size: 14px; font-weight: 500; color: var(--indigo-light);
  margin-bottom: 14px;
}
.product-desc {
  font-size: 15px; line-height: 1.7; color: var(--text-2);
  margin-bottom: 20px; flex: 1;
}
.product-features {
  list-style: none; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.product-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-2); line-height: 1.5;
}
.product-features li::before {
  content: '';
  display: block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--teal);
  flex-shrink: 0; margin-top: 7px;
}
.product-footer {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.product-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--indigo-light);
  transition: gap 0.15s;
}
.product-cta:hover { gap: 10px; }
.product-cta-soon {
  font-size: 13px; color: var(--text-4); font-style: italic;
}
.product-cta-tag {
  font-size: 12px; font-weight: 600; color: var(--text-3);
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: var(--radius-full);
}

/* ============================================================
   SERVICES SECTION
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--indigo); }
.service-icon {
  width: 42px; height: 42px;
  background: var(--indigo-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 18px;
}
.service-name {
  font-size: 16px; font-weight: 700; color: var(--text-1);
  margin-bottom: 8px; letter-spacing: -0.2px;
}
.service-desc {
  font-size: 14px; line-height: 1.65; color: var(--text-3);
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about { background: var(--bg-surface); }
.about-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about .section-label { color: var(--teal); }
.about .section-title { color: var(--white); }
.about .section-sub {
  color: var(--text-2); max-width: none;
  margin-bottom: 40px;
}
.cert-list { display: flex; flex-direction: column; gap: 12px; }
.cert-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.cert-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.cert-dot.blue  { background: var(--indigo-light); }
.cert-dot.green { background: var(--teal); }
.cert-dot.amber { background: var(--pink); }
.cert-name {
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.cert-issuer {
  font-size: 12px; color: var(--text-3); margin-left: auto;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 40px;
}
.about-stat {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.about-stat-value {
  font-size: 28px; font-weight: 800; color: var(--white);
  letter-spacing: -0.5px; margin-bottom: 4px;
}
.about-stat-value .unit {
  font-size: 15px; color: var(--indigo-light); margin-left: 2px;
}
.about-stat-label {
  font-size: 12px; font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.8px;
}

/* ============================================================
   CONTACT STRIP
============================================================ */
.contact-strip {
  padding: 88px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.contact-strip .section-label { display: flex; justify-content: center; }
.contact-strip .section-title { max-width: 520px; margin: 0 auto 16px; }
.contact-strip .section-sub   { max-width: 460px; margin: 0 auto 36px; }
.contact-options {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.contact-email-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  background: var(--bg-card); color: var(--white);
  padding: 13px 26px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  transition: border-color 0.15s, background 0.15s;
}
.contact-email-btn:hover { border-color: var(--indigo); background: var(--bg-card-hover); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--bg-nav);
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 16px; font-weight: 700; color: white; }
.footer-logo .sage { color: var(--teal); }
.footer-logo .ai   { color: var(--pink); }
.footer-links {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-link {
  font-size: 13px; color: var(--text-3);
  transition: color 0.15s;
}
.footer-link:hover { color: var(--text-2); }
.footer-copy { font-size: 12px; color: var(--text-4); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 64px; }
  .section { padding: 64px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
