/* Bitblade Solutions – bitblade.de
   Design System: bitblade.io alignment
   Colors: #38BDF8 Sky Blue, #818CF8 Indigo, Dark Theme
   Fonts: Inter (body), Space Grotesk (headings)
   UPDATED: 2026-04-26 – Navbar opacity fix
*/

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

:root {
  --bg-primary: #060A14;
  --bg-secondary: #0C1222;
  --bg-card: #101828;
  --bg-card-hover: #141F30;
  --accent-blue: #38BDF8;
  --accent-indigo: #818CF8;
  --accent-cyan: #22D3EE;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #475569;
  --border-color: rgba(56, 189, 248, 0.12);
  --border-hover: rgba(56, 189, 248, 0.35);
  --gradient-main: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(56,189,248,0.15) 0%, rgba(129,140,248,0.15) 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --nav-height: 72px;
  --max-width: 1200px;
}

[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-color: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(56, 189, 248, 0.35);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.8rem; }

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-indigo); }

img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVIGATION – SOLID BACKGROUND (no transparency) ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #060A14 !important;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background var(--transition);
}

[data-theme="light"] .nav {
  background: #FFFFFF !important;
}

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

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.5rem;
  background: var(--gradient-main);
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  -webkit-text-fill-color: #fff !important;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
  color: #fff !important;
}

/* ===== NAV ACTIONS (toggle + hamburger) ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background var(--transition);
  z-index: 1002;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Dark mode (default): show moon, hide sun */
.icon-sun { display: none; }
.icon-moon { display: inline; }

/* Light mode: show sun, hide moon */
[data-theme="light"] .icon-sun { display: inline; }
[data-theme="light"] .icon-moon { display: none; }

/* Smooth theme transition */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(56,189,248,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(129,140,248,0.06) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gradient-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  background: var(--gradient-subtle);
  color: var(--text-primary);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h3 a {
  color: var(--text-primary);
}
.card h3 a:hover {
  color: var(--accent-blue);
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 2rem;
}

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

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== FEATURE LIST ===== */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(56,189,248,0.06);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(56,189,248,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-blue); }

/* ===== SEO CONTENT ===== */
.seo-content {
  max-width: 900px;
  margin: 0 auto;
}

.seo-content h2 {
  margin-top: 3rem;
}

.seo-content h3 {
  margin-top: 2rem;
  color: var(--accent-blue);
}

.seo-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.seo-content ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.seo-content ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.seo-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: calc(var(--nav-height) + 3rem);
}

.legal-content h1 {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  color: var(--accent-blue);
}

.legal-content p,
.legal-content address {
  color: var(--text-secondary);
  font-style: normal;
  line-height: 1.8;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(56,189,248,0.06) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(129,140,248,0.04) 0%, transparent 50%);
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { font-size: 1.15rem; max-width: 600px; }

/* ===== TWO COLUMN LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ===== PARTNER BADGE ===== */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--gradient-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--accent-indigo);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ===== ACCORDION (FAQ style) ===== */
.accordion { margin: 2rem 0; }

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header:hover { background: var(--bg-card-hover); }

.accordion-body {
  padding: 0 1.5rem 1.25rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  
  /* MOBILE MENU – fully opaque, no content bleed-through */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #060A14 !important;
    opacity: 1 !important;
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    border-top: 1px solid var(--border-color);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  [data-theme="light"] .nav-links {
    background: #FFFFFF !important;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  [data-theme="light"] .nav-links li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }

  .nav-links .nav-cta {
    display: inline-block;
    margin-top: 1rem;
    text-align: center;
  }

  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse { direction: ltr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  
  section { padding: 4rem 0; }
  .cta-section { padding: 2.5rem 1.5rem; }
  .hero { min-height: auto; padding: calc(var(--nav-height) + 3rem) 0 3rem; }
}

/* ===== PARTNER BADGE ===== */
.partner-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: var(--radius-pill);
  color: var(--accent-indigo);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card .partner-badge {
  margin-bottom: 0.75rem;
}

/* ===== UTILITY ===== */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
