/* =========================================
   OPTIMIFY - Main Stylesheet
   Theme: Purple (#7c3aed) & White
   Font: Outfit (Google Fonts)
   ========================================= */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #7c3aed;
    --red-light: #8b5cf6;
    --red-dark: #5b21b6;
    --red-glow: rgba(124, 58, 237, 0.25);
    --black: #ffffff;
    --black-2: #f8f7fc;
    --black-3: #f1f0f7;
    --black-4: #e8e6f0;
    --white: #1a1a2e;
    --gray-100: #1a1a2e;
    --gray-300: #4a4a5e;
    --gray-400: #6e6e82;
    --gray-500: #9e9eb2;
    --border: rgba(124, 58, 237, 0.10);
    --border-red: rgba(124, 58, 237, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
    --font: 'Outfit', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--gray-100);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--red-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

strong {
    color: var(--white);
    font-weight: 600;
}

/* ---- Container ---- */
.container {
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
}

/* ---- Section ---- */
.section {
    padding: 90px 0;
}

.bg-dark-section {
    background: var(--black-2);
}

/* ---- Section Header ---- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.section-sub {
    color: var(--gray-400);
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

.section-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.08);
    color: var(--red-light);
    border: 1px solid var(--border-red);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--red) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px var(--red-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--red-glow);
    color: var(--white);
    background: linear-gradient(135deg, var(--red-light) 0%, #ff6b7a 100%);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--border);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ==============================
   HEADER
   ============================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 30px rgba(124, 58, 237, .08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    color: var(--red-light);
    flex-shrink: 0;
    display: flex;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--white);
}

.logo-accent {
    color: var(--red-light);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.45rem 0.9rem;
    color: var(--gray-300);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, .07);
}

.nav-link.active {
    color: var(--red-light);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-300);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==============================
   HERO
   ============================== */
.hero {
    position: relative;
    padding: 180px 0 110px;
    overflow: hidden;
    text-align: center;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, .06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
}

.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid var(--border-red);
    color: var(--red-light);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ==============================
   FEATURES GRID
   ============================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(124, 58, 237, .05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-red);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, .08);
    border: 1px solid var(--border-red);
    border-radius: 12px;
    margin-bottom: 1.2rem;
    color: var(--red-light);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(124, 58, 237, .15);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.feature-card p {
    color: var(--gray-400);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--red-light);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.card-link:hover {
    color: var(--white);
}

/* ==============================
   CTA SECTION
   ============================== */
.cta-section {
    margin: 0 0 90px;
}

.cta-inner {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    box-shadow: 0 20px 60px rgba(192, 21, 42, 0.4);
}

.cta-inner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
}

.cta-inner p {
    color: rgba(255, 255, 255, .75);
    margin-top: 0.4rem;
}

.cta-inner .btn-primary {
    background: var(--white);
    color: var(--red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    flex-shrink: 0;
}

.cta-inner .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--gray-100);
    color: var(--red-dark);
}

/* ==============================
   PAGE HERO (inner pages)
   ============================== */
.page-hero {
    padding: 140px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-red), transparent);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.page-hero-sub {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 540px;
    margin: 0 auto;
}

/* ==============================
   TWO-COLUMN LAYOUT (About)
   ============================== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.two-col-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin: 0.75rem 0 1rem;
}

.two-col-text p {
    color: var(--gray-400);
    margin-bottom: 0.85rem;
}

.two-col-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--border-red);
}

.info-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, .08);
    border: 1px solid var(--border-red);
    border-radius: 10px;
    color: var(--red-light);
    flex-shrink: 0;
}

.info-card h3 {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.info-card p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin: 0;
}

/* VALUES GRID */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.value-item {
    padding: 0.5rem 0;
}

.value-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--red);
    opacity: 0.35;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.value-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--gray-400);
    font-size: 0.92rem;
}

/* ==============================
   TWEAKS PAGE
   ============================== */
.tweaks-section {
    padding-top: 30px;
}

/* Tab Bar */
.tab-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--gray-300);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--border-red);
    color: var(--white);
}

.tab-btn svg {
    color: inherit;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 16px var(--red-glow);
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Tweaks Grid */
.tweaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.tweak-card {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    transition: var(--transition);
}

.tweak-card:hover {
    border-color: var(--border-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.tweak-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.tweak-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.risk-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.risk-low {
    background: rgba(34, 197, 94, .12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, .25);
}

.risk-medium {
    background: rgba(251, 146, 60, .12);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, .25);
}

.risk-high {
    background: rgba(239, 68, 68, .12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, .25);
}

.tweak-desc {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tweak-meta {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.tweak-diff {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--red-light);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ==============================
   DOWNLOADS PAGE
   ============================== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.download-card {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    transition: var(--transition);
}

.download-card:hover {
    border-color: var(--border-red);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

.dl-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.dl-icon {
    color: var(--red-light);
    display: flex;
    margin-bottom: 0.25rem;
}

.download-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.download-card>p {
    color: var(--gray-400);
    font-size: 0.9rem;
    flex-grow: 1;
}

.dl-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.dl-type {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    color: var(--gray-300);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.dl-size {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.disclaimer-box {
    background: rgba(124, 58, 237, .06);
    border: 1px solid var(--border-red);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.disclaimer-box>svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-box p {
    color: var(--gray-400);
    font-size: 0.88rem;
    margin: 0;
}

/* ==============================
   CONTACT PAGE
   ============================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.contact-info>p {
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, .08);
    border: 1px solid var(--border-red);
    border-radius: 10px;
    color: var(--red-light);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-item p {
    color: var(--gray-400);
    font-size: 0.88rem;
    margin: 0;
}

.contact-form-wrap {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-300);
}

.req {
    color: var(--red-light);
}

.form-group input,
.form-group textarea {
    background: var(--black-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.93rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .3);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .3);
    color: #f87171;
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
    background: var(--black-2);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.footer-brand .logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--white);
}

.footer-tagline {
    color: var(--gray-400);
    font-size: 0.88rem;
    margin-top: 0.6rem;
}

.footer-links h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.4rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.83rem;
}

/* ==============================
   SCROLL ANIMATIONS
   ============================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        inset: 68px 0 0;
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 99;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 0.7rem 2rem;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 130px 0 80px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.2rem;
    }

    .stat-divider {
        display: none;
    }

    .cta-inner {
        padding: 2rem 1.5rem;
    }
}

/* ── Download badge variants ── */
.dl-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

/* ── Premium card ── */
.premium-card {
    border-color: rgba(245, 158, 11, .35) !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, .04), transparent) !important;
    position: relative;
}

.premium-card:hover {
    border-color: rgba(245, 158, 11, .6) !important;
    box-shadow: 0 12px 40px rgba(245, 158, 11, .12) !important;
}

.premium-card .dl-icon {
    color: #f59e0b;
}

/* ── Locked PREMIUM button ── */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.2rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: default;
    user-select: none;
    box-shadow: 0 4px 16px rgba(245, 158, 11, .3);
    margin-top: auto;
}

.premium-note {
    font-size: 0.78rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 0.5rem;
}

.premium-note a {
    color: var(--red-light);
    font-weight: 600;
}

.premium-note a:hover {
    color: var(--red);
}

/* ==============================
   THEME TOGGLE BUTTON
   ============================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--black-3);
    color: var(--red-light);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    border-color: var(--border-red);
    background: var(--red);
    color: #fff;
    transform: scale(1.05);
}

/* Light mode: show sun, hide moon */
.icon-sun {
    display: block;
}

.icon-moon {
    display: none;
}

/* Dark mode: show moon, hide sun */
html.dark .icon-sun {
    display: none;
}

html.dark .icon-moon {
    display: block;
}

/* ==============================
   DARK MODE OVERRIDES
   ============================== */
html.dark {
    --black: #0a0a0b;
    --black-2: #111114;
    --black-3: #18181c;
    --black-4: #202028;
    --white: #f0f0f2;
    --gray-100: #f0f0f2;
    --gray-300: #b0b0b8;
    --gray-400: #8a8a9a;
    --gray-500: #5a5a6a;
    --border: rgba(255, 255, 255, 0.07);
    --border-red: rgba(124, 58, 237, 0.35);
}

html.dark .site-header {
    background: rgba(10, 10, 11, 0.7);
}

html.dark .site-header.scrolled {
    background: rgba(10, 10, 11, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

html.dark .hero-glow {
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.20) 0%, transparent 70%);
}

html.dark .hamburger span {
    background: var(--gray-300);
}

@media (max-width: 900px) {
    html.dark .main-nav {
        background: rgba(10, 10, 11, .97);
    }
}