:root {
    --primary-neon: #00ffff;
    /* Cyan */
    --secondary-neon: #ff00ff;
    /* Magenta */
    --accent-glow: #7fff00;
    /* Chartreuse Green for specific accents */
    --background-dark: #0d0d20;
    /* Deep dark blue/purple */
    --text-color-light: #f0f0f0;
    /* Brighter light grey for readability */
    --text-color-light-soft: #d0d0d0;
    /* Softer light grey for secondary text */
    --card-background: #1a1a3a;
    /* Slightly lighter dark blue/purple for cards */
    --border-color-neon: var(--primary-neon);
    --border-radius-sharp: 4px;
    /* Sharper edges */
    --font-family-body: 'Roboto Mono', monospace;
    --font-family-heading: 'Audiowide', cursive;
    --glow-shadow: 0 0 5px var(--primary-neon), 0 0 10px var(--primary-neon), 0 0 15px var(--primary-neon);
    --glow-shadow-secondary: 0 0 5px var(--secondary-neon), 0 0 10px var(--secondary-neon), 0 0 15px var(--secondary-neon);
}

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--background-dark);
    color: var(--text-color-light);
    font-size: 16px;
    font-weight: 300;
    /* Lighter default weight for Roboto Mono */
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Hero Section */
.hero {
    background: linear-gradient(rgba(13, 13, 32, 0.8), rgba(13, 13, 32, 0.95)),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 255, 255, 0.03) 10px,
            rgba(0, 255, 255, 0.03) 20px);
    color: var(--text-color-light);
    padding: 80px 0;
    text-align: center;
    border-bottom: 2px solid var(--primary-neon);
    box-shadow: 0 5px 15px -5px var(--primary-neon);
}

.hero h1 {
    font-family: var(--font-family-heading);
    font-size: 3.2em;
    margin-bottom: 0.3em;
    font-weight: normal;
    /* Audiowide is bold by default */
    text-shadow: var(--glow-shadow);
    color: #fff;
}

.hero .subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
    opacity: 0.95;
    /* Increased opacity slightly */
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-neon) !important;
    /* Important to override potential conflicts */
    padding: 14px 30px;
    font-size: 1.2em;
    text-decoration: none;
    border: 2px solid var(--primary-neon);
    border-radius: var(--border-radius-sharp);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    font-weight: normal;
    /* Reset from body potentially */
    font-family: var(--font-family-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 8px -2px var(--primary-neon) inset, 0 0 5px var(--primary-neon);
}

.cta-button:hover {
    background-color: var(--primary-neon);
    color: var(--background-dark) !important;
    /* Important to override potential conflicts */
    box-shadow: var(--glow-shadow);
    transform: translateY(-3px) scale(1.05);
}

/* Sections */
.section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    /* For pseudo-element glitch effects if added */
}

.section:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-neon), transparent);
    opacity: 0.5;
}

.section h2 {
    font-family: var(--font-family-heading);
    font-size: 2.5em;
    color: var(--primary-neon);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-weight: normal;
    text-shadow: 0 0 8px var(--primary-neon);
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--secondary-neon);
    margin: 15px auto 0;
    box-shadow: 0 0 5px var(--secondary-neon);
}

.section h3 {
    font-family: var(--font-family-heading);
    font-size: 1.8em;
    color: var(--secondary-neon);
    margin-bottom: 20px;
    font-weight: normal;
    text-shadow: 0 0 5px var(--secondary-neon);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.content-card {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: var(--border-radius-sharp);
    border: 1px solid var(--primary-neon_dim, rgba(0, 255, 255, 0.3));
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1), inset 0 0 10px rgba(0, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 
.content-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.2), inset 0 0 15px rgba(0, 255, 255, 0.1);
    border-color: var(--primary-neon);
} */

.content-card .emoji {
    font-size: 1.8em;
    display: block;
    margin-bottom: 15px;
    color: var(--primary-neon);
    text-shadow: var(--glow-shadow);
}

.content-card h4 {
    font-family: var(--font-family-heading);
    font-size: 1.3em;
    color: var(--primary-neon);
    margin-bottom: 10px;
    font-weight: normal;
}

.content-card p,
.content-card ul {
    font-size: 0.95em;
    color: var(--text-color-light-soft);
    opacity: 0.9;
    /* Adjusted opacity */
    font-weight: 400;
    /* Ensure body text is not too light */
}

.content-card ul {
    padding-left: 20px;
    list-style: none;
}

.content-card ul li::before {
    content: "> ";
    color: var(--primary-neon);
    font-weight: 500;
    /* Bolder prompt */
}

.content-card ul li {
    margin-bottom: 8px;
}


/* Specific Section Styling */
#problem p:first-of-type,
#solution p:first-of-type,
#advantage p:first-of-type {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-color-light-soft);
    max-width: 750px;
    margin: 0 auto 40px auto;
    opacity: 0.95;
    /* Increased opacity */
    font-weight: 400;
}

.key-features-list li,
.advantage-list li {
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.key-features-list .emoji,
.advantage-list .emoji {
    font-size: 1.6em;
    margin-right: 15px;
    color: var(--secondary-neon);
    text-shadow: var(--glow-shadow-secondary);
    margin-top: 2px;
    /* Align with text better */
    flex-shrink: 0;
}

.key-features-list div,
.advantage-list div {
    flex: 1;
}

.key-features-list h4,
.advantage-list h4 {
    font-family: var(--font-family-heading);
    font-size: 1.2em;
    margin-bottom: 5px;
    color: var(--secondary-neon);
    font-weight: normal;
}

.key-features-list p,
.advantage-list p {
    color: var(--text-color-light-soft);
    opacity: 0.9;
    /* Adjusted opacity */
    font-weight: 400;
}


/* Pricing Section */
.pricing-tier {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius-sharp);
    border: 1px solid var(--secondary-neon_dim, rgba(255, 0, 255, 0.4));
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.15), inset 0 0 15px rgba(255, 0, 255, 0.08);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-tier:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.25), inset 0 0 20px rgba(255, 0, 255, 0.12);
}

.pricing-tier h3 {
    font-family: var(--font-family-heading);
    color: var(--secondary-neon);
    font-size: 2em;
    margin-bottom: 15px;
    text-shadow: var(--glow-shadow-secondary);
}

.pricing-tier .price {
    font-size: 3em;
    /* font-weight: bold; */
    /* Roboto Mono bold might be too much */
    font-weight: 500;
    color: var(--text-color-light);
    margin-bottom: 5px;
    font-family: var(--font-family-body);
    text-shadow: 0 0 5px var(--text-color-light);
}

.pricing-tier .price-freq {
    font-size: 0.9em;
    color: var(--text-color-light-soft);
    margin-bottom: 25px;
    opacity: 0.85;
    font-weight: 400;
}

.pricing-tier ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.pricing-tier ul li {
    margin-bottom: 12px;
    font-size: 1em;
    color: var(--text-color-light-soft);
    background: none;
    padding: 0;
    font-weight: 400;
}

.pricing-tier ul li strong {
    color: var(--text-color-light);
    font-weight: 500;
    /* Bolder for strong elements */
}

.pricing-tier ul li::before {
    content: "✓ ";
    color: var(--accent-glow);
    margin-right: 5px;
}

.pricing-tier .cta-button {
    border-color: var(--secondary-neon);
    color: var(--secondary-neon) !important;
    box-shadow: 0 0 8px -2px var(--secondary-neon) inset, 0 0 5px var(--secondary-neon);
}

.pricing-tier .cta-button:hover {
    background-color: var(--secondary-neon);
    color: var(--background-dark) !important;
    box-shadow: var(--glow-shadow-secondary);
}


/* How it works */
#how-it-works ol {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
    max-width: 700px;
    margin: 0 auto;
}

#how-it-works ol li {
    counter-increment: step-counter;
    margin-bottom: 30px;
    position: relative;
    padding: 20px;
    padding-left: 60px;
    /* Space for number */
    font-size: 1.05em;
    background-color: rgba(26, 26, 58, 0.5);
    /* Slightly transparent card background */
    border-radius: var(--border-radius-sharp);
    border-left: 3px solid var(--primary-neon);
    font-weight: 400;
}

#how-it-works ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-neon);
    color: var(--background-dark);
    width: 35px;
    height: 35px;
    border-radius: var(--border-radius-sharp);
    /* Sharper counter */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    /* Counter number uses heading font */
    font-size: 1.2em;
    font-family: var(--font-family-heading);
    box-shadow: var(--glow-shadow);
}

#how-it-works ol li strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 8px;
    color: var(--primary-neon);
    font-family: var(--font-family-heading);
    font-weight: normal;
}

#how-it-works ol li p {
    opacity: 0.9;
    color: var(--text-color-light-soft);
    font-weight: 400;
}


/* Form Section */
.form-section {
    background-color: var(--card-background);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--secondary-neon_dim, rgba(255, 0, 255, 0.3));
    border-bottom: 1px solid var(--secondary-neon_dim, rgba(255, 0, 255, 0.3));
}

.form-section h2 {
    color: var(--secondary-neon);
    border-bottom: none;
    text-shadow: 0 0 8px var(--secondary-neon);
}

.form-section h2::after {
    background-color: var(--primary-neon);
    box-shadow: 0 0 5px var(--primary-neon);
}

.form-section p {
    font-size: 1.1em;
    color: var(--text-color-light-soft);
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.95;
    font-weight: 400;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 450px;
    margin: 0 auto;
}

form input[type="email"] {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-neon_dim, rgba(0, 255, 255, 0.4));
    border-radius: var(--border-radius-sharp);
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
    font-family: var(--font-family-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: 400;
}

form input[type="email"]::placeholder {
    color: var(--text-color-light_soft, #a0a0a0);
    opacity: 0.7;
}

form input[type="email"]:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon);
    outline: none;
}

form button {
    /* Reuses .cta-button styles, ensure it's applied or duplicate if needed */
    width: auto;
    font-weight: normal;
    /* Ensure button font weight is reset if body is light */
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    background-color: var(--background-dark);
    color: var(--text-color-light-soft);
    font-size: 0.9em;
    border-top: 1px solid var(--primary-neon_dim, rgba(0, 255, 255, 0.2));
    font-weight: 400;
}

footer p {
    margin: 0;
    opacity: 0.75;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero .subtitle {
        font-size: 1.1em;
    }

    .section h2 {
        font-size: 2em;
    }

    .content-grid {
        grid-template-columns: 1fr;
        /* Stack cards on smaller screens */
    }

    #how-it-works ol li {
        padding-left: 15px;
        padding-top: 60px;
        /* Space for number above */
    }

    #how-it-works ol li::before {
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    body {
        font-size: 15px;
        /* Slightly smaller base font on mobile for mono */
    }
}

/* --- Dashboard specific --- */
#key-pane {
    max-width: 620px;
    /* Increased slightly for better spacing */
    margin: 30px auto;
    /* Adjusted margin */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center the content horizontally */
    gap: 20px;
    /* Gap between key-row and rotate button */
}

.key-row {
    display: flex;
    /* flex-wrap: wrap; // Not ideal if we want key and copy always on one line */
    justify-content: center;
    align-items: center;
    /* Vertical alignment for key and copy button */
    gap: 10px;
    width: 100%;
    /* Allow it to take available width */
}

#existing-key {
    font-family: var(--font-family-mono, "Roboto Mono", monospace);
    background-color: rgba(0, 0, 0, 0.55);
    /* Darker, distinct background */
    padding: 12px 18px;
    /* Increased padding */
    border: 1.5px solid var(--primary-neon);
    border-radius: 6px;
    user-select: all;
    word-break: break-all;
    color: var(--text-color-light);
    flex-grow: 1;
    /* Allow key to take available space */
    text-align: left;
    /* Align key text to the left */
    font-size: 1.1em;
    box-shadow: 0 0 10px var(--primary-neon_dim, rgba(0, 255, 255, 0.2));
    min-height: 40px;
    /* Ensure consistent height with button */
    display: flex;
    /* To align text vertically if needed */
    align-items: center;
    /* Vertically center text in the code block */
}

.cta-button.small {
    padding: 10px 20px;
    /* Adjusted padding for 'small' */
    font-size: 0.95em;
    /* Slightly larger for 'small' */
    flex-shrink: 0;
    /* Prevent copy button from shrinking */
    min-height: 40px;
    /* Match height with key display */
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
}

#mint-btn.cta-button {
    padding: 12px 25px;
    /* Slightly larger than small */
    font-size: 1.05em;
    /* width: auto; /* Or specify a width like 200px if desired */
    /* align-self: center; Already centered due to #key-pane align-items */
}

/* Login form tweaks */
.login-divider {
    margin: 20px 0;
    opacity: 0.3;
    width: 100%;
}

.login-providers {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

.login-providers .provider-btn {
    flex: 1;
}

/* Ensure main h1 for the page has some space if it's the dashboard */
/* This might need to be more specific if other pages have h1 directly in block content */
.dashboard-page-heading {
    /* Add this class to the h1 in dashboard.html if needed */
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}


/* Remove old icon-button styles if no longer used, or keep if they are */
/* For now, assuming they are not part of this specific dashboard revision */
/* .icon-button { ... } */
/* .icon-button:hover { ... } */

[hidden] {
    display: none !important;
}

/* Banner showing current ComplianceRegistry location */
.contract-banner {
    background-color: rgba(0, 255, 255, 0.05);
    color: var(--primary-neon);
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--primary-neon_dim, rgba(0, 255, 255, 0.2));
}

.contract-banner a {
    color: var(--secondary-neon);
    text-decoration: none;
}

.contract-banner a:hover {
    text-decoration: underline;
}