:root {
    --color-bg: #050505;
    --color-surface: #121212;
    --color-surface-hover: #1a1a1a;
    --color-primary: #2ee39d;
    --color-primary-glow: rgba(0, 255, 157, 0.4);
    --color-text: #ffffff;
    --color-text-dim: #a0a0a0;
    --color-border: #333;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --spacing-container: 1200px;
    --transition-fast: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.app-container {
    max-width: 100%;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    /* Slightly smaller padding on scroll for sleek look */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 25px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

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

.nav a {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    transition: color var(--transition-fast);
}

.nav a:hover {
    color: var(--color-text);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
}

.btn-primary:hover {
    background-color: #33ffb0;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.3);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    border-color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 90vh;
}

.hero-content {
    opacity: 0;
    animation: fadeUp 1s ease 0.2s forwards;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(to right, #fff, var(--color-text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.hero-image-container {
    position: relative;
    opacity: 0;
    animation: fadeLeft 1s ease 0.5s forwards;
}

.hero-image {
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
}

/* Features Section */
.features {
    max-width: var(--spacing-container);
    margin: 6rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-dim);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 157, 0.1);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

/* Security Section */
.security-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
    padding: 8rem 2rem;
    text-align: center;
}

.security-content {
    max-width: 600px;
    margin: 0 auto;
}

.security-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.security-content p {
    color: var(--color-text-dim);
    margin-bottom: 3rem;
}

.security-list {
    list-style: none;
    text-align: left;
    display: grid;
    gap: 1.5rem;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
}

.check-icon {
    color: var(--color-primary);
    font-weight: bold;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: var(--spacing-container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    border-radius: 25px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

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

.copyright {
    color: #555;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .nav {
        display: none;
        /* Hide nav links on mobile for simplicity, or use hamburger */
    }
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.screenshots-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshots-grid img {
    max-height: 500px;
    border-radius: 30px;
    /*border: 6px solid #1a1a1a;*/
    /*box-shadow: 0 10px 30px rgba(28, 53, 42, 0.5);*/
    transition: transform var(--transition-fast);
}

.screenshots-grid img:hover {
    transform: translateY(-5px);
}

/* Hero Image Override */
.hero-image {
    max-height: 600px;
    width: auto;
    border-radius: 40px;
    /*border: 8px solid #1a1a1a;*/
}

/* Privacy Policy Page */
.privacy-container {
    max-width: 800px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}

.privacy-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.effective-date {
    color: var(--color-text-dim);
    margin-bottom: 3rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.privacy-container section {
    margin-bottom: 2.5rem;
}

.privacy-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.privacy-container p {
    color: var(--color-text-dim);
    margin-bottom: 1rem;
}

.privacy-container ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-dim);
}

.privacy-container li {
    margin-bottom: 0.5rem;
}

.privacy-container a {
    color: var(--color-primary);
    text-decoration: underline;
}

.summary-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    margin-top: 4rem;
}

.summary-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* --- PREMIUM ENHANCEMENTS --- */

/* App Store Badge */
.app-store-link {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.app-store-link:hover {
    transform: translateY(-2px);
}

.app-store-badge {
    height: 48px;
    width: auto;

}

/* Generator Section */
.generator-section {
    padding: 8rem 2rem;
    text-align: center;
    margin: 0 auto;
    max-width: 1000px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Background glow for generator */
.generator-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: var(--color-primary);
    filter: blur(150px);
    opacity: 0.08;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.generator-container {
    width: 100%;
}

.generator-container h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--color-text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.generator-container p {
    color: var(--color-text-dim);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.demo-generator {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
}

.password-display {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
    word-break: break-all;
    border: 1px solid rgba(0, 255, 157, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 255, 157, 0.05);
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 1px;
}

/* Mobile responsive fix for display */
@media (max-width: 600px) {
    .password-display {
        font-size: 1.5rem;
        padding: 1rem;
    }
}

.generator-controls {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.length-control {
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
}

.length-control label {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    color: var(--color-text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.length-control span {
    color: var(--color-primary);
    font-weight: bold;
}

/* Custom Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.6);
    border: 4px solid #fff;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

input[type=range]:focus {
    outline: none;
}

#generate-btn {
    min-width: 220px;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    border-radius: 12px;
}

/* FAQ Section */
.faq-section {
    padding: 8rem 2rem;
    margin-top: 4rem;
    background: transparent;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: left;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Minimal separators */
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.faq-question:focus,
.faq-question:focus-visible {
    outline: none;
}

.faq-question.active {
    background: var(--color-surface-hover);
    border-color: var(--color-primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-question .icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-question.active .icon {
    transform: rotate(45deg);
    color: var(--color-primary);
    /* Green accent */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
}

.faq-answer p {
    padding: 2rem;
    padding-top: 1rem;
    color: var(--color-text-dim);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

/* -------------------------------------------------- */
/* Why ForgeKey – Comparison Table Section            */
/* -------------------------------------------------- */

.why-section {
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Subtle radial background glow */
.why-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(46, 227, 157, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.why-section .container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.why-section h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.why-section .subtitle {
    text-align: center;
    color: var(--color-text-dim);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Table */
.comparison-table {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Header row */
.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.75rem 1.5rem;
    align-items: center;
}

.table-header .feature-col .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-dim);
}

.table-header .forgekey-col,
.table-header .others-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.table-header .forgekey-col {
    color: var(--color-primary);
}

.table-header .others-col {
    color: var(--color-text-dim);
}

.logo-small {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

/* Data rows */
.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0.7rem 1.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background var(--transition-fast);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Highlighted row */
.table-row.highlight {
    background: rgba(46, 227, 157, 0.04);
    border-bottom: none;
}

.table-row.highlight:hover {
    background: rgba(46, 227, 157, 0.07);
}

/* Feature column */
.feature-col {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.feature-col strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

.feature-col .desc {
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

/* ForgeKey / Others columns */
.forgekey-col,
.others-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Check icon */
.icon-check {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
    filter: drop-shadow(0 0 6px rgba(46, 227, 157, 0.5));
}

/* Cross icon */
.icon-cross {
    width: 20px;
    height: 20px;
    color: #ff4d4d;
    opacity: 0.85;
}

/* Partial text */
.text-partial {
    font-size: 0.78rem;
    color: #f0a040;
    text-align: center;
    line-height: 1.3;
}

/* CTA block under the table */
.why-cta {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}

.why-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.why-cta p {
    color: var(--color-text-dim);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-primary);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    transition: all var(--transition-fast);
    box-shadow: 0 0 25px rgba(46, 227, 157, 0.25);
}

.cta-button:hover {
    background: #33ffb0;
    box-shadow: 0 0 40px rgba(46, 227, 157, 0.4);
    transform: translateY(-2px);
}

.cta-button .arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.cta-button:hover .arrow {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .why-section h2 {
        font-size: 2rem;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        padding: 1rem 1rem;
        gap: 0.25rem;
    }

    .feature-col strong {
        font-size: 0.85rem;
    }

    .feature-col .desc {
        font-size: 0.72rem;
    }

    .text-partial {
        font-size: 0.7rem;
    }

    .why-cta h3 {
        font-size: 1.4rem;
    }
}