/* ============================================
   SkillStreams.ai — Global Stylesheet
   Matching intelligently.ai aesthetic:
   Clean, professional, modern AI/tech brand
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Primary palette — deep navy + electric teal (matching intelligently.ai's professional AI aesthetic) */
  --color-primary: #0f2b46;
  --color-primary-light: #163d5e;
  --color-accent: #00b4d8;
  --color-accent-light: #48cae4;
  --color-accent-dark: #0096b7;

  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --color-bg-dark: #0a1929;
  --color-text: #2c3e50;
  --color-text-light: #5a6c7d;
  --color-text-muted: #8899aa;
  --color-border: #dde4eb;

  /* Success / highlight */
  --color-success: #10b981;
  --color-warning: #f59e0b;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

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

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-primary);
  color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: rgba(255,255,255,0.85);
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header .subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-header .subtitle {
  color: rgba(255,255,255,0.75);
}

/* Badge / Label */
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0, 180, 216, 0.1);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-dark .badge {
  background: rgba(0, 180, 216, 0.2);
  color: var(--color-accent-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

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

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--color-primary);
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.navbar-brand .brand-dot {
  color: var(--color-accent);
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(160deg, var(--color-bg-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.15;
}

.hero h1 .highlight {
  color: var(--color-accent-light);
}

.hero .hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Floating grid pattern behind hero */
.hero-grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Cards --- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(0, 180, 216, 0.3);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  color: var(--color-accent);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(0, 180, 216, 0.3);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.blog-card-image .card-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 30px 30px;
}

.blog-card-image .card-icon-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255,255,255,0.4);
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card-body h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.blog-card-body h3 a:hover {
  color: var(--color-accent-dark);
}

.blog-card-body p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  flex: 1;
}

.blog-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.read-more:hover {
  color: var(--color-accent);
  gap: 0.6rem;
}

/* --- Blog Post Page --- */
.blog-post-header {
  padding: 9rem 0 4rem;
  background: linear-gradient(160deg, var(--color-bg-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: #ffffff;
}

.blog-post-header .badge {
  margin-bottom: 1.2rem;
}

.blog-post-header h1 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.blog-post-header .post-meta {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.blog-post-content {
  padding: 4rem 0;
}

.blog-post-content .container-narrow {
  font-size: 1.05rem;
  line-height: 1.85;
}

.blog-post-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.6rem;
}

.blog-post-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.3rem;
}

.blog-post-content p {
  margin-bottom: 1.3rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-light);
}

.blog-post-content .callout {
  background: rgba(0, 180, 216, 0.06);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.blog-post-content .callout h4 {
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

/* Comparison table in blog */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.comparison-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: var(--color-bg-alt);
}

/* --- Demo Section / Password Gate --- */
.demo-gate {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.demo-gate .lock-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--color-accent);
}

.demo-gate h2 {
  margin-bottom: 0.75rem;
}

.demo-gate p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.demo-form {
  display: flex;
  gap: 0.75rem;
}

.demo-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.demo-form input:focus {
  border-color: var(--color-accent);
}

.demo-form button {
  white-space: nowrap;
}

.demo-error {
  color: #e74c3c;
  font-size: 0.88rem;
  margin-top: 0.75rem;
  display: none;
}

.demo-error.show {
  display: block;
}

/* Demo area (behind gate) */
.demo-area {
  display: none;
}

.demo-area.visible {
  display: block;
}

.demo-area-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.demo-area-cta .btn { margin-bottom: 1rem; }

.demo-cta-note {
  color: var(--color-text-light);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto;
}

/* Login block on demos page (same as app login) */
.demos-login-wrap {
  max-width: 440px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.demos-login-wrap .auth-box { max-width: none; padding: 0; box-shadow: none; }
.demos-login-wrap .auth-box h1 { color: var(--color-primary); margin-bottom: 1.25rem; font-size: 1.35rem; }
.demos-login-wrap .auth-tabs { display: flex; gap: 8px; margin-bottom: 1.25rem; }
.demos-login-wrap .auth-tab { padding: 8px 16px; border: 1px solid var(--color-primary); background: #f4f7fa; color: var(--color-primary); cursor: pointer; border-radius: 4px; font-size: 0.95rem; }
.demos-login-wrap .auth-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.demos-login-wrap .auth-form { display: none; }
.demos-login-wrap .auth-form.active { display: block; }
.demos-login-wrap .auth-form input { width: 100%; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--color-border); border-radius: 4px; box-sizing: border-box; font-size: 1rem; }
.demos-login-wrap .auth-form button { width: 100%; padding: 12px; background: var(--color-primary); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.demos-login-wrap .auth-form button:hover { background: var(--color-primary-light); }
.demos-login-wrap .auth-error { color: #c00; font-size: 13px; margin-bottom: 12px; }

/* Integrated login: no box, flows with page */
.auth-integrated {
  max-width: 440px;
  margin: 3rem 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.auth-integrated .auth-box h2 { color: var(--color-primary); font-size: 1.4rem; margin-bottom: 1.25rem; }
.auth-integrated .auth-tabs { display: flex; gap: 8px; margin-bottom: 1.25rem; }
.auth-integrated .auth-tab {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  background: transparent;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
}
.auth-integrated .auth-tab:hover { color: var(--color-primary); }
.auth-integrated .auth-tab.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.auth-integrated .auth-tab.active:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}
.auth-integrated .auth-form input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
}
.auth-integrated .auth-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.auth-integrated .auth-form button {
  width: 100%;
  padding: 0.7rem 1.2rem;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.auth-integrated .auth-form button:hover { background: var(--color-accent-dark); color: #fff; }

.demo-placeholder {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
}

.demo-placeholder .placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.demo-placeholder h3 {
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.demo-placeholder p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* --- Features / Values Section --- */
.feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-row .feature-text {
  flex: 1;
}

.feature-row .feature-visual {
  flex: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-row .feature-visual .pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 40px 40px;
}

.feature-row .feature-visual .visual-text {
  color: rgba(255,255,255,0.5);
  font-size: 4rem;
  font-weight: 800;
  position: relative;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent-light);
  display: block;
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.3rem;
}

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-bg-dark) 100%);
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

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

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

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

.footer-brand .navbar-brand {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-powered-logo {
  height: 18px;
  width: auto;
  vertical-align: middle;
  margin-left: 2px;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { flex-direction: column !important; gap: 2rem; }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 1rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .hero { padding: 8rem 0 4rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .demo-form { flex-direction: column; }

  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .stats-row { grid-template-columns: 1fr; }
}

/* --- Utility classes --- */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
