/* ========================================
   exploit.im Landing Page - Theme Support
   ======================================== */

/* CSS Variables - Dark Theme (default) */
:root,
[data-theme="dark"] {
    --bg-primary: #0D0D0D;
    --bg-secondary: #1A1A1A;
    --bg-card: #1F1F1F;
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --border: rgba(212, 175, 55, 0.2);
    --border-hover: rgba(212, 175, 55, 0.5);
    --glow-gold: rgba(212, 175, 55, 0.25);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 2px 12px var(--glow-gold);
    
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    --gradient-gold-solid: linear-gradient(135deg, var(--gold), var(--gold-light));
    
    --font-main: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --container-width: 1200px;
    --section-padding-y: 100px;
    --section-padding-x: 24px;
}

/* CSS Variables - Light Theme */
[data-theme="light"] {
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-card: #F5F5F5;
    --gold: #B8962E;
    --gold-light: #D4AF37;
    --text-primary: #1A1A1A;
    --text-secondary: #5C5C5C;
    --border: rgba(184, 150, 46, 0.2);
    --border-hover: rgba(184, 150, 46, 0.5);
    --glow-gold: rgba(184, 150, 46, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-gold: 0 2px 8px var(--glow-gold);
    
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    --gradient-gold-solid: linear-gradient(135deg, var(--gold), var(--gold-light));
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 64px;
}

@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
}

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

ul {
    list-style: none;
}

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

code {
    font-family: var(--font-mono);
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--gold);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.header .logo {
    margin-bottom: 0;
}

.header .logo-icon {
    width: 28px;
    height: 28px;
}

.header .logo-text {
    font-size: 1rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.control-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.control-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.control-btn:hover svg {
    color: var(--gold);
}

.lang-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.control-btn:hover .lang-label {
    color: var(--gold);
}

.control-btn-register {
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border-color: transparent;
}

.control-btn-register:hover {
    opacity: 0.85;
    border-color: transparent;
    background: var(--gradient-gold);
}

/* Theme icon visibility */
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }

/* ========================================
   Typography
   ======================================== */

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--glow-gold);
}

.btn-primary:active {
    transform: scale(0.98);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px var(--section-padding-x) 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(244, 208, 63, 0.06) 0%, transparent 60%),
        var(--bg-primary);
    transition: background-color 0.3s ease;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 720px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--gold);
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

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

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Reveal Animations
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: var(--section-padding-y) 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 20px;
    transition: border-color 0.25s ease, background-color 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: var(--text-secondary);
    line-height: 1.2;
    font-size: 0.88rem;
    padding: 4px 0 4px 18px;
    position: relative;
    text-align: left;
}

.feature-list li::before {
    content: "•";
    color: var(--gold);
    font-weight: bold;
    position: absolute;
    left: 2px;
}

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works {
    padding: var(--section-padding-y) 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-primary);
}

.step-content {
    padding-top: 4px;
    flex: 1;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.step-connector {
    width: 2px;
    height: 32px;
    background: var(--border);
    margin-left: 23px;
    transition: background-color 0.3s ease;
}

/* ========================================
   Comparison Section
   ======================================== */

.comparison {
    padding: var(--section-padding-y) 0;
}

.comparison-table {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    align-items: center;
}

.table-header {
    background: var(--bg-card);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.table-row {
    border-top: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.table-row:hover {
    background-color: rgba(212, 175, 55, 0.03);
}

.table-cell {
    padding: 14px 18px;
    text-align: center;
    font-size: 0.85rem;
}

.table-cell.feature-col {
    text-align: left;
}

.table-cell.highlight {
    background-color: rgba(212, 175, 55, 0.03);
    font-weight: 600;
}

.check {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
}

.cross {
    color: #444;
    font-size: 1.1rem;
}

.partial {
    color: #666;
    font-size: 1.1rem;
}

[data-theme="light"] .cross {
    color: #AAA;
}

[data-theme="light"] .partial {
    color: #888;
}

/* Source links in comparison table */
.src {
    font-size: 0.65em;
    vertical-align: super;
    margin-left: 2px;
    line-height: 0;
}

.src a {
    color: var(--gold);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.src a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Comparison sources / footnotes */
.comparison-sources {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.comparison-sources h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.comparison-sources ol {
    list-style: decimal;
    padding-left: 1.4rem;
    margin: 0;
}

.comparison-sources li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 2px 0;
}

.comparison-sources a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.comparison-sources a:hover {
    text-decoration: underline;
}


/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 56px 0 28px;
    border-top: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand {
    flex: 0 0 260px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 4px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

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

.copy-email {
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.copy-email:hover {
    color: var(--gold);
}

.copy-email.copied {
    color: var(--gold);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   Responsive - Tablet
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding-y: 80px;
    }

    .comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-header,
    .table-row {
        min-width: 600px;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */

@media (max-width: 768px) {
    :root {
        --section-padding-y: 64px;
        --section-padding-x: 18px;
    }

    .header-inner {
        height: 56px;
    }

    .hero {
        padding: 68px var(--section-padding-x) 48px;
    }

    .hero-title {
        margin-bottom: 14px;
    }

    .hero-subtitle {
        margin-bottom: 24px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 260px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .steps {
        max-width: 100%;
    }

    .comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-header,
    .table-row {
        min-width: 600px;
    }

    .footer-content {
        flex-direction: column;
        gap: 28px;
    }

    .footer-brand {
        flex: 1 1 auto;
    }

    .footer-links {
        gap: 32px;
        flex-wrap: wrap;
    }
}

/* ========================================
   Responsive - Small Mobile
   ======================================== */

@media (max-width: 480px) {
    :root {
        --section-padding-y: 52px;
        --section-padding-x: 14px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .table-cell {
        padding: 10px 10px;
        font-size: 0.8rem;
    }

    .table-header .table-cell:nth-child(2),
    .table-header .table-cell:nth-child(3),
    .table-row .table-cell:nth-child(2),
    .table-row .table-cell:nth-child(3) {
        display: none;
    }
}

/* ========================================
   Selection & Scrollbar
   ======================================== */

::selection {
    background: var(--gold);
    color: var(--bg-primary);
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ========================================
   Focus States
   ======================================== */

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}