﻿/* ============================================================
   Learpy — main.css
   Dark EdTech / AI Learning Platform theme
   ============================================================ */

/* ----------------------------------------------------------
   CSS Variables
   ---------------------------------------------------------- */
:root {
  --bg:           #0d1117;
  --bg2:          #0a0e15;
  --surface:      #161b22;
  --surface2:     #1c2230;
  --text:         #e6edf3;
  --text-muted:   #8b949e;
  --accent:       #4f8ef7;
  --accent-dark:  #3a75e0;
  --accent-glow:  rgba(79,142,247,0.18);
  --border:       rgba(255,255,255,0.08);
  --radius:       12px;
  --radius-sm:    8px;
  --gap:          3em;
  --nav-height:   4.5em;
  --funding-bar-h: 0px;
}

/* ----------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.2em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

section { padding: 6em 2em; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ----------------------------------------------------------
   Funding Bar
   ---------------------------------------------------------- */
#funding-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--accent);
  color: #fff;
  width: 100%;
  padding: 0.55em 3em 0.55em 1.5em;
  font-size: 0.82em;
  letter-spacing: 0.04em;
  box-sizing: border-box;
  text-align: center;
  z-index: 10001;
}

#funding-bar a {
  color: #fff;
  text-decoration: none;
  display: block;
  width: 100%;
}

#funding-bar a:hover { color: rgba(255,255,255,0.9); }

#funding-bar .bar-close {
  position: absolute;
  right: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 0.75em;
  cursor: pointer;
  line-height: 1;
  padding: 0.15em 0.35em;
  opacity: 0.85;
}

#funding-bar .bar-close:hover { opacity: 1; }

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */
#nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2.5em;
  position: fixed;
  top: var(--funding-bar-h, 0px);
  left: 0; right: 0;
  width: 100%;
  min-height: var(--nav-height);
  z-index: 9999;
  background-color: rgba(13,17,23,0.97);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: top 0.25s ease;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img { height: 34px; width: auto; display: block; }

#nav > ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  gap: 0;
}

#nav > ul > li > a {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 1.2em;
  color: rgba(255,255,255,0.7);
  font-size: 0.75em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

#nav > ul > li > a:hover,
#nav > ul > li.current > a {
  color: #ffffff;
}

#nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  margin-left: 1em;
  padding: 0.5em 1.2em !important;
  height: auto !important;
  font-size: 0.75em !important;
  transition: background 0.2s;
}

#nav .nav-cta:hover { background: var(--accent-dark) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  cursor: pointer;
  padding: 0.5em;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--nav-height) + var(--funding-bar-h, 0px));
  left: 0; right: 0;
  background: rgba(13,17,23,0.98);
  border-bottom: 1px solid var(--border);
  z-index: 9998;
  padding: 1em 2em 2em;
}

#mobile-menu.open { display: block; }

#mobile-menu ul { list-style: none; padding: 0; margin: 0; }
#mobile-menu ul li a {
  display: block;
  padding: 0.8em 0;
  color: var(--text);
  font-size: 0.9em;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.05em;
}

/* ----------------------------------------------------------
   Page Wrapper
   ---------------------------------------------------------- */
#page-wrapper {
  padding-top: calc(var(--nav-height) + var(--funding-bar-h, 0px));
}

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--bg2) 0%, #0d1b3e 60%, var(--bg) 100%);
  padding: 8em 2em 7em;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url('../images/hero-main.jpg');
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(5,15,40,0.30);
  background-blend-mode: multiply;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(79,142,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero > * {
  position: relative;
  z-index: 2;
}


.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(79,142,247,0.3);
  border-radius: 20px;
  padding: 0.35em 1.1em;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5em;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1em;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--accent); }

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5em;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.8em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(79,142,247,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.btn-lg {
  padding: 0.9em 2.2em;
  font-size: 1rem;
}

/* ----------------------------------------------------------
   Section Headers
   ---------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5em;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}

.section-header h2 {
  margin-bottom: 0.6em;
  color: var(--text);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ----------------------------------------------------------
   Feature Cards Grid
   ---------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(79,142,247,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4em;
  font-size: 1.4em;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6em;
  color: var(--text);
}

.feature-card p {
  font-size: 0.92em;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

/* ----------------------------------------------------------
   Stats Strip
   ---------------------------------------------------------- */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4em 2em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25em;
}

.stat-item .stat-label {
  font-size: 0.85em;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   How It Works
   ---------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
  counter-reset: steps;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  position: relative;
  counter-increment: steps;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-glow);
  color: rgba(79,142,247,0.2);
  line-height: 1;
  margin-bottom: 0.8em;
}

.step-card h3 { margin-bottom: 0.5em; }

/* ----------------------------------------------------------
   Testimonials
   ---------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  display: flex;
  flex-direction: column;
}

.testimonial-card blockquote {
  font-size: 0.97em;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 1.5em;
  position: relative;
  padding-left: 1.2em;
  border-left: 2px solid var(--accent);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1em;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover; object-position: 50% 20%;
}

.testimonial-author .author-name {
  font-weight: 700;
  font-size: 0.9em;
  color: var(--text);
}

.testimonial-author .author-role {
  font-size: 0.8em;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   Pricing Cards
   ---------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card.featured {
  border-color: var(--accent);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.9em;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79,142,247,0.5);
}

.plan-name {
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6em;
}

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 0.2em;
  margin-bottom: 0.5em;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.price-period {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-bottom: 0.3em;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4em;
}

.plan-desc {
  font-size: 0.88em;
  color: var(--text-muted);
  margin-bottom: 1.8em;
  line-height: 1.55;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2em;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: 0.88em;
  color: var(--text);
  padding: 0.45em 0;
  border-bottom: 1px solid var(--border);
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.plan-features li.not-included {
  color: var(--text-muted);
  text-decoration: none;
}

.plan-features li.not-included::before {
  content: '–';
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   Team Grid
   ---------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em 1.5em;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.team-card:hover {
  border-color: rgba(79,142,247,0.3);
  transform: translateY(-3px);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 10%;
  display: block;
  margin: 0 auto 1.2rem;
}

.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25em;
}

.team-role {
  font-size: 0.82em;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}

.team-bio {
  font-size: 0.85em;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------------
   Blog / Article Listing
   ---------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: rgba(79,142,247,0.3);
  transform: translateY(-2px);
}

.article-card.pinned {
  border-left: 3px solid var(--accent, #4f8ef7);
  background: rgba(79,142,247,0.06);
}

.article-card .card-meta {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.8em;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  background: var(--surface2);
  color: var(--text-muted);
  padding: 0.2em 0.65em;
  border-radius: 4px;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag.funding {
  background: var(--accent, #4f8ef7);
  color: #fff;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
}

.article-card time {
  font-size: 0.78em;
  color: var(--text-muted);
}

.article-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.6em;
}

.article-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.article-card h2 a:hover { color: var(--accent); }

.article-card p {
  font-size: 0.875em;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.2em;
}

.article-card .read-more {
  font-size: 0.82em;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: auto;
}

/* ----------------------------------------------------------
   Article Content Page
   ---------------------------------------------------------- */
.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 5em 2em 6em;
}

.article-wrap .article-header {
  margin-bottom: 2.5em;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--border);
}

.article-wrap .article-header .article-meta {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.article-wrap h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.6em;
  color: var(--text);
  line-height: 1.15;
}

.article-wrap .article-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.article-body h2 { font-size: 1.5rem; margin: 2.2em 0 0.7em; color: var(--text); }
.article-body h3 { font-size: 1.2rem; margin: 1.8em 0 0.6em; color: var(--text); }
.article-body p { color: var(--text-muted); font-size: 1rem; line-height: 1.78; margin-bottom: 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 0.4em; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1em 1.5em;
  margin: 2em 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body blockquote p { font-size: 1.05rem; font-style: italic; color: var(--text); }

.article-back {
  margin-bottom: 2em;
  font-size: 0.85em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

/* ----------------------------------------------------------
   Page Hero (inner pages)
   ---------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, #0d1b3e 60%, var(--bg) 100%);
  padding: 7em 2em 5em;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,142,247,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 { font-size: 2.8rem; font-weight: 800; color: #fff; margin-bottom: 0.5em; }
.page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 580px; margin: 0 auto; }

/* ----------------------------------------------------------
   Contact
   ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4em;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 { margin-bottom: 0.6em; font-size: 1.15rem; }
.contact-info p { font-size: 0.9em; margin-bottom: 1.5em; }

.contact-detail {
  display: flex;
  gap: 0.8em;
  margin-bottom: 1.2em;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.82em;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15em;
}

.contact-detail-text span {
  font-size: 0.9em;
  color: var(--text);
}

.contact-form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 2em;
}

.form-group { margin-bottom: 1.3em; }
.form-group label {
  display: block;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.75em 1em;
  font-size: 0.9em;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 110px; }

/* ----------------------------------------------------------
   CTA Section
   ---------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, #0d1b3e 0%, var(--bg2) 100%);
  text-align: center;
  padding: 7em 2em;
  border-top: 1px solid var(--border);
}

.cta-section h2 { font-size: 2.2rem; margin-bottom: 0.7em; color: #fff; }
.cta-section p { font-size: 1.05rem; color: var(--text-muted); max-width: 540px; margin: 0 auto 2.2em; }

/* ----------------------------------------------------------
   Investor / About Blocks
   ---------------------------------------------------------- */
.investor-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.investor-block .investor-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.3em;
}

.investor-block .investor-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3em;
}

.investor-block p { font-size: 0.9em; color: var(--text-muted); }

/* ----------------------------------------------------------
   Legal Pages
   ---------------------------------------------------------- */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 5em 2em 6em;
}

.legal-wrap h1 { font-size: 2.2rem; margin-bottom: 0.5em; }
.legal-wrap .legal-date {
  font-size: 0.82em;
  color: var(--text-muted);
  margin-bottom: 3em;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--border);
}
.legal-wrap h2 { font-size: 1.3rem; margin: 2.5em 0 0.7em; color: var(--text); }
.legal-wrap h3 { font-size: 1.1rem; margin: 1.8em 0 0.5em; color: var(--text); }
.legal-wrap p { font-size: 0.93em; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.2em; }
.legal-wrap ul { list-style: disc; padding-left: 1.8em; margin-bottom: 1.2em; }
.legal-wrap li { font-size: 0.93em; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.35em; }
.legal-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.88em;
}
.legal-wrap th, .legal-wrap td {
  text-align: left;
  padding: 0.8em 1em;
  border: 1px solid var(--border);
}
.legal-wrap th {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
.legal-wrap td { color: var(--text-muted); }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
#footer {
  background: var(--bg2);
  padding: 4em 2em 2em;
  border-top: 1px solid var(--border);
}

#footer .inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 3em;
  flex-wrap: wrap;
  padding-bottom: 2.5em;
  border-bottom: 1px solid var(--border);
}

#footer .footer-brand {
  flex: 1.5;
  min-width: 220px;
}

#footer .footer-brand .footer-logo img {
  height: 32px;
  margin-bottom: 1em;
}

#footer .footer-brand p {
  font-size: 0.85em;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
}

#footer section {
  flex: 1;
  min-width: 160px;
}

#footer section h3 {
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2em;
}

#footer .footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2.4;
}

#footer .footer-nav a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875em;
  transition: color 0.2s;
}

#footer .footer-nav a:hover { color: #fff; }

#footer .copyright {
  max-width: 1100px;
  margin: 1.8em auto 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ----------------------------------------------------------
   Cookie Banner
   ---------------------------------------------------------- */
#cookie-banner {
  background: var(--surface);
  color: var(--text);
  padding: 1.2em 2em;
  border-top: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}

#cookie-banner p {
  margin: 0;
  font-size: 0.88em;
  color: var(--text-muted);
}

#cookie-banner a { color: var(--accent); }

#cookie-banner .cookie-actions {
  display: flex;
  gap: 0.7em;
  flex-shrink: 0;
}

#cookie-banner button {
  border: none;
  padding: 0.45em 1.2em;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
  font-family: inherit;
  font-weight: 600;
}

#cookie-banner #cookie-accept {
  background: var(--accent);
  color: #fff;
}

#cookie-banner #cookie-accept:hover { background: var(--accent-dark); }

#cookie-banner #cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ----------------------------------------------------------
   Product Page
   ---------------------------------------------------------- */
.product-tabs {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3em;
}

.product-tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 0.55em 1.3em;
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.product-tab-btn.active,
.product-tab-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ----------------------------------------------------------
   Highlight List
   ---------------------------------------------------------- */
.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-list li {
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
  padding: 0.9em 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92em;
  color: var(--text);
}

.highlight-list li:last-child { border-bottom: none; }

.highlight-list li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ----------------------------------------------------------
   Utilities
   ---------------------------------------------------------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 1em; }
.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }
.alt-bg { background: var(--surface); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4em auto;
  max-width: 1100px;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 980px) {
  #nav > ul { display: none; }
  .nav-toggle { display: flex; }
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  
.hero { padding: 6em 1.5em 5em; }
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 1rem; }
  section { padding: 4em 1.5em; }
  .features-grid,
  .steps-grid,
  .testimonials-grid,
  .pricing-grid,
  .team-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  #footer .inner { flex-direction: column; }
  .article-wrap { padding: 3em 1.5em 4em; }
  .article-wrap h1 { font-size: 1.8rem; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .page-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}





/* Hero contrast overlay — WCAG AA (R-IMG8) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}

/* Hero text contrast — force readable white (R-IMG8) */
.hero p,
.hero .hero-stat .label,
.hero .stat-label,
.hero .hero-subtitle,
.hero .text-muted {
  color: rgba(255,255,255,0.82);
}
