/* ==========================================================================
   SWOT PAM Identity Security Platform - Docs Introduction Page
   Aligned with Rudratic main website design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Reset
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  /* Core palette — matches main website */
  --bg-main:       #ffffff;
  --bg-header:     #ffffff;
  --bg-header-scrolled: rgba(255,255,255,0.95);
  --bg-card:       #ffffff;
  --bg-card-hover: #ffffff;
  --bg-search:     #ffffff;
  --bg-hero:       #ffffff;

  --border-color:  rgba(105, 39, 255, 0.16);
  --border-hover:  rgba(105, 39, 255, 0.60);
  --border-search: #cbd5e1;
  --border-header: rgba(105, 39, 255, 0.12);

  --text-primary:   #1a1a2e;
  --text-secondary: #444444;
  --text-muted:     rgba(0,0,0,0.55);
  --text-accent:    #6927ff;

  /* Brand purple — exactly main website */
  --accent-primary:   #6927ff;
  --accent-secondary: #5a1fe0;
  --accent-light:     rgba(105, 39, 255, 0.10);
  --accent-glow:      rgba(105, 39, 255, 0.40);

  /* Space card colours */
  --accent-teal:    #0d9488;
  --accent-amber:   #d97706;
  --accent-magenta: #c026d3;
  --accent-blue:    #1d4ed8;

  /* Shadows */
  --shadow-sm:         0 4px 15px rgba(0,0,0,0.05);
  --shadow-card:       0 8px 24px rgba(105,39,255,0.06);
  --shadow-card-hover: 0 16px 40px rgba(105,39,255,0.14);
  --shadow-search:     0 4px 25px rgba(105,39,255,0.08);

  /* Radii */
  --font-sans:   'Poppins', sans-serif;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   18px;
  --radius-full: 9999px;
  --max-width:   1200px;
}

/* --------------------------------------------------------------------------
   Dark Mode Token Overrides
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-main:       #0a0a1a;
  --bg-header:     #12122b;
  --bg-header-scrolled: rgba(18,18,43,0.95);
  --bg-card:       rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --bg-search:     #1e1e3a;
  --bg-hero:       #0d0d24;

  --border-color:  rgba(255, 255, 255, 0.16);
  --border-hover:  rgba(165, 107, 255, 0.70);
  --border-search: #3a3a6a;
  --border-header: rgba(255, 255, 255, 0.14);

  --text-primary:   #ffffff;
  --text-secondary: rgba(255,255,255,0.85);
  --text-muted:     rgba(255,255,255,0.55);
  --text-accent:    #a56bff;

  --accent-primary:   #8a4fff;
  --accent-secondary: #a56bff;
  --accent-light:     rgba(138,79,255,0.15);
  --accent-glow:      rgba(138,79,255,0.50);

  --shadow-sm:         0 4px 15px rgba(0,0,0,0.35);
  --shadow-card:       0 8px 24px rgba(0,0,0,0.30);
  --shadow-card-hover: 0 16px 40px rgba(138,79,255,0.22);
  --shadow-search:     0 4px 25px rgba(0,0,0,0.35);
}

/* Dark hero */
[data-theme="dark"] .hero-bg-wrapper { background: var(--bg-hero); }
[data-theme="dark"] .hero-main-title  { color: #c4b5fd; }
[data-theme="dark"] .section-label    { color: rgba(255,255,255,0.50); }

[data-theme="dark"] .start-card-title,
[data-theme="dark"] .space-card-title,
[data-theme="dark"] .product-card h3,
[data-theme="dark"] .saas-card-title,
[data-theme="dark"] .product-family-title { color: #e9d5ff; }

[data-theme="dark"] .saas-icon-square {
  background: rgba(138,79,255,0.18);
  color: #c4b5fd;
}
[data-theme="dark"] .product-card-mark,
[data-theme="dark"] .implementation-card .start-card-icon {
  background: rgba(138,79,255,0.14);
  border-color: rgba(138,79,255,0.25);
  color: #c4b5fd;
}

[data-theme="dark"] .search-input { color: var(--text-primary); }
[data-theme="dark"] .search-btn   { background: rgba(138,79,255,0.18); color: #c4b5fd; }
[data-theme="dark"] .search-btn:hover { background: var(--accent-primary); color: #ffffff; }
[data-theme="dark"] .header        { border-bottom-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .company-brand .brand-docs-tag { color: rgba(255,255,255,0.7); border-left-color: rgba(255,255,255,0.15); }

/* Dark header toggle: Sun icon active in dark mode */
[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: scale(1) rotate(0deg); color: #f59e0b; }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: scale(0.5) rotate(90deg); }

/* Smooth transitions */
body,
.hero-bg-wrapper,
.start-card,
.space-card,
.product-card,
.saas-card,
.search-box,
.saas-icon-square,
.product-card-mark,
.header,
.footer {
  transition: background-color 0.3s ease, border-color 0.3s ease,
              color 0.3s ease, box-shadow 0.3s ease;
}

/* Custom scrollbar */
html::-webkit-scrollbar          { width: 8px; }
html::-webkit-scrollbar-track    { background: transparent; }
html::-webkit-scrollbar-thumb    { background: #6927ff; border-radius: 10px; }
html::-webkit-scrollbar-thumb:hover { background: #5a1fe0; }
html { scrollbar-width: thin; scrollbar-color: #6927ff transparent; }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

html {
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
}

/* Hero background wrapper */
.hero-bg-wrapper {
  background: var(--bg-hero);
  padding-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   2. Navbar / Header  — matches main website floating pill nav
   -------------------------------------------------------------------------- */
.header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-header);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand / Logo */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.company-brand {
  gap: 16px;
}

.company-brand .brand-logo-hex,
.company-brand .brand-titles,
.company-brand .brand-divider {
  display: none;
}

.company-logo {
  width: 200px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.company-brand .brand-docs-tag {
  padding-left: 16px;
  border-left: 1px solid rgba(0,0,0,0.12);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.brand-logo-hex {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6927ff 0%, #a56bff 100%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-main-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-main-name span.trade {
  font-size: 0.65rem;
  vertical-align: super;
  font-weight: 600;
}

.brand-sub-name {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-divider {
  height: 24px;
  width: 1px;
  background-color: var(--border-color);
  margin: 0 4px;
}

.brand-docs-tag {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   Theme Toggle
   -------------------------------------------------------------------------- */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
  outline: none;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.06);
  box-shadow: 0 3px 12px rgba(105,39,255,0.18);
}

.theme-toggle:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-light);
  border-color: var(--accent-primary);
}

.theme-toggle svg {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light mode state: Moon icon visible (click to switch to dark) */
.theme-toggle .icon-sun  { opacity: 0; transform: scale(0.5) rotate(-90deg); }
.theme-toggle .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); color: #6927ff; }

/* --------------------------------------------------------------------------
   3. Hero Section & Search Bar
   -------------------------------------------------------------------------- */

/* ── Background wrapper ── */
.hero-bg-wrapper {
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
  padding-bottom: 4rem;
}

/* Animated glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  will-change: transform;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(105,39,255,0.28) 0%, transparent 70%);
  top: -180px; left: -120px;
  animation: orbDrift1 18s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(165,107,255,0.18) 0%, transparent 70%);
  top: 60px; right: -100px;
  animation: orbDrift2 22s ease-in-out infinite alternate;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  animation: orbDrift3 14s ease-in-out infinite alternate;
}
@keyframes orbDrift1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes orbDrift2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(0.94); }
}
@keyframes orbDrift3 {
  from { transform: translateX(-50%) scale(1); }
  to   { transform: translateX(-50%) scale(1.15); }
}

/* Dot-grid overlay */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(105,39,255,0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}
[data-theme="dark"] .hero-dot-grid {
  background-image: radial-gradient(circle, rgba(165,107,255,0.18) 1px, transparent 1px);
}

/* ── Eyebrow badge ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-light);
  color: var(--accent-primary);
  border: 1px solid rgba(105,39,255,0.22);
  border-radius: var(--radius-full);
  padding: 7px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.hero-eyebrow:hover {
  box-shadow: 0 0 0 4px rgba(105,39,255,0.10);
}

/* ── Hero layout ── */
.hero-section {
  padding: 2rem 1rem 2rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Headline ── */
.hero-main-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
  line-height: 1.15;
}
[data-theme="dark"] .hero-main-title { color: #f0e8ff; }

/* Cycling animated word */
.hero-cycle-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.2em;
}
.hero-cycle-word {
  display: inline-block;
  background: linear-gradient(135deg, #6927ff 0%, #a56bff 60%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientPan 4s linear infinite alternate, cycleSlideIn 0.6s cubic-bezier(0.22,1,0.36,1);
}
@keyframes gradientPan {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes cycleSlideIn {
  from { opacity: 0; transform: translateY(40%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cycleSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-40%); }
}
.hero-cycle-word.exiting {
  animation: cycleSlideOut 0.35s ease forwards;
}

/* ── Subtitle ── */
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ── CTA buttons row ── */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6927ff 0%, #8a4fff 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(105,39,255,0.32);
  transition: all 0.22s cubic-bezier(0.165,0.84,0.44,1);
  letter-spacing: 0.01em;
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(105,39,255,0.44);
  color: #ffffff;
}
.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.165,0.84,0.44,1);
}
.hero-btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-light);
  transform: translateY(-2px);
}
[data-theme="dark"] .hero-btn-ghost { color: rgba(255,255,255,0.75); }
[data-theme="dark"] .hero-btn-ghost:hover { color: #a56bff; }

/* ── Search Bar ── */
.search-container {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  position: relative;
}
.search-box {
  width: 100%;
  height: 54px;
  background: var(--bg-search);
  border: 1.5px solid var(--border-search);
  border-radius: var(--radius-full);
  padding: 0 8px 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}
.search-box:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-light), 0 4px 20px rgba(105,39,255,0.10);
}
[data-theme="dark"] .search-box {
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
[data-theme="dark"] .search-box:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(138,79,255,0.20);
}
.search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.96rem;
  color: var(--text-primary);
  background: transparent;
  font-family: var(--font-sans);
  min-width: 0;
  flex: 1;
}
.search-input::placeholder { color: #9ca3af; }
[data-theme="dark"] .search-input { color: var(--text-primary); }
[data-theme="dark"] .search-input::placeholder { color: rgba(255,255,255,0.40); }
.search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.search-btn:hover {
  background: var(--accent-secondary);
  transform: scale(1.06);
}

/* ── Stats strip ── */
.hero-stats-strip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 24px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}
.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 18px;
  white-space: nowrap;
}
.hero-stat-item svg { color: var(--accent-primary); flex-shrink: 0; }
.hero-stat-item strong { color: var(--text-primary); font-weight: 700; }
.hero-stat-sep {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  flex-shrink: 0;
}

/* ── Category chips ── */
.hero-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}
.hero-chip svg { color: var(--accent-primary); }
.hero-chip:hover {
  border-color: var(--accent-primary);
  background: var(--accent-light);
  color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(105,39,255,0.14);
}
[data-theme="dark"] .hero-chip { color: rgba(255,255,255,0.70); }
[data-theme="dark"] .hero-chip:hover { color: #a56bff; }

/* ── Search results dropdown ── */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  z-index: 300;
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
  animation: srFadeIn 0.15s ease;
}
[data-theme="dark"] .search-results {
  background: #1a1a36;
  border-color: #2e2e54;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
@keyframes srFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sr-item {
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.12s ease;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.active { background: var(--accent-light); }
.sr-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.sr-meta mark, .sr-desc mark {
  background: rgba(105,39,255,0.13);
  color: var(--accent-primary);
  border-radius: 3px;
  padding: 0 2px;
  font-style: normal;
}
.sr-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  background: var(--accent-light);
  border-radius: 100px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.sr-desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.4; }
.sr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
}

/* Card highlight animation on selection */
.product-card {
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.product-card.search-highlight {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px var(--accent-light), var(--shadow-card-hover) !important;
  animation: cardPulse 1.8s ease;
}
@keyframes cardPulse {
  0%   { box-shadow: 0 0 0 3px var(--accent-light); }
  40%  { box-shadow: 0 0 0 8px var(--accent-light); }
  100% { box-shadow: 0 0 0 3px transparent; }
}



/* --------------------------------------------------------------------------
   4. Section Titles & Cards
   -------------------------------------------------------------------------- */
.content-section {
  margin-bottom: 3.5rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* "Start here" Grid */
.start-here-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.start-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.165,0.84,0.44,1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.start-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(105,39,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.start-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.start-card:hover::before { opacity: 1; }

.start-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.85rem;
}

.start-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.start-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.start-card-desc {
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Implementation plan cards */
.implementation-card .start-card-header {
  align-items: flex-start;
}

.implementation-card .start-card-icon {
  width: 44px;
  height: 44px;
  padding: 7px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-main);
  box-shadow: var(--shadow-sm);
}

.implementation-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.implementation-step {
  margin-bottom: 3px;
  color: var(--accent-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* "Explore by space" Grid */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.space-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.165,0.84,0.44,1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.space-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.space-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.icon-purple  { background: linear-gradient(135deg, #8a4fff 0%, #6927ff 100%); }
.icon-teal    { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.icon-amber   { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.icon-blue    { background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%); }
.icon-magenta { background: linear-gradient(135deg, #f472b6 0%, #a21caf 100%); }

.space-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.space-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Product portfolio */
.product-family { padding-top: 0.5rem; }

.product-family-heading { margin-bottom: 1.35rem; }

.product-family-kicker {
  margin-bottom: 0.3rem;
  color: var(--accent-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-family-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.2;
}

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

.product-grid-single {
  grid-template-columns: minmax(0, 280px);
}

.product-card {
  min-height: 180px;
  padding: 1.35rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 4px 18px rgba(105, 39, 255, 0.06);
  transition: all 0.25s cubic-bezier(0.165,0.84,0.44,1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.product-card-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  padding: 7px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-main);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}



.product-card-mark img,
.product-card-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-mark svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.product-card h3 {
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* SaaS services grid (hidden by default but styled) */
.saas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.saas-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.saas-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.saas-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.saas-icon-square {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.saas-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.saas-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saas-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  /* -webkit-line-clamp: 2; */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.saas-chevron {
  color: rgba(0,0,0,0.25);
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}
[data-theme="dark"] .saas-chevron { color: rgba(255,255,255,0.25); }

.saas-card:hover .saas-chevron {
  color: var(--accent-primary);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Footer  — dark, matches main website exactly
   -------------------------------------------------------------------------- */
.footer {
  background: #0f0f23;
  margin-top: auto;
  padding: 3.5rem 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
}

/* Legacy footer grid (hidden by default, kept for compat) */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s ease;
}

.footer-links-list a:hover { color: #a56bff; }

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(105,39,255,0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.social-icon-btn:hover {
  background: var(--accent-primary);
  transform: translateY(-2px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

/* Main footer shell — 4-column layout */
.footer-shell {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) minmax(120px, 0.65fr) minmax(140px, 0.65fr) minmax(290px, 1.25fr);
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 3rem;
}

/* Brand panel — vivid purple card matching main site */
.footer-brand-panel {
  min-height: 300px;
  padding: 2rem;
  background: #6927ff;
  border-radius: 0;
}

.footer-brand-panel h2,
.footer-nav h3,
.footer-contact h3 {
  margin-bottom: 1.35rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.footer-brand-panel p {
  max-width: 270px;
  color: rgba(255,255,255,0.80);
  font-size: 0.94rem;
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 4rem;
}

.footer-social-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-nav   { gap: 0.7rem; }

.footer-nav a,
.footer-contact p,
.footer-contact a {
  color: rgba(255,255,255,0.70);
  font-size: 0.9rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-nav a:hover,
.footer-contact a:hover { color: #c4b5fd; }

.footer-contact p {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.footer-contact svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: rgba(255,255,255,0.75);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer-copyright {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.40);
  font-size: 0.8rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   6. Comprehensive Responsive Layouts for All Display Sizes
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .spaces-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid-single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spaces-grid { grid-template-columns: repeat(3, 1fr); }
  .saas-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-section { padding: 4rem 1.25rem 2.75rem; }
}

@media (max-width: 768px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .header { height: 64px; }
  .header-container { padding: 0 1rem; }
  .company-logo { width: 160px; height: 36px; }
  .brand-docs-tag { font-size: 0.95rem; padding-left: 10px; }
  .hero-section { padding: 3rem 1rem 2rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
  .product-grid,
  .product-grid-single { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .start-here-grid { grid-template-columns: 1fr; }
  .spaces-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-shell { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-brand-panel { min-height: auto; padding: 1.5rem; }
  .footer-socials { margin-top: 2rem; }
  .saas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-box { height: 48px; padding-left: 18px; }
}

@media (max-width: 576px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .spaces-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-eyebrow { font-size: 0.76rem; padding: 5px 14px; }
  .search-container { width: 100%; }
}

@media (max-width: 380px) {
  .company-logo { width: 130px; height: 30px; }
  .brand-docs-tag { font-size: 0.85rem; padding-left: 8px; }
  .hero-section { padding: 2.25rem 0.75rem 1.75rem; }
  .product-card { padding: 1.15rem; min-height: auto; }
}
