/* ==========================================================================
   FLIPMYSCREEN LANDING PAGE DESIGN SYSTEM (VANILLA CSS)
   ========================================================================== */

:root {
    --bg-dark: #07070c;
    --bg-darker: #030306;
    --panel-glass: rgba(14, 14, 25, 0.75);
    --panel-border: rgba(255, 255, 255, 0.07);
    --text-primary: #f5f5f9;
    --text-secondary: #9a9ab0;
    --text-muted: #5e5e70;
    
    --brand-cyan: #00f3ff;
    --brand-pink: #ff007f;
    --brand-orange: #ff9500;
    --brand-green: #39ff14;
    --brand-blue: #0066ff;
    --brand-purple: #a100ff;

    --glow-cyan: 0 0 25px rgba(0, 243, 255, 0.35);
    --glow-pink: 0 0 25px rgba(255, 0, 127, 0.35);
    
    --font-ui: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
}

code {
    font-family: var(--font-mono);
    background-color: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--brand-cyan);
}

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

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 7, 12, 0.75);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--panel-border);
    transition: var(--transition);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--brand-cyan) 0%, #fff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    font-weight: 500;
}

.nav a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--brand-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.btn-nav-download {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15) 0%, rgba(255, 0, 127, 0.15) 100%);
    border: 1px solid rgba(0, 243, 255, 0.4);
    padding: 8px 20px;
    border-radius: 30px;
    color: #fff !important;
}

.btn-nav-download:hover {
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-pink) 100%) !important;
    border-color: transparent;
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 243, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(255, 0, 127, 0.05) 0%, transparent 50%);
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-content {
    flex: 1.2;
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-cyan);
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-pink) 100%);
    color: #000;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    box-shadow: var(--glow-cyan);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-cyan), var(--glow-pink);
    filter: brightness(1.1);
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 243, 255, 0.25);
    box-shadow: 0 30px 70px rgba(0,0,0,0.6);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.visual-wrapper:hover .hero-image {
    transform: scale(1.03);
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* ==========================================================================
   SECTION COMMON HEADER
   ========================================================================== */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features {
    padding: 100px 0;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--panel-border);
}

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

.feature-card {
    background: var(--panel-glass);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 36px 30px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(0, 243, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 243, 255, 0.03);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 24px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Text Accent Colors for Features */
.text-cyan { color: var(--brand-cyan); text-shadow: 0 0 15px rgba(0,243,255,0.4); }
.text-pink { color: var(--brand-pink); text-shadow: 0 0 15px rgba(255,0,127,0.4); }
.text-orange { color: var(--brand-orange); text-shadow: 0 0 15px rgba(255,149,0,0.4); }
.text-blue { color: var(--brand-blue); text-shadow: 0 0 15px rgba(0,102,255,0.4); }
.text-green { color: var(--brand-green); text-shadow: 0 0 15px rgba(57,255,20,0.4); }
.text-purple { color: var(--brand-purple); text-shadow: 0 0 15px rgba(161,0,255,0.4); }

/* ==========================================================================
   HOW TO USE SECTION (STEP BY STEP)
   ========================================================================== */
.how-to-use {
    padding: 100px 0;
}

.steps-flow {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background: var(--panel-glass);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 28px 36px;
    transition: var(--transition);
}

.step-item:hover {
    border-color: rgba(255, 0, 127, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-pink);
    line-height: 1;
}

.step-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-info p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ==========================================================================
   HOTKEYS REFERENCE
   ========================================================================== */
.hotkeys {
    padding: 100px 0;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--panel-border);
}

.hotkeys-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.hotkey-group {
    background: var(--panel-glass);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 32px;
}

.hotkey-group h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 1.5px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.hotkey-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hotkey-row:last-child {
    border-bottom: none;
}

.kbd {
    background: #1e1e2d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 3px solid #141420;
    border-radius: 4px;
    padding: 2px 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: #ff9900;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    min-width: 32px;
    text-align: center;
    display: inline-block;
}

.desc {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
}

/* ==========================================================================
   DOWNLOAD SECTION
   ========================================================================== */
.download {
    position: relative;
    padding: 120px 0;
    border-top: 1px solid var(--panel-border);
}

.download-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.download-box {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.download-box h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}

.download-box > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.download-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.dl-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.dl-card:hover {
    border-color: var(--brand-cyan);
    background: linear-gradient(135deg, rgba(0,243,255,0.03) 0%, rgba(0,0,0,0) 100%);
    transform: translateY(-5px);
}

.dl-card:last-child:hover {
    border-color: var(--brand-pink);
    background: linear-gradient(135deg, rgba(255,0,127,0.03) 0%, rgba(0,0,0,0) 100%);
}

.dl-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.dl-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dl-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 48px;
}

.filename {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    background-color: rgba(0,0,0,0.3);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.02);
}

.btn-dl {
    width: 100%;
    background: var(--brand-cyan);
    color: #000;
    font-weight: 700;
    padding: 14px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.2);
    transition: var(--transition);
}

.btn-dl:hover {
    box-shadow: var(--glow-cyan);
    filter: brightness(1.1);
    transform: scale(1.02);
}

.btn-dl.secondary {
    background: transparent;
    border: 1.5px solid var(--brand-pink);
    color: var(--brand-pink);
    box-shadow: none;
}

.btn-dl.secondary:hover {
    background: var(--brand-pink);
    color: #fff;
    box-shadow: var(--glow-pink);
    transform: scale(1.02);
}

.dl-notice {
    font-size: 13.5px;
    color: var(--text-secondary);
    background: rgba(255, 149, 0, 0.05);
    border: 1px dashed rgba(255, 149, 0, 0.3);
    border-radius: 8px;
    padding: 16px 24px;
    display: inline-block;
    max-width: 720px;
    line-height: 1.7;
}

.dl-notice strong {
    color: var(--brand-orange);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    border-top: 1px solid var(--panel-border);
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-darker);
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding-top: 60px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hotkeys-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .download-cards {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 40px;
    }
    .nav {
        display: none; /* Hide nav links on mobile for simplicity */
    }
}

/* ==========================================================================
   TELEPROMPTER BANNER SECTION
   ========================================================================== */
.why-teleprompter {
    background: radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.03) 0%, transparent 60%);
}

.teleprompter-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.teleprompter-banner:hover {
    border-color: rgba(0, 243, 255, 0.2);
    box-shadow: 0 15px 45px rgba(0, 243, 255, 0.03);
}

.banner-icon {
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.3));
    animation: float-icon 4s ease-in-out infinite;
}

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

/* ==========================================================================
   8 STEPS MANUAL GRID & CARD STYLES
   ========================================================================== */
.guide-grid-8 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.guide-card {
    background: var(--panel-glass);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.guide-card:hover {
    border-color: rgba(0, 243, 255, 0.25);
    box-shadow: 0 20px 45px rgba(0, 243, 255, 0.04);
    transform: translateY(-4px);
}

.guide-badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-pink);
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid rgba(255, 0, 127, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.guide-content h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.guide-content p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.guide-image-box {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.guide-image-box-double {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
    display: flex;
    gap: 8px;
}

.guide-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    transition: var(--transition);
}

.guide-img:hover {
    transform: scale(1.015);
}

.guide-img-half {
    width: calc(50% - 4px);
    height: auto;
    border-radius: 4px;
    display: block;
    transition: var(--transition);
}

.guide-img-half:hover {
    transform: scale(1.02);
}

/* Responsive adjustment for 8-step grid */
@media (max-width: 992px) {
    .guide-grid-8 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==========================================================================
   LANGUAGE SWITCHER DESIGN
   ========================================================================== */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-left: 20px;
    height: 32px;
}

.btn-lang {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-lang:hover {
    color: var(--brand-cyan);
}

.btn-lang.active {
    color: var(--brand-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.15);
    font-size: 10px;
    font-family: var(--font-mono);
    pointer-events: none;
}

/* Multilingual Toggle Rules */
.lang-ko {
    display: none !important;
}

/* Block/Flex display overrides for layout components */
body.lang-active-ko .lang-en {
    display: none !important;
}

body.lang-active-ko .lang-ko {
    display: inline !important;
}

body.lang-active-ko .lang-ko.block-el {
    display: block !important;
}

body.lang-active-ko .lang-ko.flex-el {
    display: flex !important;
}

.lang-en.block-el {
    display: block;
}

.lang-en.flex-el {
    display: flex;
}

/* ==========================================================================
   CENTRAL HERO STACK LAYOUT
   ========================================================================== */
.hero-central-stack {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 40px !important;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-content-center {
    flex: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-content-center .hero-title {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-center .hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.hero-visual-full {
    flex: none !important;
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto;
}

.widescreen-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 243, 255, 0.04);
    overflow: hidden;
}

.widescreen-wrapper .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
