/* ═══════════════════════════════════════════
   ISAGO — Brand Guidelines v2.5 (Premium Redesign)
   Design System & Glassmorphic CSS
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── CSS Variables (Design Tokens) ── */
:root {
  /* Primary Theme & Lighting */
  --color-dark: #070709;
  --color-dark-surface: #0E0F15;
  --color-dark-elevated: #151620;
  --color-light: #FAFAFA;
  
  /* Accent Scale (Indigo / Glows) */
  --color-accent: #6366F1;
  --color-accent-hover: #4F46E5;
  --color-accent-active: #4338CA;
  --accent-50: #EEF2FF;
  --accent-100: #E0E7FF;
  --accent-200: #C7D2FE;
  --accent-300: #A5B4FC;
  --accent-400: #818CF8;
  --accent-500: #6366F1;
  --accent-600: #4F46E5;
  --accent-700: #4338CA;
  --accent-800: #3730A3;
  --accent-900: #312E81;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --accent-glow-strong: rgba(99, 102, 241, 0.45);

  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(99, 102, 241, 0.35);
  --glass-blur: blur(16px);

  /* Neutrals */
  --neutral-0: #FFFFFF;
  --neutral-50: #FAFAFA;
  --neutral-100: #F4F4F5;
  --neutral-200: #E4E4E7;
  --neutral-300: #D1D1D6;
  --neutral-400: #94949E;
  --neutral-500: #6E6E7A;
  --neutral-600: #4A4A56;
  --neutral-700: #2E2E38;
  --neutral-800: #1B1B22;
  --neutral-900: #12131A;
  --neutral-950: #070709;

  /* Semantic Colors */
  --color-metric: #F59E0B;
  --color-success: #10B981;
  --color-error: #EF4444;

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1240px;
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-dark);
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-dark);
  color: var(--neutral-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-400);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--accent-300);
}

/* ── Ambient Background Lighting ── */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 600px;
  background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.08) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* ── Typography & Gradients ── */
h1, h2, h3, h4, h5, h6, .display-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.display-2xl { font-size: clamp(38px, 5.5vw, 68px); line-height: 1.1; font-weight: 700; }
.display-xl  { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.15; font-weight: 700; }
.display-lg  { font-size: clamp(26px, 3.5vw, 42px); line-height: 1.2; font-weight: 600; }
.display-md  { font-size: clamp(22px, 3vw, 32px); line-height: 1.25; font-weight: 600; }
.display-sm  { font-size: clamp(18px, 2.5vw, 24px); line-height: 1.3; font-weight: 600; }

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 30%, #C7D2FE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #A5B4FC 0%, #6366F1 50%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-xl { font-size: 20px; line-height: 1.5; font-weight: 400; }
.text-lg { font-size: 18px; line-height: 1.6; font-weight: 400; }
.text-md { font-size: 16px; line-height: 1.5; font-weight: 400; }
.text-sm { font-size: 14px; line-height: 1.45; font-weight: 400; }
.text-xs { font-size: 12px; line-height: 1.35; font-weight: 500; }

.text-muted { color: var(--neutral-400); }
.text-dim { color: var(--neutral-500); }
.text-metric { color: var(--color-metric); font-weight: 700; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-8); }
}

.section {
  padding: clamp(64px, 8vw, 112px) 0;
  position: relative;
}

.section-pattern {
  background-color: var(--color-dark);
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 7, 9, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  transition: all 0.3s ease;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.header-logo-symbol {
  width: 28px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
}

.header-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--neutral-0);
  letter-spacing: 0.06em;
}

.header-tagline {
  display: none;
  font-size: 11px;
  color: var(--neutral-400);
  letter-spacing: 0.02em;
  padding-left: 12px;
  border-left: 1px solid var(--neutral-700);
}

@media (min-width: 768px) {
  .header-tagline { display: block; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-300);
  transition: color 0.2s;
}
.header-nav a:hover {
  color: var(--neutral-0);
}

/* ── Mobile Nav ── */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--neutral-50);
  cursor: pointer;
  font-size: 18px;
  backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 7, 9, 0.96);
  backdrop-filter: blur(24px);
  padding: var(--space-8) var(--space-6);
  z-index: 99;
}

.mobile-nav.open { display: flex; flex-direction: column; gap: 16px; }

.mobile-nav a {
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--neutral-200);
  border-bottom: 1px solid var(--glass-border);
}

/* ── Pill Badges ── */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-300);
  margin-bottom: var(--space-6);
  box-shadow: inset 0 0 12px rgba(99, 102, 241, 0.1);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: var(--neutral-0);
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
  color: var(--neutral-0);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--neutral-100);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--neutral-0);
  transform: translateY(-2px);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ── Hero ── */
.hero {
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: clamp(48px, 6vw, 96px);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  max-width: 680px;
}

.hero-headline {
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  color: var(--neutral-400);
  margin-bottom: var(--space-8);
  font-size: 18px;
  line-height: 1.6;
}

/* ── Hero Mockup Dashboard ── */
.hero-mockup-card {
  background: var(--neutral-900);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.hero-mockup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--neutral-700);
}
.mockup-dot.red { background-color: #EF4444; opacity: 0.7; }
.mockup-dot.yellow { background-color: #F59E0B; opacity: 0.7; }
.mockup-dot.green { background-color: #10B981; opacity: 0.7; }

.mockup-title {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--neutral-400);
  letter-spacing: 0.05em;
}

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-stat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--neutral-0);
}

.mockup-stat-label {
  font-size: 12px;
  color: var(--neutral-400);
}

.mockup-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: #34D399;
  font-weight: 600;
}

.sparkline-svg {
  width: 100%;
  height: 60px;
  stroke: var(--accent-400);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ── Bento Grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .bento-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .bento-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .bento-grid-12 { grid-template-columns: repeat(12, 1fr); }
  
  .span-12 { grid-column: span 12; }
  .span-8  { grid-column: span 8; }
  .span-7  { grid-column: span 7; }
  .span-6  { grid-column: span 6; }
  .span-5  { grid-column: span 5; }
  .span-4  { grid-column: span 4; }
}

/* ── Glass Cards & Bento Items ── */
.card, .step-card, .bento-card, .portfolio-card, .value-card {
  background: var(--neutral-900);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card:hover, .step-card:hover, .bento-card:hover, .portfolio-card:hover, .value-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.12);
}

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-300);
}

.card-icon {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--neutral-0);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 15px;
  color: var(--neutral-400);
  line-height: 1.6;
}

.card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--neutral-300);
}

.card-metric-value {
  font-weight: 700;
  color: var(--accent-300);
}

/* ── Step Cards ── */
.step-card {
  position: relative;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.step-number {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  color: var(--accent-400);
  opacity: 0.15;
  position: absolute;
  top: 24px;
  right: 28px;
  line-height: 1;
}

.step-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--neutral-0);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 15px;
  color: var(--neutral-400);
  margin-bottom: 20px;
}

.step-time {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--accent-300);
  font-weight: 600;
}

/* ── Metrics Bar ── */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  background: var(--neutral-900);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  backdrop-filter: var(--glass-blur);
}

@media (min-width: 768px) {
  .metrics-bar { grid-template-columns: repeat(4, 1fr); padding: 48px; }
}

.metric-item {
  text-align: center;
}

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--accent-300);
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.metric-label {
  font-size: 14px;
  color: var(--neutral-400);
  font-weight: 500;
}

/* ── Section Headers ── */
.section-header {
  margin-bottom: var(--space-12);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  color: var(--neutral-400);
  max-width: 620px;
  font-size: 18px;
}

/* ── Forms ── */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-200);
  margin-bottom: var(--space-2);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--neutral-50);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--neutral-600);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: clamp(48px, 6vw, 80px) 0 40px;
  background: var(--color-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 340px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--neutral-0);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.footer-tagline {
  font-size: 14px;
  color: var(--neutral-400);
  margin-bottom: var(--space-4);
}

.footer-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--neutral-200);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 14px;
  color: var(--neutral-400);
}
.footer-links a:hover { color: var(--neutral-0); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--neutral-500);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-products {
  display: flex;
  gap: 12px;
  color: var(--neutral-500);
  font-size: 13px;
}

/* ── Utility Classes ── */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* ── Print (for one-pager) ── */
@media print {
  .header, .footer, .mobile-menu-btn, .mobile-nav, .ambient-glow { display: none; }
  body { background: white; color: black; }
  .section { padding: var(--space-8) 0; }
  .card, .step-card, .portfolio-card, .value-card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
  }
}
