/* ============================================
   Innogath Marketing — Design System v4
   Warm monochrome + teal accent
   ============================================ */

:root {
  /* Core Palette — warm neutrals */
  --color-bg-main: #fafaf9;
  --color-bg-subtle: #f5f5f4;
  --color-bg-elevated: #e7e5e4;
  --color-text-main: #1c1917;
  --color-text-muted: #78716c;
  --color-text-dim: #a8a29e;
  --color-primary: #1c1917;
  --color-primary-hover: #292524;
  --color-border: rgba(28, 25, 23, 0.08);
  --color-border-strong: rgba(28, 25, 23, 0.16);

  /* Accent: teal — fresh, intellectual, not "AI purple" */
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --accent-dim: #99f6e4;
  --accent-bg: rgba(13, 148, 136, 0.06);
  --accent-bg-strong: rgba(13, 148, 136, 0.12);
  --accent-border: rgba(13, 148, 136, 0.2);

  /* Node colours (from app) */
  --node-blue: #3b82f6;
  --node-blue-bg: #eff6ff;
  --node-green: #22c55e;
  --node-amber: #f59e0b;

  /* Glassmorphism */
  --glass-bg: rgba(250, 250, 249, 0.75);
  --glass-border: rgba(28, 25, 23, 0.06);
  --nav-bg: rgba(250, 250, 249, 0.82);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.1);

  /* Buttons */
  --color-primary-button: #1c1917;
  --color-primary-text: #fafaf9;
  --btn-primary-shadow: 0 1px 3px rgba(28,25,23,0.12);
  --btn-primary-hover-shadow: 0 4px 12px rgba(28,25,23,0.18);
  --icon-color: #1c1917;

  /* Dot grid */
  --dot-color: rgba(28,25,23,0.06);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;

  /* Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

.dark {
  --color-bg-main: #0c0a09;
  --color-bg-subtle: #1c1917;
  --color-bg-elevated: #292524;
  --color-text-main: #fafaf9;
  --color-text-muted: #a8a29e;
  --color-text-dim: #78716c;
  --color-primary: #fafaf9;
  --color-primary-hover: #e7e5e4;
  --color-border: rgba(250,250,249,0.06);
  --color-border-strong: rgba(250,250,249,0.12);

  --accent: #2dd4bf;
  --accent-light: #5eead4;
  --accent-dim: #0f766e;
  --accent-bg: rgba(45,212,191,0.08);
  --accent-bg-strong: rgba(45,212,191,0.14);
  --accent-border: rgba(45,212,191,0.2);

  --glass-bg: rgba(12,10,9,0.8);
  --glass-border: rgba(250,250,249,0.06);
  --nav-bg: rgba(12,10,9,0.82);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.5);

  --color-primary-button: #fafaf9;
  --color-primary-text: #0c0a09;
  --btn-primary-shadow: 0 1px 3px rgba(250,250,249,0.06);
  --btn-primary-hover-shadow: 0 4px 12px rgba(250,250,249,0.1);
  --icon-color: #fafaf9;

  --dot-color: rgba(250,250,249,0.04);
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lucide { width: 20px; height: 20px; stroke-width: 1.75px; stroke: var(--icon-color); }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem; border-radius: 10px; font-weight: 550; font-size: 0.9rem;
  transition: all 0.2s ease; cursor: pointer; border: none;
  font-family: var(--font-sans); letter-spacing: -0.01em; text-decoration: none;
}

.btn-primary {
  background: var(--color-primary-button); color: var(--color-primary-text);
  box-shadow: var(--btn-primary-shadow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--btn-primary-hover-shadow); }

.btn-secondary {
  background: transparent; color: var(--color-text-main);
  border: 1px solid var(--color-border-strong);
}
.btn-secondary:hover { background: var(--color-bg-subtle); transform: translateY(-1px); }

.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 4px rgba(13,148,136,0.25);
}
.btn-accent:hover { opacity: 0.9; transform: translateY(-1px); }

/* ============================================
   Glass card
   ============================================ */

.glass-panel {
  background: var(--glass-bg); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm); border-radius: 16px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-height);
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--color-border); z-index: 100;
  display: flex; align-items: center;
}

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

.logo {
  font-weight: 700; font-size: 1.15rem; color: var(--color-text-main);
  display: flex; align-items: center; gap: 0.5rem; letter-spacing: -0.02em;
}

.nav-links { display: none; gap: 0.25rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  color: var(--color-text-muted); font-weight: 500; font-size: 0.875rem;
  padding: 0.5rem 0.75rem; border-radius: 8px; transition: all 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-text-main); background: var(--color-bg-subtle); }
.nav-links a.highlight { color: var(--accent); font-weight: 600; }

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

.nav-actions .sign-in {
  display: none; font-size: 0.875rem; font-weight: 500;
  color: var(--color-text-muted); padding: 0.5rem 0.75rem; border-radius: 8px;
}
.nav-actions .sign-in:hover { color: var(--color-text-main); }
@media (min-width: 640px) { .nav-actions .sign-in { display: block; } }

.nav-actions .btn-primary { font-size: 0.825rem; padding: 0.45rem 1rem; border-radius: 8px; }

.mobile-menu-btn {
  display: block; background: none; border: none; cursor: pointer;
  padding: 0.4rem; color: var(--color-text-main); border-radius: 6px;
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* Theme toggle */
.theme-toggle-btn {
  background: transparent; border: none; cursor: pointer; color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  padding: 0.4rem; border-radius: 8px; transition: all 0.15s ease;
}
.theme-toggle-btn:hover { color: var(--color-text-main); background: var(--color-bg-subtle); }
.theme-toggle-btn i { width: 18px; height: 18px; }
:root .moon-icon { display: block; }  :root .sun-icon { display: none; }
.dark .moon-icon { display: none; }   .dark .sun-icon { display: block; }

/* ============================================
   Section system
   ============================================ */

.section { padding: 5rem 0; position: relative; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem; font-weight: 750; margin-bottom: 1rem;
  letter-spacing: -0.035em; line-height: 1.1;
}

.section-subtitle {
  font-size: 1.1rem; color: var(--color-text-muted); max-width: 40rem;
  margin: 0 auto; line-height: 1.65;
}

/* ============================================
   Footer
   ============================================ */

.footer { border-top: 1px solid var(--color-border); padding: 3.5rem 0 2rem; background: var(--color-bg-main); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-bottom: 2rem; }
.footer-nav a { color: var(--color-text-muted); font-size: 0.85rem; transition: color 0.15s; }
.footer-nav a:hover { color: var(--color-text-main); }
.footer-bottom { text-align: center; color: var(--color-text-dim); font-size: 0.78rem; }

/* ============================================
   Mac Window
   ============================================ */

.mac-window {
  position: relative; width: 100%; margin: 0 auto;
  border-radius: 12px; background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong); box-shadow: var(--shadow-xl);
  overflow: hidden; transition: all 0.3s var(--ease-out-expo);
}

.mac-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--glass-bg); border-bottom: 1px solid var(--color-border);
}

.mac-dot { width: 12px; height: 12px; border-radius: 50%; }
.mac-dot.close { background: #ff5f56; }
.mac-dot.minimize { background: #ffbd2e; }
.mac-dot.maximize { background: #27c93f; }

.mac-body { width: 100%; background: #050505; aspect-ratio: 16/9; }
.mac-body video {
  width: 100%; height: 100%; display: block;
  object-fit: cover; outline: none;
}

/* ============================================
   Video Modal
   ============================================ */

.video-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.video-modal.active { opacity: 1; pointer-events: auto; }
.video-modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); }
.video-modal-content {
  position: relative; width: 90%; max-width: 1000px; border-radius: 1rem; overflow: hidden;
  transform: translateY(20px) scale(0.95); transition: transform 0.3s var(--ease-out-expo);
}
.video-modal.active .video-modal-content { transform: translateY(0) scale(1); }
.close-demo {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  background: rgba(0,0,0,0.5); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ============================================
   Dot grid
   ============================================ */

.bg-dot-grid {
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes showcase-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   Mobile
   ============================================ */

@media (max-width: 768px) {
  html { font-size: 14px; }
  .container { padding: 0 1.25rem; }
  .btn { padding: 0.6rem 1.15rem !important; font-size: 0.85rem; }
  .section { padding: 3rem 0; }
  h1, .section-title { font-size: 2rem !important; line-height: 1.2 !important; }
  .section-subtitle { font-size: 0.95rem; }
  .nav-actions { gap: 0.35rem; }
  .nav-actions .btn-primary { padding: 0.4rem 0.75rem; font-size: 0.78rem; }

  body.menu-open { overflow: hidden; }
  body.menu-open .nav-links {
    display: flex; flex-direction: column; position: fixed;
    top: var(--header-height); left: 0; right: 0;
    height: calc(100vh - var(--header-height));
    background: var(--color-bg-main); padding: 2rem 1.5rem;
    gap: 0.5rem; align-items: stretch; z-index: 999;
  }
  body.menu-open .nav-links a { font-size: 1.1rem; padding: 1rem; border-radius: 10px; }

  .footer { padding: 2rem 0 1.5rem; }
  .footer-nav { flex-direction: column; align-items: center; gap: 1rem; }
}
