/* ========================================
   HLE Clone - zlabstudio
   ======================================== */

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

:root {
    --bg: #101011;
    --text: #ffffff;
    --gray: #CBCBCB;
    --dark-gray: #bbbbbb;
    --accent: #32A4C3;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
    --sans: 'General Sans', sans-serif;
    --transition: 0.5s cubic-bezier(0.2, 0, 0.8, 1);
}

html {
    font-size: 16px;
}

body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: crosshair;
}

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

/* Night mode (default) */
html.dark-mode body { background: #101011; color: #fff; }
html.light-mode body { background: #bbbbbb; color: #101011; }
html.light-mode .header-link, html.light-mode .header-logo { color: #101011; }
html.light-mode .mode-label { color: #101011; }
html.light-mode .hero-footer span { color: #101011; }
html.light-mode .typewriter-text { color: #101011; }
html.light-mode .preloader { background: #bbbbbb; }
html.light-mode .preloader-fill { background: #101011; }
html.light-mode .about-section, html.light-mode .features, html.light-mode .cta-section { color: #101011; }
html.light-mode .feature-card { border-color: rgba(0,0,0,0.15); }
html.light-mode .faq-modal-inner { background: #d0d0d0; color: #101011; }
html.light-mode .faq-item { border-color: rgba(0,0,0,0.15); }
html.light-mode .footer { border-color: rgba(0,0,0,0.15); color: #101011; }


/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2.5rem;
}

.header-left {
    flex: 1;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-logo {
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
}

.header-link {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.7;
    transition: opacity 0.3s;
    background: none;
    border: none;
    color: inherit;
    font-family: var(--mono);
    cursor: crosshair;
}

.header-link:hover {
    opacity: 1;
}

.mode-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: none;
    border: none;
    color: inherit;
    cursor: crosshair;
    font-family: var(--mono);
}

.mode-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
}

.mode-switcher:hover .mode-icon {
    transform: rotate(90deg);
}

html.light-mode .mode-icon {
    background: rgba(0,0,0,0.15);
}

.mode-label {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    padding: 2rem 2.5rem;
    z-index: 1;
}

.hero-text {
    padding-top: 1rem;
}

.typewriter-text {
    font-family: var(--mono);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.typewriter-static {
    display: none;
}

.typewriter-word {
    display: inline;
}

.typewriter-cursor {
    animation: blink 0.8s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========================================
   Hero Footer
   ======================================== */
.hero-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
}

.hero-tagline {
    font-size: 0.7rem;
    opacity: 0.4;
    max-width: 300px;
    display: block;
}

.scroll-indicator {
    font-size: 0.75rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
}

.clock {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.6;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    position: relative;
    z-index: 2;
    background: var(--bg);
    padding: 8rem 2.5rem 4rem;
}

html.light-mode .about-section {
    background: #bbbbbb;
}

.section-label {
    font-size: 0.75rem;
    opacity: 0.4;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 2rem;
}

.about-header h2 {
    font-family: var(--sans);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.4;
    max-width: 900px;
    margin-bottom: 3rem;
}

.about-description p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.6;
    max-width: 700px;
}

/* ========================================
   Features
   ======================================== */
.features {
    position: relative;
    z-index: 2;
    background: var(--bg);
    padding: 4rem 2.5rem 6rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

html.light-mode .features {
    background: #bbbbbb;
}

.feature-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 2.5rem;
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: rgba(255,255,255,0.3);
}

html.light-mode .feature-card:hover {
    border-color: rgba(0,0,0,0.3);
}

.feature-num {
    font-size: 0.7rem;
    opacity: 0.4;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0.8;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    position: relative;
    z-index: 2;
    background: var(--bg);
    padding: 8rem 2.5rem;
    text-align: center;
}

html.light-mode .cta-section {
    background: #bbbbbb;
}

.cta-section h2 {
    font-family: var(--mono);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1rem;
    opacity: 0.5;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: var(--text);
    color: var(--bg);
}

html.light-mode .cta-button {
    border-color: rgba(0,0,0,0.3);
}

html.light-mode .cta-button:hover {
    background: #101011;
    color: #fff;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    position: relative;
    z-index: 2;
    background: var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    opacity: 0.5;
}

html.light-mode .footer {
    background: #bbbbbb;
}

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

.footer-left a:hover {
    opacity: 0.6;
}

/* ========================================
   FAQ Modal
   ======================================== */
.faq-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.faq-modal.active {
    opacity: 1;
    visibility: visible;
}

.faq-modal-inner {
    width: 500px;
    max-width: 90vw;
    height: 100vh;
    background: #1a1a1b;
    padding: 3rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s var(--transition);
}

.faq-modal.active .faq-modal-inner {
    transform: translateX(0);
}

.faq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.faq-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.faq-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 2rem;
    cursor: crosshair;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.faq-close:hover {
    opacity: 1;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    padding: 1.5rem 0;
    cursor: crosshair;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s;
}

.faq-question:hover {
    opacity: 0.6;
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.6;
}

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 990px) {
    .header { padding: 1.5rem; }
    .hero { padding: 1.5rem; }
    .hero-footer { padding: 1rem 1.5rem; }
    .about-section, .features, .cta-section { padding-left: 1.5rem; padding-right: 1.5rem; }
    .features { grid-template-columns: 1fr; }
    .footer { padding: 1.5rem; }
    .mode-label { display: none; }
}

@media (max-width: 600px) {
    .header { padding: 1rem; }
    .header-center { display: none; }
    .hero { padding: 1rem; }
    .typewriter-text { font-size: 2.5rem; }
    .hero-footer { padding: 0.8rem 1rem; }
    .hero-tagline { display: none; }
    .about-section, .features, .cta-section { padding-left: 1rem; padding-right: 1rem; }
    .footer { flex-direction: column; gap: 1rem; text-align: center; padding: 1rem; }
}
