/* ======================================================
   EasyHotCorners Landing Page — Premium Dark Theme
   ====================================================== */

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

:root {
    --bg:          #050508;
    --bg-card:     rgba(15, 15, 23, 0.7);
    --bg-elevated: rgba(26, 26, 38, 0.6);
    --border:      rgba(42, 42, 58, 0.5);
    --text:        #e2e2e9;
    --text-muted:  #9494b8;
    --accent:      #a78bfa;
    --accent-glow: rgba(167, 139, 250, 0.25);
    --white:       #ffffff;
    --radius:      16px;
    --transition:  .35s cubic-bezier(.16, 1, .3, 1);
    --font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { 
    scroll-behavior: smooth; 
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050508;
}
::-webkit-scrollbar-thumb {
    background: #1e1e2f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2b2b3f;
}

a { 
    color: var(--accent); 
    text-decoration: none; 
    transition: color var(--transition); 
}
a:hover { 
    color: var(--white); 
}

code {
    font-family: 'Fira Code', monospace;
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: .85em;
    color: #ffd866;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ===== CANVAS BACKGROUND ===== */
#canvas-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0d0d18 0%, #050508 100%);
}

/* ===== CORNER GLOWS ===== */
.corner-glow {
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(100px);
    background: var(--accent);
}
.corner-glow--tl { top: -100px; left: -100px; background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%); }
.corner-glow--tr { top: -100px; right: -100px; background: radial-gradient(circle, rgba(192, 132, 252, 0.4) 0%, transparent 70%); }
.corner-glow--bl { bottom: -100px; left: -100px; background: radial-gradient(circle, rgba(129, 140, 248, 0.4) 0%, transparent 70%); }
.corner-glow--br { bottom: -100px; right: -100px; background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%); }
.corner-glow.active { opacity: .7; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%);
    color: #050508;
    box-shadow: 0 4px 25px rgba(167, 139, 250, 0.35);
}
.btn--primary:hover {
    background: linear-gradient(135deg, #b9a0ff 0%, #93a5ff 100%);
    color: #050508;
    box-shadow: 0 4px 35px rgba(167, 139, 250, 0.5);
    transform: translateY(-2px);
}

.btn--outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-color: var(--border);
    backdrop-filter: blur(8px);
}
.btn--outline:hover {
    border-color: var(--accent);
    background: rgba(167, 139, 250, 0.08);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
}
.btn--ghost:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hero__logo-wrapper {
    display: inline-block;
    animation: float 5s ease-in-out infinite;
    margin-bottom: 28px;
}

.hero__logo {
    filter: drop-shadow(0 0 35px rgba(167, 139, 250, 0.45));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(2deg); }
}

.hero__title {
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    line-height: 1.15;
}
.hero__title-easy  { color: #a1a1aa; }
.hero__title-hot   { 
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #818cf8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero__title-corners { color: var(--white); }

.hero__subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__version {
    margin-top: 24px;
    font-size: .8rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    color: var(--text-muted);
    animation: bob 2.2s ease-in-out infinite;
    opacity: .7;
    z-index: 2;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

/* ===== SECTION SHARED ===== */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 56px;
    font-size: 1.05rem;
}

/* ===== INTERACTIVE DEMO ===== */
.demo {
    padding: 100px 0 20px;
    position: relative;
    z-index: 2;
}

.demo-monitor {
    max-width: 650px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-screen {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #0d0d18;
    border: 12px solid #1a1a24;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

.demo-desktop {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f1c2c, #928dab);
    position: relative;
}

.demo-window {
    width: 60%;
    height: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    overflow: hidden;
}

.demo-window-header {
    background: rgba(0,0,0,0.2);
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}
.demo-window-header span {
    width: 8px; height: 8px; border-radius: 50%; background: #555;
}

.demo-stand {
    width: 80px;
    height: 35px;
    background: linear-gradient(to bottom, #1a1a24, #0f0f16);
    position: relative;
}
.demo-stand::after {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px; height: 100%;
    background: rgba(255,255,255,0.02);
}

.demo-base {
    width: 180px;
    height: 8px;
    background: #222230;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.demo-controls {
    text-align: center;
}

/* Carousel Structure */
.demo-carousel {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.demo-slide {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

/* Nav Buttons */
.demo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}
.demo-nav:hover {
    background: rgba(167, 139, 250, 0.8);
    border-color: transparent;
    transform: translateY(-50%) scale(1.05);
}
.demo-prev { left: 16px; }
.demo-next { right: 16px; }

/* Desktop Icons Animation */
.demo-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.demo-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.85);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    animation: toggleIcons 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes toggleIcons {
    0%, 48% { opacity: 1; transform: scale(1); }
    52%, 85% { opacity: 0; transform: scale(0.8); }
    90%, 100% { opacity: 1; transform: scale(1); }
}

/* Base Shared Styles */
.demo-corner-trigger {
    position: absolute;
    width: 180px;
    height: 180px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    animation: pulseCorner 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.demo-corner-tl {
    top: 0; left: 0;
    background: radial-gradient(circle at top left, rgba(167, 139, 250, 0.8) 0%, transparent 60%);
    transform-origin: top left;
}

.demo-corner-bl {
    bottom: 0; left: 0;
    background: radial-gradient(circle at bottom left, rgba(167, 139, 250, 0.8) 0%, transparent 60%);
    transform-origin: bottom left;
}

.demo-cursor {
    position: absolute;
    z-index: 10;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.5));
    transition: none;
}

.demo-action-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(167, 139, 250, 0.95);
    color: #050508;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0;
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
    pointer-events: none;
    z-index: 5;
    animation: showAction 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.demo-window {
    animation: shrinkWindow 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* Cursors */
.cursor-tl { animation: moveCursorTL 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite; }
.cursor-bl { animation: moveCursorBL 4.5s cubic-bezier(0.25, 1, 0.5, 1) infinite; }

@keyframes moveCursorTL {
    0% { top: 60%; left: 40%; }
    15% { top: 60%; left: 40%; }
    35% { top: -2px; left: -2px; }
    50% { top: -2px; left: -2px; }
    70% { top: 60%; left: 40%; }
    100% { top: 60%; left: 40%; }
}

@keyframes moveCursorBL {
    0% { top: 40%; left: 40%; }
    15% { top: 40%; left: 40%; }
    35% { top: calc(100% - 30px); left: -2px; }
    50% { top: calc(100% - 30px); left: -2px; }
    70% { top: 40%; left: 40%; }
    100% { top: 40%; left: 40%; }
}

@keyframes pulseCorner {
    0%, 28% { opacity: 0; transform: scale(0.5); }
    35% { opacity: 1; transform: scale(1.1); }
    50% { opacity: 1; transform: scale(1); }
    55%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes showAction {
    0%, 48% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    52% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    56% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    90%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

@keyframes shrinkWindow {
    0%, 48% { transform: translate(-50%, -50%) scale(1); opacity: 1; border-color: rgba(255,255,255,0.1); }
    52%, 85% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; border-color: rgba(167, 139, 250, 0.8); }
    90%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; border-color: rgba(255,255,255,0.1); }
}

/* ===== FEATURES ===== */
.features {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), opacity 0.8s ease;
    opacity: 0;
    transform: translateY(40px);
    overflow: hidden;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Spotlight Hover Effect */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        300px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(167, 139, 250, 0.07),
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 12px 40px rgba(167, 139, 250, 0.08);
    transform: translateY(-5px);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--bg-elevated);
    margin-bottom: 24px;
    color: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ===== ACTIONS ===== */
.actions {
    padding: 100px 0;
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 15, 0.4);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.actions__list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.action-pill {
    padding: 12px 26px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: rgba(15, 15, 23, 0.6);
    font-size: .95rem;
    color: var(--text);
    transition: all var(--transition);
    cursor: default;
    backdrop-filter: blur(4px);
}
.action-pill:hover {
    border-color: var(--accent);
    color: var(--white);
    background: rgba(167, 139, 250, 0.08);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.2);
    transform: translateY(-2px);
}

/* ===== SCRIPTING ===== */
.scripting {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.code-window {
    max-width: 680px;
    margin: 0 auto 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0,0,0,0.5);
    background: #0d0d14;
}

.code-window__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(26, 26, 38, 0.8);
    border-bottom: 1px solid var(--border);
}

.code-window__dots {
    display: flex;
    gap: 6px;
}
.code-window__dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.code-window__dots span:nth-child(1) { background: #ff5f56; }
.code-window__dots span:nth-child(2) { background: #ffbd2e; }
.code-window__dots span:nth-child(3) { background: #27c93f; }

.code-window__title {
    font-size: .8rem;
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.5px;
}

/* Custom Prism Theme Overrides */
pre[class*="language-"] {
    background: #0d0d14 !important;
    margin: 0 !important;
    padding: 24px 28px !important;
    border-radius: 0 !important;
    border: none !important;
}
code[class*="language-"] {
    font-family: 'Fira Code', monospace !important;
    font-size: .9rem !important;
    line-height: 1.7 !important;
    text-shadow: none !important;
}

.scripting__hint {
    text-align: center;
    font-size: .9rem;
    color: var(--text-muted);
}

/* ===== DOWNLOAD CTA ===== */
.download-cta {
    padding: 120px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(167, 139, 250, 0.12), transparent 70%);
}
.download-cta h2 {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}
.download-cta p {
    color: var(--text-muted);
    margin-bottom: 36px;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 50px 0;
    position: relative;
    z-index: 2;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
}

.footer__links {
    display: flex;
    gap: 32px;
}
.footer__links a {
    color: var(--text-muted);
    font-size: .95rem;
    transition: color var(--transition);
}
.footer__links a:hover { 
    color: var(--accent); 
}

.footer__copy {
    font-size: .85rem;
    color: var(--text-muted);
}
.footer__copy a {
    color: var(--accent);
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .hero__buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 300px; margin: 0 auto; }
    .features__grid { grid-template-columns: 1fr; }
    .footer__links { gap: 20px; }
}
