/* ===== Alice CSS — Inspired by alice.yandex.ru ===== */

:root {
    --primary: #7a55ff;
    --primary-light: #a88cff;
    --primary-dark: #5a35df;
    --accent: #55ffc2;
    --gradient: linear-gradient(135deg, #7a55ff, #32bbe8, #55ffc2);
    --gradient-btn: linear-gradient(135deg, #7a55ff, #32bbe8);
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --surface: #f2f2f2;
    --surface-hover: #e8e8e8;
    --text: rgba(0, 0, 0, 0.9);
    --text-secondary: rgba(0, 0, 0, 0.55);
    --border: rgba(0, 0, 0, 0.08);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container: 1200px;
}

[data-theme="dark"] {
    --bg: #0f0f0f;
    --bg-alt: #191919;
    --surface: #1e1e1e;
    --surface-hover: #2a2a2a;
    --text: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f0f0f;
        --bg-alt: #191919;
        --surface: #1e1e1e;
        --surface-hover: #2a2a2a;
        --text: rgba(255, 255, 255, 0.9);
        --text-secondary: rgba(255, 255, 255, 0.5);
        --border: rgba(255, 255, 255, 0.08);
        --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
    }
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ===== Header / Navigation ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

[data-theme="dark"] .site-header,
:root:not([data-theme="light"]) .site-header {
    background: rgba(15, 15, 15, 0.8);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .site-header {
        background: rgba(15, 15, 15, 0.8);
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
}

.logo svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}
.logo:hover svg { transform: scale(1.1); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.7;
    transition: var(--transition);
    position: relative;
}
.main-nav a:hover { opacity: 1; }
.main-nav a.active { opacity: 1; color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}
.theme-toggle:hover { background: var(--surface-hover); }

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--text);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(122, 85, 255, 0.08) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, -2%) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

/* Logo Icon */
.oknyx-icon {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.oknyx-icon svg {
    filter: drop-shadow(0 0 40px rgba(122, 85, 255, 0.5));
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 40px rgba(122, 85, 255, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 60px rgba(122, 85, 255, 0.7)); }
}

.hero-section h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(122, 85, 255, 0.3);
}

.btn-gradient {
    background: var(--gradient-btn);
    color: white;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(122, 85, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-xs);
}

/* ===== Features Section ===== */
.features-section {
    padding: 120px 24px;
}

.features-section h2,
.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.features-section .section-text,
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 64px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-btn);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: white;
}

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

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

/* ===== Products Section ===== */
.products-section {
    padding: 120px 24px;
    background: var(--bg-alt);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.product-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.product-card .description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.product-features {
    text-align: left;
    margin-bottom: 24px;
}

.product-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

/* ===== Skills Section ===== */
.skills-section {
    padding: 120px 24px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: var(--container);
    margin: 0 auto;
}

.skill-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.skill-card:hover {
    background: var(--surface-hover);
    transform: translateX(4px);
}

.skill-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-btn);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.skill-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.skill-card p { font-size: 13px; color: var(--text-secondary); }

/* ===== CTA Section ===== */
.cta-section {
    padding: 120px 24px;
    text-align: center;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(122, 85, 255, 0.06) 0%, transparent 70%);
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section .section-text {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto 40px;
}

/* ===== Chat Demo ===== */
.chat-demo {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    text-align: left;
}

.chat-messages { margin-bottom: 16px; }

.chat-message {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 15px;
    animation: chatFade 0.3s ease;
}
.chat-message.user {
    background: var(--primary);
    color: white;
    margin-left: 40px;
    border-bottom-right-radius: 4px;
}
.chat-message.bot {
    background: var(--bg);
    margin-right: 40px;
    border-bottom-left-radius: 4px;
}

@keyframes chatFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-input-area {
    display: flex;
    gap: 8px;
}
.chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    font-family: var(--font);
    transition: border-color 0.2s;
}
.chat-input:focus { outline: none; border-color: var(--primary); }
.chat-send {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-send:hover { background: var(--primary-dark); }

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 64px 24px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: var(--container);
    margin: 0 auto 48px;
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-secondary); font-size: 14px; max-width: 280px; }

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    opacity: 0.6;
}

.footer-col a {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .hero-section { min-height: 80vh; padding: 100px 20px 60px; }
    .features-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
