/* ==========================================================================
   ELYSIAN READER — Landing Page Design System
   Standalone marketing page — does not modify any plugin files.
   ========================================================================== */

/* --- CSS Custom Properties (sourced from admin.css) --- */
:root {
    --er-bg: #020817;
    --er-surface: #081126;
    --er-panel: #0B1730;
    --er-border: rgba(255, 255, 255, 0.06);
    --er-accent: #00F5D4;
    --er-accent-secondary: #8A55F7;
    --er-danger: #FF00A8;
    --er-muted: #8E99AE;
    --er-text: #F5F7FA;
    --er-radius: 14px;
    --er-radius-sm: 8px;
    --er-radius-xs: 6px;
    --er-radius-card: 18px;
    --er-radius-btn: 10px;
    --er-font: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --er-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --er-primary-rgb: 0, 245, 212;
    --er-secondary: #8A55F7;
    --er-secondary-rgb: 138, 85, 247;
    --er-section-gap: 120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--er-font);
    background: var(--er-bg);
    color: var(--er-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--er-accent);
    text-decoration: none;
    transition: opacity var(--er-transition);
}

a:hover {
    opacity: 0.8;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--er-accent);
    color: #00131a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: none;
}

.skip-link:focus {
    top: 16px;
    opacity: 1;
}

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 900px;
}

.section {
    padding: var(--er-section-gap) 0;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--er-accent);
    margin-bottom: 16px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(var(--er-primary-rgb), 0.08);
    border: 1px solid rgba(var(--er-primary-rgb), 0.15);
}

.section-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--er-text);
}

.section-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--er-muted);
    line-height: 1.6;
    max-width: 600px;
}

section[id] {
    scroll-margin-top: 80px;
}

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

:focus:not(:focus-visible) {
    outline: none;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--er-radius-btn);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--er-font);
    border: none;
    cursor: pointer;
    transition: all var(--er-transition);
    line-height: 1.4;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    background: var(--er-accent);
    color: #00131a;
    box-shadow: 0 0 20px rgba(var(--er-primary-rgb), 0.15);
}

.btn--primary:hover {
    box-shadow: 0 0 30px rgba(var(--er-primary-rgb), 0.25);
    transform: translateY(-2px);
    opacity: 1;
}

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

.btn--secondary:hover {
    border-color: rgba(255,255,255,0.2);
    border-color: color-mix(in srgb, var(--er-text) 20%, transparent);
    background: rgba(255,255,255,0.03);
    background: color-mix(in srgb, var(--er-text) 3%, transparent);
    transform: translateY(-2px);
    opacity: 1;
}

.btn--ghost {
    background: transparent;
    color: var(--er-muted);
}

.btn--ghost:hover {
    color: var(--er-text);
    opacity: 1;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.lp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--er-transition);
}

.lp-nav.is-scrolled {
    background: rgba(2, 8, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--er-border);
    padding: 10px 0;
}

.lp-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--er-text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-decoration: none;
}

.lp-nav__logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--er-accent), var(--er-accent-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-nav__logo-icon svg {
    width: 20px;
    height: 20px;
    fill: #00131a;
}

.lp-nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.lp-nav__link {
    font-size: 13px;
    font-weight: 500;
    color: var(--er-muted);
    text-decoration: none;
    transition: color var(--er-transition);
    position: relative;
}

.lp-nav__link:hover {
    color: var(--er-text);
}

.lp-nav__cta {
    padding: 8px 20px;
    font-size: 13px;
}

.lp-nav__toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--er-text);
    cursor: pointer;
    padding: 4px;
}

/* Mobile menu */
.lp-mobile-menu {
    display: flex;
    visibility: hidden;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 8, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.lp-mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

.lp-mobile-menu__link {
    font-size: 20px;
    font-weight: 600;
    color: var(--er-text);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--er-border);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.lp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.lp-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 30%, rgba(var(--er-primary-rgb), 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 70%, rgba(138, 85, 247, 0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: lp-hero-ambient 20s ease-in-out infinite alternate;
}

@keyframes lp-hero-ambient {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-5%, -5%); }
}

.lp-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.lp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--er-accent);
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(var(--er-primary-rgb), 0.08);
    border: 1px solid rgba(var(--er-primary-rgb), 0.15);
    margin-bottom: 24px;
}

.lp-hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--er-accent);
    animation: lp-pulse-dot 2s ease-in-out infinite;
}

@keyframes lp-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.lp-hero__title {
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--er-text);
}

.lp-hero__title-gradient {
    background: linear-gradient(135deg, var(--er-accent), var(--er-accent-secondary), #ff00a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--er-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.lp-hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.lp-hero__demo {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--er-border);
    background: var(--er-surface);
    box-shadow: 0 0 40px rgba(var(--er-primary-rgb), 0.05);
}

.lp-hero__demo-browser {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--er-panel);
    border-bottom: 1px solid var(--er-border);
}

.lp-hero__demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.lp-hero__demo-dot--red { background: #ff5f56; }
.lp-hero__demo-dot--yellow { background: #ffbd2e; }
.lp-hero__demo-dot--green { background: #27c93f; }

.lp-hero__demo-url {
    font-size: 11px;
    color: var(--er-muted);
    padding: 4px 12px;
    background: var(--er-bg);
    border-radius: 6px;
    margin-left: auto;
    flex: 1;
    text-align: center;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-hero__demo-body {
    padding: 32px;
    position: relative;
}

.lp-hero__demo-article {
    max-width: 600px;
    margin: 0 auto;
}

.lp-hero__demo-category {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--er-muted);
    margin-bottom: 8px;
}

.lp-hero__demo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--er-text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.lp-hero__demo-text p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--er-muted);
    margin-bottom: 12px;
}

/* --- Hero Demo Progress Bar --- */
.lp-hero-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(245,247,250,0.08);
    background: color-mix(in srgb, var(--er-text) 8%, transparent);
}

.lp-hero-progress__bar {
    height: 100%;
    width: 67%;
    background: linear-gradient(90deg, var(--er-accent), var(--er-accent-secondary));
    border-radius: 0 3px 3px 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), height 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.lp-hero-progress__bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: lp-shimmer 3s linear infinite;
}

@keyframes lp-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.lp-features {
    text-align: center;
}

.lp-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    text-align: left;
}

.lp-feature-card {
    padding: 32px;
    background: var(--er-surface);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius-card);
    transition: all var(--er-transition);
    position: relative;
    overflow: hidden;
}

.lp-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    border-color: color-mix(in srgb, var(--er-text) 12%, transparent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lp-feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.lp-feature-card__icon--accent { background: rgba(var(--er-primary-rgb), 0.1); color: var(--er-accent); }
.lp-feature-card__icon--purple { background: rgba(138, 85, 247, 0.1); color: var(--er-accent-secondary); }
.lp-feature-card__icon--pink { background: rgba(255, 0, 168, 0.1); color: var(--er-danger); }

.lp-feature-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--er-text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.lp-feature-card__desc {
    font-size: 13px;
    color: var(--er-muted);
    line-height: 1.6;
}

/* ==========================================================================
   SHOWCASE — Interactive Demo
   ========================================================================== */
.lp-showcase {
    text-align: center;
}

.lp-showcase__demo {
    margin-top: 48px;
    background: var(--er-surface);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius-card);
    overflow: hidden;
    text-align: left;
}

.lp-showcase__tabs {
    display: flex;
    border-bottom: 1px solid var(--er-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lp-showcase__tab {
    padding: 14px 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--er-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: var(--er-font);
    white-space: nowrap;
    transition: all var(--er-transition);
}

.lp-showcase__tab:hover {
    color: var(--er-text);
}

.lp-showcase__tab.active {
    color: var(--er-accent);
    border-bottom-color: var(--er-accent);
}

.lp-showcase__tab-content {
    display: none;
    padding: 32px;
}

.lp-showcase__tab-content.active {
    display: block;
}

/* Showcase preview frame */
.lp-showcase__frame {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--er-bg);
    border-radius: var(--er-radius);
    overflow: hidden;
    border: 1px solid var(--er-border);
    margin-bottom: 16px;
}

.lp-showcase__frame-content {
    padding: 40px;
    max-width: 500px;
}

.lp-showcase__frame-content p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--er-muted);
    margin-bottom: 12px;
}

/* Showcase widget preview area */
.lp-showcase__widget-area {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simulated widget in showcase */
.lp-showcase__widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: rgba(8, 17, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05);
    width: 260px;
}

.lp-showcase__widget-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-showcase__widget-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lp-showcase__widget-pct {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--er-accent), var(--er-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.lp-showcase__widget-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
}

.lp-showcase__widget-fill {
    height: 100%;
    width: 67%;
    background: linear-gradient(90deg, var(--er-accent), var(--er-accent-secondary));
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lp-showcase__widget-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    animation: lp-shimmer 2s linear infinite;
}

.lp-showcase__widget-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lp-showcase__widget-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
}

.lp-showcase__widget-stat-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lp-showcase__widget-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--er-text);
    font-variant-numeric: tabular-nums;
}

/* Showcase overlay effects */
.lp-showcase__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lp-showcase__overlay.is-visible {
    opacity: 1;
}

.lp-showcase__overlay[data-overlay="grid"] {
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.lp-showcase__overlay[data-overlay="dots"] {
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

.lp-showcase__overlay[data-overlay="lines"] {
    background: repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(255,255,255,0.04) 8px, rgba(255,255,255,0.04) 9px);
}

.lp-showcase__overlay[data-overlay="noise"] {
    opacity: 0.15;
}
.lp-showcase__overlay[data-overlay="noise"].is-visible::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    mix-blend-mode: overlay;
}

/* Showcase slider */
.lp-showcase__slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.lp-showcase__slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(245,247,250,0.08);
    background: color-mix(in srgb, var(--er-text) 8%, transparent);
    outline: none;
    cursor: pointer;
}

.lp-showcase__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 2px solid var(--er-accent);
    box-shadow: 0 0 10px rgba(var(--er-primary-rgb), 0.3);
}

.lp-showcase__slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 2px solid var(--er-accent);
}

.lp-showcase__slider-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--er-accent);
    min-width: 48px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   PRESET GALLERY
   ========================================================================== */
.lp-presets {
    text-align: center;
}

.lp-presets__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
    text-align: left;
}

.lp-preset-card {
    padding: 20px 24px;
    background: var(--er-surface);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius);
    transition: all var(--er-transition);
    position: relative;
}

.lp-preset-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.15);
    border-color: color-mix(in srgb, var(--er-text) 15%, transparent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.lp-preset-card__label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--er-muted);
}

.lp-preset-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--er-text);
    margin: 4px 0 10px;
    line-height: 1.3;
}

.lp-preset-card__preview {
    height: 4px;
    border-radius: 2px;
    background: rgba(245,247,250,0.08);
    background: color-mix(in srgb, var(--er-text) 8%, transparent);
    overflow: hidden;
}

.lp-preset-card__bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Per-preset colors */
.lp-preset-card[data-preset="sunset-horizon"] .lp-preset-card__bar { background: linear-gradient(90deg, #f97316, #a855f7); width: 55%; }
.lp-preset-card[data-preset="cyberpunk-2077"] .lp-preset-card__bar { background: linear-gradient(90deg, #ff00a8, #00f5d4); width: 57%; }
.lp-preset-card[data-preset="aurora-stripe"] .lp-preset-card__bar { background: repeating-linear-gradient(45deg, #06b6d4 0, #06b6d4 4px, #ec4899 4px, #ec4899 8px); width: 62%; }
.lp-preset-card[data-preset="liquid-wave-flow"] .lp-preset-card__bar { background: linear-gradient(90deg, #06b6d4, #8b5cf6); width: 68%; }
.lp-preset-card[data-preset="segmented-reader"] .lp-preset-card__bar { background: repeating-linear-gradient(90deg, #f97316 0, #f97316 4px, transparent 4px, transparent 8px); width: 51%; }
.lp-preset-card[data-preset="elysian-luxury"] .lp-preset-card__bar { background: linear-gradient(90deg, #6366f1, #a855f7); width: 75%; }
.lp-preset-card[data-preset="midnight-slate"] .lp-preset-card__bar { background: #334155; width: 40%; }
.lp-preset-card[data-preset="arctic-frost"] .lp-preset-card__bar { background: rgba(255,255,255,0.5); width: 48%; }
.lp-preset-card[data-preset="tropical-heat"] .lp-preset-card__bar { background: repeating-linear-gradient(90deg, #10b981 0, #10b981 4px, transparent 4px, transparent 8px); width: 58%; }

/* ==========================================================================
   WIDGET STYLES
   ========================================================================== */
.lp-widgets {
    text-align: center;
}

.lp-widgets__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
    text-align: left;
}

.lp-widget-card {
    padding: 32px 24px;
    background: var(--er-surface);
    border: 1px solid var(--er-border);
    border-radius: var(--er-radius-card);
    transition: all var(--er-transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lp-widget-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    border-color: color-mix(in srgb, var(--er-text) 12%, transparent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lp-widget-card__preview {
    width: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.lp-widget-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--er-text);
    margin-bottom: 6px;
}

.lp-widget-card__desc {
    font-size: 12px;
    color: var(--er-muted);
    line-height: 1.5;
}

/* Widget style previews */
.lp-widget-preview--pill {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(8, 17, 38, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    width: 220px;
}

.lp-widget-preview--pill .lp-widget-preview__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-widget-preview--pill .lp-widget-preview__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--er-accent), var(--er-accent-secondary));
    flex-shrink: 0;
}

.lp-widget-preview--pill .lp-widget-preview__time {
    flex: 1;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.lp-widget-preview--pill .lp-widget-preview__pct {
    font-size: 16px;
    font-weight: 700;
    color: var(--er-text);
    font-variant-numeric: tabular-nums;
}

.lp-widget-preview--pill .lp-widget-preview__track {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
}

.lp-widget-preview--pill .lp-widget-preview__fill {
    height: 100%;
    width: 67%;
    background: linear-gradient(90deg, var(--er-accent), var(--er-accent-secondary));
    border-radius: 999px;
}

/* Circle preview */
.lp-widget-preview--circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(8, 17, 38, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lp-widget-preview--circle svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.lp-widget-preview--circle .lp-ring-track {
    fill: none;
    stroke: rgba(255,255,255,0.06);
    stroke-width: 5;
}

.lp-widget-preview--circle .lp-ring-fill {
    fill: none;
    stroke: url(#lp-circle-gradient);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 82.9;
}

.lp-widget-preview--circle .lp-ring-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.lp-widget-preview--circle .lp-ring-center__pct {
    font-size: 19px;
    font-weight: 700;
    color: var(--er-text);
    font-variant-numeric: tabular-nums;
}

.lp-widget-preview--circle .lp-ring-center__time {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
}

/* SaaS preview */
.lp-widget-preview--saas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(8, 17, 38, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    width: 220px;
}

.lp-widget-preview--saas .lw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-widget-preview--saas .lw-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lp-widget-preview--saas .lw-pct {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--er-accent), var(--er-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-widget-preview--saas .lw-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
}

.lp-widget-preview--saas .lw-fill {
    height: 100%;
    width: 67%;
    background: linear-gradient(90deg, var(--er-accent), var(--er-accent-secondary));
    border-radius: 999px;
}

.lp-widget-preview--saas .lw-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lp-widget-preview--saas .lw-stat {
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lp-widget-preview--saas .lw-stat-label {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lp-widget-preview--saas .lw-stat-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--er-text);
}

/* Minimal preview */
.lp-widget-preview--minimal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 12px 16px;
}

.lp-widget-preview--minimal .lw-pct {
    font-size: 26px;
    font-weight: 300;
    color: var(--er-text);
    opacity: 0.9;
    font-variant-numeric: tabular-nums;
}

.lp-widget-preview--minimal .lw-time {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}

.lp-widget-preview--minimal::before,
.lp-widget-preview--minimal::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--er-muted), transparent);
    opacity: 0.3;
}

/* ==========================================================================
   COMPARISON
   ========================================================================== */
.lp-comparison {
    text-align: center;
}

.lp-comparison__table-wrap {
    overflow-x: auto;
    margin-top: 48px;
    text-align: left;
}

.lp-comparison__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lp-comparison__table th,
.lp-comparison__table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--er-border);
    text-align: left;
}

.lp-comparison__table th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--er-muted);
    border-bottom: 2px solid var(--er-border);
}

.lp-comparison__table td:first-child {
    font-weight: 600;
    color: var(--er-text);
}

.lp-comparison__table td:nth-child(2) {
    color: var(--er-accent);
    font-weight: 500;
}

.lp-comparison__table td:nth-child(3) {
    color: var(--er-muted);
}

.lp-comparison__check {
    color: var(--er-accent);
}

.lp-comparison__cross {
    color: var(--er-muted);
    opacity: 0.4;
}

.lp-comparison__highlight {
    background: rgba(var(--er-primary-rgb), 0.03);
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.lp-how {
    text-align: center;
}

.lp-how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    text-align: center;
    position: relative;
}

.lp-how__grid::after {
    content: '';
    position: absolute;
    top: 44px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--er-accent), transparent 60%);
    opacity: 0.3;
}

.lp-how__step {
    position: relative;
}

.lp-how__step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--er-accent), var(--er-accent-secondary));
    color: #00131a;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.lp-how__step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--er-text);
    margin-bottom: 8px;
}

.lp-how__step-desc {
    font-size: 13px;
    color: var(--er-muted);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.lp-faq {
    text-align: center;
}

.lp-faq__list {
    max-width: 700px;
    margin: 48px auto 0;
    text-align: left;
}

.lp-faq__item {
    border-bottom: 1px solid var(--er-border);
}

.lp-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    background: transparent;
    border: none;
    color: var(--er-text);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--er-font);
    cursor: pointer;
    text-align: left;
    transition: color var(--er-transition);
}

.lp-faq__question:hover {
    color: var(--er-accent);
}

.lp-faq__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--er-transition);
    color: var(--er-muted);
}

.lp-faq__item.is-open .lp-faq__icon {
    transform: rotate(180deg);
    color: var(--er-accent);
}

.lp-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.lp-faq__item.is-open .lp-faq__answer {
    max-height: 600px;
    padding-bottom: 20px;
}

.lp-faq__answer-inner {
    font-size: 14px;
    color: var(--er-muted);
    line-height: 1.7;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.lp-cta {
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.lp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(var(--er-primary-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.lp-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.lp-cta__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.lp-cta__subtitle {
    font-size: 16px;
    color: var(--er-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.lp-cta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.lp-cta__note {
    margin-top: 20px;
    font-size: 12px;
    color: var(--er-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.lp-footer {
    padding: 48px 0;
    border-top: 1px solid var(--er-border);
    text-align: center;
}

.lp-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.lp-footer__copy {
    font-size: 12px;
    color: var(--er-muted);
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.lp-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.lp-reveal--left {
    transform: translateX(-30px);
}

.lp-reveal--left.is-visible {
    transform: translateX(0);
}

.lp-reveal--right {
    transform: translateX(30px);
}

.lp-reveal--right.is-visible {
    transform: translateX(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .lp-features__grid { grid-template-columns: repeat(2, 1fr); }
    .lp-presets__grid { grid-template-columns: repeat(2, 1fr); }
    .lp-widgets__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .lp-how__grid { grid-template-columns: 1fr; gap: 40px; }
    .lp-how__grid::after { display: none; }
    .lp-widgets__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    :root { --er-section-gap: 60px; }

    .lp-nav__links { display: none; }
    .lp-nav__toggle { display: block; }

    .lp-hero { min-height: auto; padding: 100px 20px 60px; }
    .lp-hero__demo-body { padding: 20px; }
    .lp-hero__demo-title { font-size: 18px; }

    .lp-features__grid { grid-template-columns: 1fr; gap: 16px; }
    .lp-presets__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .lp-widgets__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .lp-how__grid { grid-template-columns: 1fr; gap: 40px; }
    .lp-how__grid::after { display: none; }

    .lp-showcase__tab { padding: 12px 16px; font-size: 11px; }
    .lp-showcase__tab-content { padding: 20px; }
    .lp-showcase__frame { height: 250px; }
    .lp-showcase__frame-content { padding: 20px; }

    .lp-comparison__table th,
    .lp-comparison__table td { padding: 12px 14px; font-size: 12px; }

    .lp-footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .lp-presets__grid { grid-template-columns: 1fr; }
    .lp-widgets__grid { grid-template-columns: 1fr; }
    .lp-hero__actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   MISC ANIMATIONS
   ========================================================================== */
@keyframes lp-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.lp-float {
    animation: lp-float 4s ease-in-out infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .lp-reveal { opacity: 1; transform: none; }
}

/* Selection */
::selection {
    background: rgba(var(--er-primary-rgb), 0.2);
    color: var(--er-text);
}
