/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --dark: #0a0a0a;
    --gray: #888888;
    --white: #ffffff;
    --green: #22c55e;
    --blue: #3b82f6;
    --gold: #f59e0b;
    --purple: #a855f7;
    --bg-dark: #0a0a0f;
    /* Added missing variable */
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

main>section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* ========== CANVAS BACKGROUND ========== */
#notesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 24px 60px;
    /* Adjusted padding */
}

/* New Brand Hero Style */
.brand-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered */
    gap: 20px;
    margin-bottom: 30px;
}

.logo-icon-hero {
    font-size: 56px;
    /* Larger */
    color: var(--blue);
}

.logo-text-hero {
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* ========== HERO SECTION END ========== */


.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(40px, 8vw, 70px);
    /* Smaller */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-win {
    background: linear-gradient(135deg, var(--blue), #4f46e5);
}

.btn-mac {
    background: linear-gradient(135deg, #333, #555);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Box shadows removed */
.btn-primary-large:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-win:hover,
.btn-mac:hover {
    filter: brightness(1.2);
    /* Use brightness instead of shadow */
}

.hero-note {
    font-size: 14px;
    color: var(--gray);
}

/* Web App Launch Button */
.btn-web-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-top: 16px;
    transition: all 0.3s ease;
    border: none;
}

.btn-web-app:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.btn-web-app svg {
    flex-shrink: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 13px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--gray);
    border-bottom: 2px solid var(--gray);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
    cursor: pointer;
    /* Interactive */
}

@keyframes bounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(8px);
    }
}

/* ========== ANIMATIONS ========== */
.animate-in {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 {
    transition-delay: 0.2s;
}

/* ========== FEATURE SECTIONS ========== */
.feature-section {
    position: relative;
    z-index: 1;
    padding: 108px 65px;
    /* Updated padding */
    background: #5c5c5c24;
    /* Updated background */
}

.feature-section.alt {
    background: #5c5c5c24;
    /* Consistent background */
}

.feature-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-content.reverse {
    direction: rtl;
}

.feature-content.reverse>* {
    direction: ltr;
}

/* Feature Tags Colors */
/* Feature Tags - Capsule Style */
.feature-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 100px;
    /* Full capsule */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid;
    /* Color handled by modifiers */
    letter-spacing: 0.5px;
}

.tag-green {
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.tag-blue {
    color: var(--blue);
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.tag-gold {
    color: var(--gold);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.tag-purple {
    color: var(--purple);
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.tag-red {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
}

.tag-cyan {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.feature-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-text p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.check-icon {
    color: var(--green);
    font-weight: bold;
}

/* ========== VISUAL DEMOS ========== */
.feature-visual {
    display: flex;
    justify-content: center;
}

.visual-box {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.visual-box:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Subtle shadow on hover */
}

/* INTERACTIVE SHARED */
.visual-box.interactive {
    cursor: pointer;
}

.interaction-hint {
    position: absolute;
    bottom: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s;
}

.visual-box:hover .interaction-hint {
    opacity: 1;
    color: var(--white);
}

/* Notes Demo (First one is standard) */
.notes-demo {
    background: linear-gradient(180deg, #0a0a0a 0%, #171717 100%);
    padding: 0;
}

.piano-canvas-demo {
    width: 100%;
    height: 100%;
    position: relative;
    /* Uses main JS Note class, CSS here minimal */
}

.piano-keyboard {
    height: 60px;
    width: 100%;
    display: flex;
    position: absolute;
    bottom: 0;
    background: #222;
    border-top: 1px solid #333;
}

/* Keys inherit styles or are set by JS logic */

/* SMART WAIT DEMO */
.wait-demo {
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.08), transparent 70%);
    gap: 30px;
}

.wait-indicator {
    text-align: center;
}

.wait-target {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.mini-keyboard-wait {
    display: flex;
    gap: 2px;
}

.key-wait {
    width: 40px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 0 0 6px 6px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    box-shadow: 0 2px 0 #ccc;
    transition: all 0.1s;
}

.key-wait:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* MIDI DEMO */
.midi-demo {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08), transparent 70%);
    gap: 20px;
}

.midi-plug {
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.connection-status {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.midi-demo:hover .midi-plug {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.4);
}

/* COMPOSER DEMO */
.composer-demo {
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.08), transparent 70%);
}

.composer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.grid-cell {
    width: 50px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.grid-cell:hover {
    background: rgba(255, 255, 255, 0.15);
}

.grid-cell.active {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    animation: cellPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cellPop {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* AUDIO DEMO */
.audio-demo {
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.08), transparent 70%);
    flex-direction: column;
    gap: 20px;
}

.waveform-container {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 60px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.audio-demo .wave-bar {
    width: 6px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s;
}

.audio-demo.processing .wave-bar {
    background: var(--red);
    /* Assuming red or similar */
    animation: waveProcessing 0.6s ease-in-out infinite alternate;
}

@keyframes waveProcessing {
    from {
        height: 10px;
    }

    to {
        height: 40px;
    }
}

.convert-btn {
    padding: 10px 24px;
    background: var(--white);
    color: black;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.convert-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.midi-result {
    color: var(--green);
    font-weight: 700;
    position: absolute;
    bottom: 50px;
    opacity: 0;
    transition: opacity 0.5s;
}

/* STATS DEMO */
.stats-demo {
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.08), transparent 70%);
    align-items: center;
    padding-bottom: 40px;
}

.graph-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 140px;
    padding-bottom: 0;
}

.graph-bar {
    width: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

.graph-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.graph-bar:hover,
.graph-bar.active {
    background: #06b6d4;
    /* Cyan */
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.stat-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

/* ========== PRICING SECTION ========== */
.pricing-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    /* Full screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertical Center */
    padding: 60px 24px;
    text-align: center;
}

.pricing-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-header p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 60px;
}

.pricing-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pricing-card {
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.pro {
    border-color: var(--blue);
}

.pro-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

.card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    margin-bottom: 12px;
}

.price {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 30px;
}

.price .period {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray);
}

.card-features {
    list-style: none;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-features li:last-child {
    border-bottom: none;
}

.card-features li span {
    width: 24px;
    text-align: center;
    font-weight: 600;
}

.card-features li.included span {
    color: var(--green);
}

.card-features li.limited span {
    color: var(--gold);
}

.card-features li.excluded span {
    color: #444;
}

.card-features li.excluded {
    color: #666;
}

/* 3-column pricing grid */
.pricing-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1200px;
}

/* Monthly card styling */
.pricing-card.monthly {
    border-color: var(--green);
}

/* Card action buttons */
.btn-card {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 24px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.btn-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-card.btn-monthly {
    background: linear-gradient(135deg, var(--green), #059669);
    border: none;
    color: white;
}

.btn-card.btn-monthly:hover {
    filter: brightness(1.15);
}

.btn-card.btn-pro {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border: none;
    color: white;
}

.btn-card.btn-pro:hover {
    filter: brightness(1.15);
}

/* Responsive pricing grid */
@media (max-width: 900px) {
    .pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* ========== FINAL CTA ========== */
.final-cta {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    /* Full screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertical Center */
    padding: 0 24px;
    /* Reduced padding */
    text-align: center;
    background: transparent;
    overflow: hidden;
    margin-top: -100px;
    /* Pull closer to previous section overlap if possible, or just huge padding reduction */
    /* Better: Just rely on flex center. User wanted "less space", centering does this visually by removing top whitespace offset */
}

.final-cta::before {
    display: none;
    /* Removed blur effect */
}

.cta-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
}

.community-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-community {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-community:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-community.discord {
    background: #5865F2;
    /* Discord Brand Color */
    border-color: #5865F2;
}

.btn-community.discord:hover {
    background: #4752c4;
    border-color: #4752c4;
    color: white;
    /* Ensure text remains white */
    transform: translateY(-2px);
}

/* Feature Video */
.feature-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* ========== FOOTER ========== */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 24px;
    background: rgba(0, 0, 0, 0.9);
    scroll-snap-align: end;
    /* Allow snapping to footer */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.footer-brand span {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    color: var(--gray);
    font-size: 13px;
}

.copyright {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 12px;
}

/* ========== LEGAL PAGES ========== */
.legal-page {
    background-color: var(--bg-dark);
    min-height: 100vh;
    color: var(--gray);
}

/* Disable scroll snap on legal pages */
.legal-page html,
.legal-page {
    scroll-snap-type: none !important;
}

/* Legal Page Header */
.legal-site-header {
    position: relative;
    z-index: 10;
    padding: 30px 24px;
    display: flex;
    justify-content: flex-start;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-brand .logo-icon {
    font-size: 28px;
    color: var(--blue);
}

.header-brand .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto 60px;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 30px;
}

.legal-header .brand-hero {
    justify-content: center;
    margin-bottom: 20px;
}

.legal-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    color: var(--white);
    margin-bottom: 8px;
}

.legal-header .p-date {
    font-size: 14px;
    color: var(--gray);
}

.legal-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    color: var(--white);
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content p,
.legal-content li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-content strong {
    color: var(--white);
}

.legal-content a {
    color: var(--blue);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-footer {
    padding-top: 40px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.back-home-btn {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-home-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-2px);
}

/* Background Canvas for Legal Pages */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content but above body bg */
    pointer-events: none;
}

.legal-container {
    position: relative;
    z-index: 1;
    /* Ensure content is above canvas */
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .feature-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .feature-content.reverse {
        direction: ltr;
    }

    .feature-visual {
        order: -1;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .feature-text h2 {
        font-size: 36px;
    }

    .pricing-header h2 {
        font-size: 40px;
    }

    .logo-text-hero {
        font-size: 60px;
    }

    .brand-hero {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 40px;
    }

    .btn-primary-large {
        padding: 14px 28px;
        font-size: 16px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-text-hero {
        font-size: 42px;
    }

    .logo-icon-hero {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .feature-text h2 {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .community-buttons {
        flex-direction: column;
    }

    /* Legal pages responsive */
    .legal-container {
        padding: 24px;
        margin: 0 16px 60px;
        border-radius: 16px;
    }

    .legal-header h1 {
        font-size: 28px;
    }

    .legal-content h2 {
        font-size: 20px;
    }

    .legal-site-header {
        padding: 20px 16px;
    }

    .header-brand .logo-text {
        font-size: 20px;
    }
}