/* ===== CSS Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Tahoma, 'Trebuchet MS', Arial, sans-serif; color: #E6EEF5; background-color: #0B1220; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #00E5FF; text-decoration: none; }
a:hover { text-decoration: underline; }
:root {
  --primary: #1F3B4D;
  --secondary: #C69217;
  --accent: #F4F7FA;
  --bg: #0B1220;
  --bg-elev: #0F1726;
  --text: #E6EEF5;
  --muted: #9FB1C3;
  --neon: #00E5FF;
  --neon2: #7C4DFF;
  --success: #16C79A;
  --danger: #FF5C77;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: 'Trebuchet MS', Verdana, Tahoma, sans-serif; color: #FFFFFF; letter-spacing: 0.2px; margin: 0 0 12px; }
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.35; color: #DDE7F0; }
p { margin: 0 0 12px; color: var(--text); }
.small { font-size: 14px; color: var(--muted); }

/* ===== Layout Containers (Flex-only) ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; background-color: rgba(16, 24, 38, 0.6); border: 1px solid rgba(0, 229, 255, 0.14); border-radius: 16px; padding: 24px; box-shadow: 0 10px 24px rgba(0,0,0,0.35); position: relative; }

/* Mandatory spacing class provided */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Also apply comfortable spacing to semantic sections */
section { margin-bottom: 60px; padding: 40px 0; }

/* Content groupings */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--bg-elev); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

/* ===== Header & Navigation ===== */
header { background: rgba(15, 23, 38, 0.9); border-bottom: 1px solid rgba(124, 77, 255, 0.25); backdrop-filter: saturate(140%) blur(6px); position: sticky; top: 0; z-index: 1000; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; }
.logo img { height: 40px; width: auto; filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.2)); }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: #DDE7F0; padding: 8px 10px; border-radius: 8px; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.main-nav a[aria-current="page"], .main-nav a:hover { background: rgba(0, 229, 255, 0.1); color: #FFFFFF; box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25) inset; }

/* Mobile menu trigger */
.mobile-menu-toggle { background: transparent; color: #FFFFFF; font-size: 24px; line-height: 1; padding: 8px 12px; border: 1px solid rgba(0,229,255,0.45); border-radius: 10px; cursor: pointer; transition: transform 200ms ease, box-shadow 200ms ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: 0 0 12px rgba(0,229,255,0.35); }

/* Mobile menu panel */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 86%; max-width: 360px; background: #0F1726; border-left: 1px solid rgba(0,229,255,0.25); box-shadow: -8px 0 24px rgba(0,0,0,0.5); transform: translateX(100%); transition: transform 320ms ease; z-index: 2000; display: flex; flex-direction: column; gap: 16px; padding: 16px; }
/* Allow multiple possible toggled states */
.mobile-menu.open, .mobile-menu.active, .mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; background: transparent; color: #FFFFFF; font-size: 22px; border: 1px solid rgba(124, 77, 255, 0.45); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 8px 4px; }
.mobile-nav a { color: #E6EEF5; padding: 12px 10px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.mobile-nav a:hover { background: rgba(0, 229, 255, 0.12); border-color: rgba(0,229,255,0.3); }

/* ===== Hero ===== */
.hero { background-color: var(--bg); background-image: linear-gradient(180deg, rgba(0,229,255,0.06), rgba(124,77,255,0.06)); padding-top: 30px; padding-bottom: 10px; }
.hero .content-wrapper { padding: 28px 24px; border: 1px solid rgba(198,146,23,0.25); background-color: rgba(16, 24, 38, 0.65); }
.hero h1 { font-size: 32px; }
.subheadline { color: #C9D7E4; font-size: 16px; }

/* ===== Lists & Text blocks ===== */
.text-section { display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 16px; }
.text-section ul, .text-section ol { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.text-section ul li, .text-section ol li { position: relative; padding-left: 22px; color: var(--text); }
.text-section ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px rgba(0,229,255,0.85); }
.text-section ol { counter-reset: item; }
.text-section ol li { counter-increment: item; }
.text-section ol li::before { content: counter(item) "."; position: absolute; left: 0; top: 0; color: var(--secondary); font-weight: bold; }

/* Trust badges */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 10px 0 0; padding: 0; }
.trust-badges li { color: #BBD1E2; font-size: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(0,229,255,0.16); padding: 8px 10px; border-radius: 10px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; letter-spacing: 0.2px; cursor: pointer; transition: transform 160ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 10px; }
.btn.primary { background: var(--secondary); color: #0B1220; box-shadow: 0 6px 18px rgba(198,146,23,0.35); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(198,146,23,0.45); }
.btn.secondary { background: transparent; color: var(--neon); border-color: rgba(0,229,255,0.5); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
.btn.secondary:hover { background: rgba(0,229,255,0.1); box-shadow: 0 0 14px rgba(0,229,255,0.35); }
.btn.link { background: transparent; color: #FFFFFF; padding: 8px 0; border: none; border-bottom: 1px solid rgba(0,229,255,0.4); border-radius: 0; }
.btn.link:hover { color: var(--neon); border-bottom-color: rgba(0,229,255,0.7); }

/* CTA grouping */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ===== Testimonials (must be readable) ===== */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--accent); color: var(--primary); border: 1px solid rgba(31,59,77,0.2); border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,0.15); }
.testimonial-card p { color: #172430; }
.testimonial-card strong { color: #0E1A22; }
.testimonial-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,0.18); }

/* ===== Footer ===== */
footer { background: #0A111D; border-top: 1px solid rgba(124,77,255,0.2); }
footer .content-wrapper { background: transparent; border: none; box-shadow: none; padding: 24px 0; }
footer .text-section { background: transparent; border: none; padding: 0; }
footer a { color: #C9D7E4; }
footer a:hover { color: #FFFFFF; }

/* ===== Utilities & Micro-interactions ===== */
.hover-lift { transition: transform 180ms ease, box-shadow 200ms ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
.neon-sep { height: 1px; width: 100%; background: linear-gradient(90deg, rgba(0,229,255,0), rgba(0,229,255,0.6), rgba(0,229,255,0)); }

/* ===== Links inside blocks ===== */
.text-section a { color: var(--neon); }
.text-section a:hover { color: #6FEAFF; }

/* ===== Mobile-first Responsive ===== */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .subheadline { font-size: 18px; }
  .hero .content-wrapper { padding: 36px 32px; }
}
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  .content-wrapper { padding: 28px; }
  .text-image-section { flex-direction: row; }
  footer .content-wrapper { display: flex; flex-direction: row; flex-wrap: wrap; gap: 24px 40px; }
}

/* Ensure column layout on small screens for text-image combos */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
}

/* ===== Accessibility: Focus states ===== */
:focus-visible { outline: 2px solid var(--neon2); outline-offset: 2px; }

/* ===== Optional Decorative Accents ===== */
.content-wrapper::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 2px; background: linear-gradient(90deg, rgba(124,77,255,0), rgba(124,77,255,0.45), rgba(124,77,255,0)); pointer-events: none; }

/* ===== Tables & Generic Elements (if any appear) ===== */
table { width: 100%; border-collapse: collapse; border: 1px solid rgba(255,255,255,0.08); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { background: rgba(0,0,0,0.2); color: #FFFFFF; }

/* ===== Forms (generic) ===== */
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(0,229,255,0.25); background: #0E1626; color: #E6EEF5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(0,229,255,0.6); box-shadow: 0 0 0 3px rgba(0,229,255,0.15); }
label { color: #DDE7F0; margin-bottom: 6px; display: inline-block; }

/* ===== Mandatory Flex Gaps to prevent overlapping ===== */
header, main, footer, .content-grid, .card-container, .text-image-section, .testimonial-card, .feature-item, .cta-group { gap: 20px; }

/* ===== Specific spacing for lists to avoid crowding ===== */
.text-section h3 { margin-top: 4px; }
.text-section p + h3 { margin-top: 12px; }

/* ===== Hero spacing adjustment ===== */
.hero .container { padding-top: 10px; padding-bottom: 10px; }

/* ===== Nav link in footer columns ===== */
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

/* ===== Active states for nav ===== */
.main-nav .btn.primary { margin-left: 8px; }

/* ===== Cookie Consent Banner ===== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #0F1726; color: #E6EEF5; border-top: 1px solid rgba(0,229,255,0.25); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; z-index: 3000; transform: translateY(100%); opacity: 0; transition: transform 280ms ease, opacity 280ms ease; }
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-text { flex: 1 1 260px; }
.cookie-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cookie-actions .btn { padding: 10px 14px; border-radius: 10px; }
.cookie-accept { background: var(--secondary); color: #0B1220; border-color: var(--secondary); }
.cookie-accept:hover { box-shadow: 0 8px 18px rgba(198,146,23,0.4); }
.cookie-reject { background: transparent; color: #FFB4C1; border-color: rgba(255,92,119,0.6); }
.cookie-reject:hover { background: rgba(255,92,119,0.12); }
.cookie-settings { background: transparent; color: var(--neon); border-color: rgba(0,229,255,0.6); }
.cookie-settings:hover { background: rgba(0,229,255,0.12); }

/* Cookie Preferences Modal */
.cookie-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); z-index: 4000; opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal .modal-content { width: 92%; max-width: 640px; background: #0F1726; color: #E6EEF5; border: 1px solid rgba(0,229,255,0.25); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 8px; }
.cookie-modal .category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.cookie-modal .category:last-child { border-bottom: none; }

/* Toggle switch */
.switch { position: relative; width: 44px; height: 26px; background: #122032; border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; display: flex; align-items: center; padding: 2px; transition: background-color 200ms ease, border-color 200ms ease; }
.switch .knob { width: 20px; height: 20px; background: #C9D7E4; border-radius: 50%; transition: transform 200ms ease, background-color 200ms ease; }
.switch.on { background: rgba(0,229,255,0.18); border-color: rgba(0,229,255,0.6); }
.switch.on .knob { transform: translateX(18px); background: #00E5FF; box-shadow: 0 0 10px rgba(0,229,255,0.65); }
.switch.off .knob { transform: translateX(0); }

/* ===== Accessibility helpers for cookie modal buttons ===== */
.cookie-modal .btn { align-self: flex-end; }

/* ===== Anchors in light cards (testimonials) ===== */
.testimonial-card a { color: #0F3D57; }
.testimonial-card a:hover { color: #0B2B3D; text-decoration: underline; }

/* ===== Images in text sections (icons) ===== */
.text-section img { display: inline-block; vertical-align: middle; margin-right: 8px; filter: drop-shadow(0 0 4px rgba(0,229,255,0.25)); }

/* ===== Prevent content overlap & ensure spacing ===== */
main > section .container > .content-wrapper > * + * { margin-top: 0; }

/* ===== High contrast badges ===== */
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,229,255,0.12); color: #CFEAFA; border: 1px solid rgba(0,229,255,0.4); padding: 6px 10px; border-radius: 999px; font-size: 12px; }

/* ===== Print-safe fallback colors (basic) ===== */
@media print {
  body { background: #FFFFFF; color: #000000; }
  header, footer, .hero, .content-wrapper, .text-section, .card, .testimonial-card { box-shadow: none; background: #FFFFFF; color: #000000; border-color: #999; }
  a { color: #0000EE; }
}

/* ===== Desktop subtle polish ===== */
@media (min-width: 1200px) {
  .container { padding: 0 24px; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* ===== Ensure ALL layout blocks use flex (no grid) ===== */
header, main, footer { display: flex; flex-direction: column; }
main { gap: 0; }

/* ===== Additional Classes present in HTML (for consistency) ===== */
.hero .cta-group { margin-top: 4px; }

/* ===== Visual hierarchy for section headings ===== */
.content-wrapper > h2 { border-left: 4px solid var(--secondary); padding-left: 12px; }

/* ===== Table of links within legal pages ===== */
.content-wrapper ul li a { text-underline-offset: 2px; }

/* ===== Safe area for iOS bottom overlays ===== */
.cookie-banner { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

/* ===== End of stylesheet ===== */