/* iSight Marketing Site — Insight Management Systems */

:root {
  --primary: #391d48;
  --primary-light: #5c2d72;
  --accent: #7b42f6;
  --accent-soft: #a78bfa;
  --gold: #c9a227;
  --gold-light: #e8c96a;
  --bg: #faf9fc;
  --bg-elevated: #ffffff;
  --surface-muted: #f3f0f8;
  --text: #1a1224;
  --text-muted: #5c5470;
  --text-soft: #8b839c;
  --border: rgba(57, 29, 72, 0.1);
  --shadow-sm: 0 2px 8px rgba(57, 29, 72, 0.06);
  --shadow-md: 0 12px 40px rgba(57, 29, 72, 0.12);
  --shadow-lg: 0 24px 64px rgba(57, 29, 72, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.65rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(123, 66, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(123, 66, 246, 0.45);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-soft);
  background: var(--surface-muted);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
}

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

/* ── Hero ── */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(123, 66, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(201, 162, 39, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #f8f5fc 0%, var(--bg) 100%);
  z-index: -2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(123, 66, 246, 0.1);
  border: 1px solid rgba(123, 66, 246, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}

.hero-card-title {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-camera {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.mock-camera-label {
  background: #1a1224;
  color: rgba(255,255,255,0.85);
  font-size: 0.7rem;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mock-camera-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4757;
  animation: pulse-live 1.5s ease infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mock-camera-view {
  height: 120px;
  background: linear-gradient(145deg, #2d1f3d 0%, #4a3060 40%, #6b4d7a 100%);
}

.mock-feed-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

.mock-feed-tabs span {
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-soft);
}

.mock-feed-tabs span.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.chip-live {
  background: rgba(255, 71, 87, 0.12) !important;
  color: #c0392b !important;
  border-color: rgba(255, 71, 87, 0.25) !important;
}

/* Portals section */
.portals-section {
  padding: 5rem 0;
  background: var(--surface-muted);
}

.portals-section .section-title,
.portals-section .section-label {
  text-align: center;
  display: block;
}

.portals-lead {
  text-align: center;
  margin-inline: auto;
  max-width: 42rem;
}

.section-lead a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-lead a:hover {
  color: var(--primary);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.portal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.portal-card-staff {
  border-color: rgba(123, 66, 246, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
}

.portal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.portal-card-header img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.portal-role {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.portal-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-style: italic;
}

.portal-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}

.portal-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.portal-check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.portal-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 900px) {
  .portal-grid { grid-template-columns: 1fr; }
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff6b6b; }
.dot-yellow { background: #ffd93d; }
.dot-green { background: #6bcb77; }

.hero-card-body { padding: 1.5rem; }

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mock-stat {
  background: var(--surface-muted);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.mock-stat .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.mock-stat .lbl {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mock-feed-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.mock-feed-item:last-child { border: none; }

.mock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), var(--gold-light));
  flex-shrink: 0;
}

.mock-feed-text .title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.mock-feed-text .sub {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.floating-chip {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float 4s ease-in-out infinite;
}

.chip-ai { top: -1rem; right: -1rem; color: var(--accent); }
.chip-ai::before { content: "✦"; }
.chip-check { bottom: 2rem; left: -1.5rem; color: var(--gold); animation-delay: -2s; }
.chip-check::before { content: "✓"; background: rgba(201,162,39,0.15); width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Sections ── */
section { padding: 5rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 3rem;
}

/* Logos strip */
.logos-strip {
  padding: 3rem 0;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.logos-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3.5rem;
  opacity: 0.55;
}

.logos-inner span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(123, 66, 246, 0.25);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  background: var(--surface-muted);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-card.highlight {
  background: linear-gradient(145deg, var(--primary) 0%, #2d0f49 100%);
  border-color: transparent;
  color: white;
}

.feature-card.highlight h3,
.feature-card.highlight p { color: rgba(255,255,255,0.9); }

.feature-card.highlight .feature-icon {
  background: rgba(255,255,255,0.12);
}

/* Platform section */
.platform-section {
  background: var(--surface-muted);
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.platform-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.platform-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.platform-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.platform-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.compare-col {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.compare-col.isight {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(123, 66, 246, 0.15);
  position: relative;
}

.compare-col.isight::before {
  content: "Recommended";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
}

.compare-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}

.compare-col ul {
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.compare-col li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.compare-col li::before { content: "•"; color: var(--accent); }

.compare-col.isight li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #2d0f49 50%, var(--primary-light) 100%);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  border-radius: var(--radius-lg);
  margin: 0 1rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(123,66,246,0.4) 0%, transparent 50%);
  pointer-events: none;
}

.cta-band .section-title { color: white; margin-bottom: 1rem; }
.cta-band .section-lead { color: rgba(255,255,255,0.8); margin-inline: auto; margin-bottom: 2rem; }

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
}

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

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 200px; }

/* Footer */
.footer {
  background: #1a1224;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer .brand { color: white; margin-bottom: 1rem; }
.footer .brand img { border-radius: 10px; }

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1rem;
}

.footer ul li { margin-bottom: 0.5rem; }
.footer a { font-size: 0.9rem; transition: color 0.2s; }
.footer a:hover { color: var(--gold-light); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Legal pages */
.legal-page {
  padding: 7rem 0 4rem;
  max-width: 720px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
}

.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-page ul { list-style: disc; padding-left: 1.5rem; }

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 60px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  z-index: 99;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .platform-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin-inline: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-secondary { display: none; }
  .menu-toggle { display: block; }
  .nav-actions .btn-primary { font-size: 0.85rem; padding: 0.6rem 1rem; }
  .features-grid,
  .compare-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 6rem; min-height: auto; }
  .hero-trust { gap: 1.25rem; }
  .floating-chip { display: none; }
  section { padding: 3.5rem 0; }
}
