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

/* Make text black inside white boxes for visibility */
[style*="background-color: white"],
[style*="background-color: #fff"],
[style*="background-color: #ffffff"],
[style*="background: white"],
[style*="background: #fff"],
[style*="background: #ffffff"],
[style*="background-color: rgb(255"],
[style*="background-color: rgba(255"],
[style*="background-color:rgb(255"],
[style*="background-color:rgba(255"] {
    color: #000000 !important;
}

[style*="background-color: white"] *,
[style*="background-color: #fff"] *,
[style*="background-color: #ffffff"] *,
[style*="background: white"] *,
[style*="background: #fff"] *,
[style*="background: #ffffff"] *,
[style*="background-color: rgb(255"] *,
[style*="background-color: rgba(255"] *,
[style*="background-color:rgb(255"] *,
[style*="background-color:rgba(255"] * {
    color: #000000 !important;
}

/* Also target elements that might have white backgrounds from computed styles */
div[style*="255"],
span[style*="255"],
p[style*="255"],
li[style*="255"],
td[style*="255"],
th[style*="255"] {
    color: #000000 !important;
}

/* Universal fallback: if background is light, text should be dark */
* {
    /* This will be overridden by more specific rules for dark backgrounds */
}

/* Ensure elements with explicitly set white backgrounds have black text */
body > * {
    /* Check if computed background is white - but CSS can't do this directly */
    /* So we'll use a different approach: make all text black by default, then override for dark backgrounds */
}

/* Force all text to be visible - highest priority */
/* Default to light text for dark theme */
html, html *, body, body * {
    color: #e5e9f0 !important;
}

/* Override for links */
a, a * {
    color: #7dd3fc !important;
}

a:hover, a:hover * {
    color: #bae6fd !important;
}

/* Override for special colored elements */
.eyebrow, .eyebrow * {
    color: #7dd3fc !important;
}

.lead, .lead * {
    color: #a7b1c6 !important;
}

.note, .note * {
    color: #7dd3fc !important;
}

.plan, .plan * {
    color: #94a3b8 !important;
}

.price-period, .price-period * {
    color: #94a3b8 !important;
}

body {
    font-family: "Space Grotesk", Arial, sans-serif;
    background-color: #080a10;
    color: #e5e9f0;
    line-height: 1.6;
}

a {
    color: #7dd3fc;
    text-decoration: none;
}

a:hover {
    color: #bae6fd;
}

/* Ensure all text elements have visible color by default */
body, body * {
    color: #e5e9f0;
}

/* Override for buttons to ensure proper text color */
/* Note: Individual button classes will override this with specific colors */

/* Explicitly ensure all container text is visible */
.hero-card,
.hero-card *,
.pricing .card,
.pricing .card *,
.feature-grid article,
.feature-grid article *,
.modal-content,
.modal-content *,
.modal-requirements,
.modal-requirements *,
.checklist,
.checklist *,
.license-flow,
.license-flow *,
.contact,
.contact *,
.section,
.section * {
    color: #e5e9f0;
}

/* Ensure headings are always visible */
h1, h2, h3, h4, h5, h6 {
    color: #e5e9f0;
}

/* Ensure paragraphs, lists, and text elements are visible */
p, span, div, li, ul, ol, td, th, figcaption {
    color: #e5e9f0;
}

/* Fix any white background form elements */
input, textarea, select {
    background-color: rgba(8, 10, 16, 0.8) !important;
    color: #e5e9f0 !important;
    border: 1px solid rgba(125, 211, 252, 0.3);
}

/* Override for specific colored elements (must come after general rules) */
.eyebrow {
    color: #7dd3fc !important;
}

.lead {
    color: #a7b1c6 !important;
}

.note {
    color: #7dd3fc !important;
}

.plan {
    color: #94a3b8 !important;
}

.price-period {
    color: #94a3b8 !important;
}

/* Ensure links maintain their color */
a, a * {
    color: #7dd3fc;
}

a:hover, a:hover * {
    color: #bae6fd;
}

.container {
    width: min(1100px, 90vw);
    margin: 0 auto;
}

.hero {
    padding: 2.5rem 0 4rem;
    background: radial-gradient(circle at top, #0f1b3d, #05070d);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.logo {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-links a {
    margin-left: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.hero-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: #7dd3fc;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0.5rem 0 1rem;
}

.lead {
    color: #a7b1c6;
    margin-bottom: 1.5rem;
}

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

.btn {
    border-radius: 999px;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    text-align: center;
    text-decoration: none; /* Remove underline from links styled as buttons */
    display: inline-block; /* Ensure proper spacing */
    cursor: pointer;
    /* Color will be set by specific button classes for proper contrast */
}

.btn .label-mobile {
    display: none;
}

.btn.primary {
    background: linear-gradient(120deg, #7dd3fc, #60a5fa);
    color: #000000 !important; /* Pure black for maximum visibility */
    font-weight: 700; /* Make it bolder for better visibility */
}

.btn.primary:hover {
    transform: translateY(-1px);
    color: #000000 !important; /* Keep pure black text on hover */
    font-weight: 700;
}

.btn.primary * {
    color: #000000 !important; /* Ensure any nested elements are also black */
}

.btn.secondary {
    border-color: #4c566a;
    color: #000000 !important; /* Pure black for maximum visibility */
    background: rgba(255, 255, 255, 0.85) !important; /* Much lighter background for black text visibility */
    font-weight: 700; /* Make it bolder for better visibility */
}

.btn.secondary:hover {
    border-color: #7dd3fc;
    color: #000000 !important; /* Keep pure black text on hover */
    background: rgba(255, 255, 255, 0.95) !important; /* Even brighter background on hover */
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.3);
    font-weight: 700;
}

.btn.secondary * {
    color: #000000 !important; /* Ensure any nested elements are also black */
}

.btn.outline {
    border-color: #7dd3fc;
    color: #7dd3fc !important; /* Light cyan text for contrast on dark background */
    background: transparent;
    font-weight: 700; /* Consistent with other buttons */
}

.btn.outline:hover {
    border-color: #60a5fa;
    color: #60a5fa !important; /* Brighter cyan on hover */
    background: rgba(125, 211, 252, 0.1); /* Subtle background on hover */
    transform: translateY(-1px);
}

.btn.outline * {
    color: #7dd3fc !important; /* Ensure nested elements match */
}

.hero-card {
    background: rgba(5, 7, 13, 0.65) !important;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 16px;
    padding: 1.8rem;
    backdrop-filter: blur(8px);
    color: #e5e9f0 !important;
}

.hero-card ul {
    list-style: none;
    margin: 1rem 0;
}

.hero-card li {
    margin-bottom: 0.4rem;
    color: #cbd5f5;
}

.hero-card .version {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.hero-card .release-date {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.hero-card .note {
    color: #7dd3fc;
    font-size: 0.9rem;
}

.section {
    padding: 4rem 0;
}

.section.gallery {
    background: #05070d;
    border-top: 1px solid rgba(125, 211, 252, 0.08);
    border-bottom: 1px solid rgba(125, 211, 252, 0.08);
}

.gallery-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.video-container {
    margin-bottom: 3rem;
}

.video-link-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-link {
    display: inline-flex;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(12, 16, 27, 0.8);
    border: 2px solid rgba(125, 211, 252, 0.3);
    border-radius: 12px;
    color: #7dd3fc;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-link:hover {
    background: rgba(125, 211, 252, 0.1);
    border-color: rgba(125, 211, 252, 0.5);
    color: #bae6fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 211, 252, 0.2);
}

.video-link svg {
    flex-shrink: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.gallery-grid figure {
    background: rgba(8, 10, 16, 0.85);
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(125, 211, 252, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid img:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.gallery-grid figcaption {
    font-size: 0.95rem;
    color: #cbd5f5;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.lightbox.hidden {
    display: none;
}

.lightbox img {
    max-width: min(1200px, 90vw);
    max-height: 80vh;
    border-radius: 14px;
    border: 1px solid rgba(125, 211, 252, 0.45);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55);
    margin-bottom: 1rem;
}

.lightbox-caption {
    color: #e5e9f0;
    max-width: min(900px, 80vw);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.section.dark {
    background: #0d111e;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-grid article {
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(12, 16, 27, 0.7) !important;
    color: #e5e9f0 !important;
}

.compare-section {
    background: linear-gradient(180deg, #0a0e18 0%, #0d111e 100%);
}

.compare-tagline {
    max-width: 52rem;
    margin: 1rem auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cbd5f5;
    text-align: center;
}

.compare-subhead {
    margin: 2.5rem 0 1rem;
    font-size: 1.25rem;
    color: #7dd3fc;
    text-align: left;
}

.compare-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0 0 1rem;
}

.compare-quick-card {
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: rgba(7, 11, 20, 0.75);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.compare-quick-card h4 {
    font-size: 0.96rem;
    margin-bottom: 0.35rem;
    color: #7dd3fc !important;
}

.compare-quick-card p {
    font-size: 0.88rem;
    color: #cbd5f5 !important;
    line-height: 1.45;
}

.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: 12px;
    background: rgba(12, 16, 27, 0.85);
    margin-bottom: 0.75rem;
}

.compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(125, 211, 252, 0.08);
    color: #e5e9f0;
    vertical-align: top;
}

.compare-table thead th {
    background: rgba(125, 211, 252, 0.08);
    color: #7dd3fc;
    font-weight: 600;
    white-space: nowrap;
}

.compare-table thead th:first-child,
.compare-table tbody th {
    color: #e5e9f0;
    font-weight: 500;
}

.compare-table thead th:nth-child(2) {
    background: rgba(125, 211, 252, 0.14);
    color: #fff;
}

.compare-table tbody th {
    background: rgba(12, 16, 27, 0.5);
    min-width: 10rem;
}

.compare-table tbody td:nth-child(2) {
    background: rgba(125, 211, 252, 0.04);
}

.compare-highlight-row th,
.compare-highlight-row td {
    background: rgba(125, 211, 252, 0.1) !important;
}

.compare-yes {
    color: #86efac;
}

.compare-no {
    color: #fca5a5;
}

.compare-partial {
    color: #fcd34d;
}

.compare-muted {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 0.15rem;
}

.compare-footnote {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0 0 1.5rem;
}

.compare-mobile-hint {
    display: none;
    font-size: 0.82rem;
    color: #94a3b8 !important;
    margin: 0.55rem 0 0.15rem;
}

.compare-cta-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
    padding: 0.75rem;
    background: rgba(125, 211, 252, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(125, 211, 252, 0.1);
}

.toggle-label {
    font-size: 0.95rem;
    color: #cbd5f5;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-badge {
    background: rgba(125, 211, 252, 0.2);
    color: #7dd3fc;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(125, 211, 252, 0.2);
    transition: 0.3s;
    border-radius: 30px;
    border: 1px solid rgba(125, 211, 252, 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #7dd3fc;
    transition: 0.3s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: rgba(125, 211, 252, 0.3);
    border-color: rgba(125, 211, 252, 0.5);
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}

#fiatAddonLabelHome.fiat-addon-included {
    opacity: 0.72;
    cursor: default;
    pointer-events: none;
}

.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.pricing .card {
    background: rgba(8, 10, 16, 0.8) !important;
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.1);
    padding: 2rem;
    color: #e5e9f0 !important;
}

.pricing .card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing .card li {
    margin-bottom: 0.5rem;
}

.pricing .pro {
    border-color: rgba(125, 211, 252, 0.4);
    background: linear-gradient(145deg, rgba(13, 17, 30, 0.95), rgba(3, 10, 23, 0.9));
}

.plan {
    letter-spacing: 0.5em;
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.price {
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: #94a3b8;
}

.license-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.license-flow ol {
    padding-left: 1.2rem;
}

.checklist {
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(7, 11, 20, 0.8) !important;
    color: #e5e9f0 !important;
}

.note {
    color: #7dd3fc;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

footer {
    padding: 2rem 0;
    background: #05070d;
    border-top: 1px solid rgba(125, 211, 252, 0.1);
    color: #94a3b8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-text {
    text-align: left;
    flex: 1;
    min-width: 200px;
}

footer .subtle {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(120deg, #7dd3fc, #60a5fa);
    color: #000000 !important;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(125, 211, 252, 0.2);
    white-space: nowrap;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 211, 252, 0.3);
    color: #000000 !important;
}

.support-btn * {
    color: #000000 !important;
}

.support-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10000;
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(145deg, rgba(13, 17, 30, 0.98), rgba(8, 10, 16, 0.95)) !important;
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: min(800px, 90vw);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    color: #e5e9f0 !important;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #e5e9f0;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #7dd3fc;
}

.modal-lead {
    color: #cbd5f5;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.modal-features {
    margin: 2rem 0;
}

.modal-features h3 {
    color: #7dd3fc;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.modal-features h3:first-child {
    margin-top: 0;
}

.modal-features ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.modal-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: #e5e9f0;
    line-height: 1.6;
}

.modal-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7dd3fc;
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-features strong {
    color: #7dd3fc;
}

.modal-requirements {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(5, 7, 13, 0.5) !important;
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.15);
    color: #e5e9f0 !important;
}

.modal-requirements h3 {
    color: #7dd3fc;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.modal-requirements ul {
    list-style: none;
    padding-left: 0;
}

.modal-requirements li {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    color: #e5e9f0;
    line-height: 1.5;
}

.modal-requirements li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #7dd3fc;
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-requirements strong {
    color: #7dd3fc;
}

.modal-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(125, 211, 252, 0.2);
}

.btn {
    cursor: pointer;
    display: inline-block;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(8, 10, 16, 0.8) !important; /* Semi-transparent dark background for contrast */
    border: 2px solid rgba(125, 211, 252, 0.3) !important; /* Visible border */
    border-radius: 6px;
    cursor: pointer;
    padding: 10px 8px;
    z-index: 10040;
    align-items: center;
    justify-content: center;
    min-width: 44px; /* Touch-friendly size */
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #7dd3fc !important; /* Ensure cyan color is visible */
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block !important; /* Ensure spans are displayed */
    opacity: 1 !important; /* Ensure full opacity */
    visibility: visible !important;
    box-shadow: 0 0 4px rgba(125, 211, 252, 0.5); /* Glow effect for better visibility */
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Design - Tablets and Mobile */
@media (max-width: 1024px) {
    /* Tablet adjustments */
    .container {
        width: min(900px, 95vw);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .pricing {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile adjustments */
    .container {
        width: 95vw;
        padding: 0 10px;
    }
    
    /* Navigation - Mobile Menu */
    .nav {
        position: relative;
        z-index: 10050;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 10040 !important;
    }
    
    .mobile-menu-toggle span {
        background: #7dd3fc !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 28px !important;
        height: 3px !important;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 88vw);
        height: 100vh;
        background: #050b16 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 84px 18px 18px;
        transition: right 0.3s ease;
        z-index: 999;
        border-left: 1px solid rgba(125, 211, 252, 0.2);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.75);
        z-index: 10020;
        opacity: 1 !important;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        display: block !important; /* Force each link to its own line */
        width: 100% !important; /* Full width */
        margin: 0 !important;
        padding: 12px 14px;
        font-size: 1.1rem;
        font-weight: 600;
        color: #f4f8ff !important;
        opacity: 1 !important;
        background: rgba(10, 18, 34, 0.92) !important;
        border: 1px solid rgba(125, 211, 252, 0.28);
        border-radius: 10px;
        margin-bottom: 10px !important;
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
        text-align: left;
    }
    
    .nav-links a:last-child {
        margin-bottom: 0 !important;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        background: rgba(20, 34, 62, 0.98) !important;
        color: #ffffff !important;
        border-color: rgba(125, 211, 252, 0.5);
        outline: none;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 1.5rem 0 2.5rem;
    }
    
    h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-card {
        margin-top: 1.5rem;
        padding: 1.5rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .video-link {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Pricing */
    .pricing {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-toggle {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .toggle-label {
        font-size: 0.9rem;
    }
    
    /* Features */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* License Flow */
    .license-flow {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Modal */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-cta {
        flex-direction: column;
    }
    
    .modal-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Lightbox */
    .lightbox {
        padding: 1rem;
    }
    
    .lightbox img {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
    
    /* Buttons - Touch friendly */
    .btn {
        min-height: 44px; /* iOS touch target minimum */
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Section padding */
    .section {
        padding: 2.5rem 0;
    }
    
    /* Footer - Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-text {
        text-align: center;
    }
    
    .support-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Typography */
    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
}

@media (max-width: 480px) {
    /* Small mobile devices */
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .logo {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 1rem 0 2rem;
    }
    
    .hero-card {
        padding: 1.25rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .pricing .card {
        padding: 1.5rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    /* Make tables scrollable on small screens */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Gallery images */
    .gallery-grid figure {
        padding: 0.75rem;
    }
    
    /* Modal adjustments */
    .modal-content {
        padding: 1.25rem;
    }
    
    .modal-features ul {
        padding-left: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn {
        min-height: 48px;
        padding: 1rem 1.75rem;
    }
    
    .nav-links a {
        padding: 18px 0;
    }
    
    /* Larger touch targets */
    a, button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Keep homepage hero CTA compact on phones */
    .hero-cta .btn {
        min-height: 40px !important;
        padding: 0.72rem 1rem !important;
        font-size: 0.92rem !important;
        line-height: 1.2 !important;
        border-width: 1px !important;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 1rem 0 1.5rem;
    }
    
    .nav-links {
        width: 250px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo, .btn, .nav-links a {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* CRITICAL: Remove white boxes entirely - force dark backgrounds */
/* Override any white/light backgrounds and replace with dark backgrounds */
[style*="background-color: white"],
[style*="background-color: #fff"],
[style*="background-color: #ffffff"],
[style*="background: white"],
[style*="background: #fff"],
[style*="background: #ffffff"],
[style*="background-color: rgb(255, 255, 255"],
[style*="background-color: rgba(255, 255, 255"],
[style*="background-color:rgb(255,255,255"],
[style*="background-color:rgba(255,255,255"] {
    background-color: rgba(8, 10, 16, 0.9) !important;
    background: rgba(8, 10, 16, 0.9) !important;
    color: #e5e9f0 !important;
}

/* Ensure body and html have dark backgrounds */
html {
    background-color: #080a10 !important;
}

body {
    background-color: #080a10 !important;
}

/* Responsive + visual refresh overrides */
:root {
    --bg: #080a10;
    --bg-elevated: rgba(12, 16, 27, 0.76);
    --text-main: #e5e9f0;
    --text-muted: #a7b1c6;
    --accent: #7dd3fc;
    --accent-strong: #60a5fa;
    --border-soft: rgba(125, 211, 252, 0.18);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    color: var(--text-main);
    background: radial-gradient(circle at 0% -5%, #10214a 0%, #080a10 45%);
    overflow-x: hidden;
}

.container {
    width: min(1120px, 92vw);
}

.nav {
    position: sticky;
    top: 0.75rem;
    z-index: 80;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(8, 10, 16, 0.72);
    backdrop-filter: blur(8px);
}

.logo {
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-links a {
    margin-left: 0;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
    background: rgba(125, 211, 252, 0.14);
}

h1 {
    line-height: 1.15;
    max-width: 18ch;
}

h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
    line-height: 1.2;
}

.lead {
    max-width: 64ch;
    color: var(--text-muted) !important;
}

.hero-points {
    margin-top: 1rem;
    font-size: 0.96rem;
    color: #cbd5f5 !important;
    line-height: 1.65;
}

.hero-fiat-note {
    margin-top: 0.6rem;
    color: var(--accent) !important;
    font-size: 0.95rem;
}

.hero-obd-note {
    margin-top: 0.85rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #cbd5f5 !important;
    max-width: 64ch;
}

.hero-obd-note strong {
    color: var(--accent) !important;
}

.hero-value-callout {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(125, 211, 252, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-size: 1.03rem;
    line-height: 1.5;
    color: #e7ecfb !important;
    max-width: 64ch;
}

.hero-value-callout strong {
    color: var(--accent) !important;
}

.hero-download-counter {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-muted) !important;
}

.hero-download-counter strong {
    color: var(--accent) !important;
}

.hero-addon-link-wrap,
.modal-addon-link-wrap {
    margin-top: 1rem;
    text-align: center;
}

.hero-addon-link,
.modal-addon-link {
    color: var(--accent) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.92rem;
}

.hero-card,
.feature-grid article,
.pricing .card,
.checklist,
.gallery-grid figure {
    border-color: var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.btn {
    min-height: 44px;
    letter-spacing: 0.01em;
}

.btn.primary {
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.32);
}

.btn.primary:hover,
.btn.secondary:hover,
.btn.outline:hover,
.support-btn:hover,
.gallery-grid figure:hover {
    transform: translateY(-2px);
}

.gallery-grid img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.section {
    padding: clamp(2.6rem, 6vw, 4.6rem) 0;
}

@media (max-width: 768px) {
    .container {
        width: 95vw;
    }

    .nav {
        top: 0.5rem;
        border-radius: 14px;
        padding: 0.65rem 0.8rem;
    }

    .hero {
        padding-top: 1.4rem;
    }

    .hero-content {
        gap: 1.4rem;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(1.35rem, 6.6vw, 1.95rem);
        line-height: 1.2;
    }

    .lead {
        font-size: 0.91rem;
        line-height: 1.55;
    }

    .hero-card {
        padding: 1.2rem;
    }

    .hero-card .version {
        font-size: 1.6rem;
    }

    .note {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .hero-cta {
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .hero-cta .btn {
        flex: 0 1 auto;
        width: auto;
        min-width: min(17rem, 82vw);
        max-width: min(17rem, 82vw);
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-toggle {
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .toggle-label {
        font-size: 0.88rem;
    }

    .compare-subhead {
        margin-top: 1.55rem;
    }

    .compare-quick-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .compare-table {
        min-width: 560px;
        font-size: 0.86rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.62rem 0.72rem;
    }

    .compare-mobile-hint {
        display: block;
    }

    .nav-links {
        right: 0;
        transform: translateX(110%);
        transition: transform 0.3s ease;
        background: #050b16 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        visibility: hidden;
        pointer-events: none;
        opacity: 1 !important;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 14px;
    }

    .hero-card,
    .pricing .card,
    .feature-grid article,
    .checklist {
        border-radius: 12px;
    }

    .hero {
        padding-top: 0.85rem;
    }

    .hero-cta .btn {
        min-width: min(15.5rem, 80vw);
        max-width: min(15.5rem, 80vw);
    }

    h1 {
        font-size: clamp(1.2rem, 7.1vw, 1.6rem);
    }

    .hero-points {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .compare-table-wrap {
        border-radius: 10px;
    }

    .compare-table {
        min-width: 520px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Skip link + keyboard focus (a11y / Core Web Vitals companion) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
    z-index: 10000;
    padding: 0.75rem 1rem;
    background: #080a10;
    color: #7dd3fc !important;
    border: 2px solid #7dd3fc;
    border-radius: 4px;
    white-space: normal;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
}

/* Final mobile CTA override (keep at end) */
@media (max-width: 768px) {
    .hero .hero-content > div > .hero-cta {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.7rem !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 0.5rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero .hero-content > div > .hero-cta > .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: min(15.5rem, 82vw) !important;
        max-width: 82vw !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        margin-inline: auto !important;
        position: static !important;
        left: auto !important;
        transform: none !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .hero .hero-content > div > .hero-cta > .btn {
        width: min(14.8rem, 80vw) !important;
        max-width: 80vw !important;
    }
}

/* Isolated hero CTA buttons (do not let other sections affect alignment) */
@media (max-width: 768px) {
    .hero .hero-cta--isolated .btn .label-desktop {
        display: none !important;
    }

    .hero .hero-cta--isolated .btn .label-mobile {
        display: inline !important;
    }

    .hero .hero-cta--isolated {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0.4rem auto 0 !important;
        padding: 0 !important;
    }

    .hero .hero-cta--isolated .btn {
        display: block !important;
        width: min(15rem, 80vw) !important;
        max-width: 80vw !important;
        margin: 0.55rem auto !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .hero .note {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .hero .note code {
        display: inline !important;
        overflow-wrap: anywhere !important;
        word-break: break-all !important;
    }
}

