/* ================================================================
   Link Reactor — Landing Page Styles
   "Quantum Core" — Clean & Elegant
   ================================================================ */

:root {
    --bg: #0f0a06;
    --surface: #1a120c;
    --surface2: #241a12;
    --border: #2e2018;
    --border-light: #3a2a20;
    --text: #f5f0eb;
    --text-secondary: #a89a90;
    --text-muted: #73655a;
    --orange: #f97316;
    --orange-hover: #fb923c;
    --orange-bg: rgba(249, 115, 22, 0.08);
    --orange-light: rgba(249, 115, 22, 0.2);
    --red: #ef4444;
    --amber: #f59e0b;
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================================
   HEADER
   ================================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 10, 6, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1em;
}

.logo-text {
    background: linear-gradient(135deg, #fff 0%, #fdba74 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition);
}

.nav a:hover {
    color: var(--orange);
}

.lang-switcher select {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
}

.lang-switcher select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
}

/* ================================================================
   SECTION HEADER
   ================================================================ */

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

.section-header h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--orange-bg);
    color: var(--orange);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid var(--orange-light);
}

.hero-content h1 {
    font-size: 2.6em;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #fdba74 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    flex-shrink: 0;
}

.hero-icon-bg {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--orange-bg), rgba(249, 115, 22, 0.02));
    border: 2px solid var(--orange-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 80px rgba(249, 115, 22, 0.25), inset 0 0 40px rgba(249, 115, 22, 0.08);
    animation: reactor-pulse 3s ease-in-out infinite;
}

.hero-icon-bg svg {
    width: 60%;
    height: 60%;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.5));
    animation: spin-slow 12s linear infinite;
}

@keyframes reactor-pulse {
    0%, 100% { 
        box-shadow: 0 0 80px rgba(249, 115, 22, 0.25), inset 0 0 40px rgba(249, 115, 22, 0.08);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 120px rgba(249, 115, 22, 0.4), inset 0 0 60px rgba(249, 115, 22, 0.15);
        transform: scale(1.03);
    }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

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

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-hero {
    width: 100%;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 700;
    border-radius: var(--radius);
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */

.how-it-works {
    padding: 80px 0;
    background: var(--surface);
}

.how-blocks {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.how-block {
    display: flex;
    gap: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.how-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--orange), var(--red));
    opacity: 0;
    transition: opacity var(--transition);
}

.how-block:hover {
    border-color: var(--orange);
}

.how-block:hover::before {
    opacity: 1;
}

.how-icon {
    font-size: 40px;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--orange-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-content {
    flex: 1;
}

.how-content h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 8px;
}

.how-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.how-example {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.how-code {
    font-family: monospace;
    font-size: 12px;
    background: var(--surface2);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.how-code.full {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.how-code.highlight {
    background: var(--orange-bg);
    color: var(--orange);
    border: 1px solid var(--orange-light);
}

.how-arrow {
    color: var(--orange);
    font-size: 18px;
    font-weight: 700;
}

.how-label {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* ================================================================
   FEATURES
   ================================================================ */

.features {
    padding: 80px 0;
}

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

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}

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

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.feature-card h3 {
    font-size: 1.05em;
    font-weight: 700;
    margin-bottom: 6px;
}

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

/* ================================================================
   FAQ
   ================================================================ */

.faq {
    padding: 80px 0;
    background: var(--surface);
}

.faq-grid {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq details {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    cursor: pointer;
    transition: all var(--transition);
}

.faq details:hover {
    border-color: var(--orange);
}

.faq summary {
    font-weight: 600;
    font-size: 14px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '▾';
    font-size: 16px;
    color: var(--orange);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: rotate(180deg);
}

.faq details p {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.faq details a {
    color: var(--orange);
    text-decoration: none;
}

.faq details a:hover {
    text-decoration: underline;
}

/* ================================================================
   CTA
   ================================================================ */

.cta {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.04), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 28px;
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer p {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--orange);
}

/* ================================================================
   RESPONSIVE — Mobile First
   ================================================================ */

/* Tablet */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-icon-bg {
        width: 200px;
        height: 200px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header .container {
        height: 52px;
        padding: 0 16px;
    }
    
    .nav a {
        display: none;
    }
    
    .nav {
        gap: 0;
    }
    
    .lang-switcher select {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .logo-text {
        font-size: 0.9em;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero-content h1 {
        font-size: 1.8em;
        letter-spacing: -0.5px;
    }
    
    .hero-content p {
        font-size: 0.95em;
    }
    
    .hero-badge {
        font-size: 10px;
        padding: 4px 12px;
    }
    
    .hero-icon-bg {
        width: 140px;
        height: 140px;
        margin: 20px auto 0;
    }
    
    .section-header h2 {
        font-size: 1.5em;
    }
    
    .how-it-works,
    .features,
    .faq,
    .cta {
        padding: 48px 0;
    }
    
    .how-block {
        flex-direction: column;
        padding: 20px;
    }
    
    .how-icon {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }
    
    .how-example {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .how-code.full {
        max-width: 100%;
    }
    
    .how-arrow {
        transform: rotate(90deg);
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5em;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }
    
    .hero-icon-bg {
        width: 120px;
        height: 120px;
    }
}

/* ================================================================
   HERO — Desktop
   ================================================================ */

.hero .container {
    display: block;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 40px;
}

.hero-badge,
.hero-content h1,
.hero-content p,
.hero-buttons {
    grid-column: 1;
    justify-self: start;
}

.hero-visual {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
}

.hero-icon-bg {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--orange-bg), rgba(249, 115, 22, 0.02));
    border: 2px solid var(--orange-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 80px rgba(249, 115, 22, 0.25), inset 0 0 40px rgba(249, 115, 22, 0.08);
    animation: reactor-pulse 3s ease-in-out infinite;
}

.hero-icon-bg svg {
    width: 60%;
    height: 60%;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.5));
    animation: spin-slow 12s linear infinite;
}

.hero-badge {
    margin-bottom: 8px;
}

.hero-content h1 {
    margin-bottom: 16px;
}

.hero-content p {
    margin-bottom: 24px;
}

/* ================================================================
   HERO — Mobile
   ================================================================ */

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        row-gap: 20px;
        text-align: center;
    }

    .hero-badge,
    .hero-content h1,
    .hero-content p,
    .hero-buttons {
        justify-self: center;
        grid-column: 1;
    }

    .hero-visual {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
        width: 100%;
        margin: 20px 0;
    }

    .hero-icon-bg {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        box-shadow: 
            0 0 30px rgba(249, 115, 22, 0.3),
            inset 0 0 20px rgba(249, 115, 22, 0.1);
        animation: hero-float 4s ease-in-out infinite;
    }

    .hero-badge {
        order: 1;
        margin-bottom: 8px;
    }

    .hero-content h1 {
        order: 2;
        margin-bottom: 16px;
    }

    .hero-visual {
        order: 3;
        margin: 20px auto;
    }

    .hero-content p {
        order: 4;
        margin-bottom: 24px;
    }

    .hero-buttons {
        order: 5;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
}

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