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

:root {
    --bg: #ffffff;
    --bg-card: #f8f8f5;
    --text: #111111;
    --text-secondary: #555555;
    --border: #e5e5e5;
    --purple: #5a3d6a;
    --purple-light: #8b6b9e;
    --purple-bg: #6b4c80;
    --gray-shape: #c5c5c5;
    --icon-bg: #e8e8e8;
    --icon-color: #666;
}

[data-theme="dark"] {
    --bg: #1a1a1a;
    --bg-card: #252525;
    --text: #ffffff;
    --text-secondary: #aaaaaa;
    --border: #333333;
    --purple: #9b7cb8;
    --purple-light: #b99ad6;
    --purple-bg: #7a5c96;
    --gray-shape: #555555;
    --icon-bg: #3a3a3a;
    --icon-color: #b0b0b0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left { flex: 1; }

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cat-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(150, 150, 150, 0.8));
    transition: all 0.3s;
}

[data-theme="dark"] .cat-logo {
    filter: drop-shadow(0 0 12px rgba(180, 180, 180, 0.6)) drop-shadow(0 0 20px rgba(155, 124, 184, 0.4));
}

.logo-text {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-top: 2px;
}

.nav-center {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: var(--text);
}

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

.btn-start {
    padding: 12px 30px;
    border: 2px solid var(--text);
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-start:hover {
    background: var(--text);
    color: var(--bg);
}

[data-theme="dark"] .btn-start {
    background: var(--purple-bg);
    border-color: var(--purple-bg);
    color: white;
}

[data-theme="dark"] .btn-start:hover {
    background: var(--purple);
    border-color: var(--purple);
}

.btn-user {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.controls-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 0 60px;
    max-width: 1400px;
    margin: 10px auto 0;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 16px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--bg);
}

.toggle-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.theme-toggle {
    width: 50px;
    height: 28px;
    border-radius: 14px;
    border: none;
    background: var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: background 0.3s;
}

.sun-icon { color: #f5a623; font-size: 12px; z-index: 2; }
.moon-icon { color: #8b7bb5; font-size: 12px; z-index: 2; }

.lang-btn {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn i { font-size: 10px; }

.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 60px 40px;
}

.hero {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

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

.cat-scene {
    position: relative;
    width: 420px;
    height: 420px;
}

.bg-shape {
    position: absolute;
    border-radius: 30px;
    transform: rotate(45deg);
}

.shape-purple {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4a2d5a 0%, #6b4c80 100%);
    top: 40px;
    left: 60px;
    box-shadow: 0 0 50px rgba(107, 76, 128, 0.6);
}

[data-theme="dark"] .shape-purple {
    background: linear-gradient(135deg, #5a3d6a 0%, #8b6baa 100%);
    box-shadow: 0 0 70px rgba(139, 107, 170, 0.7);
}

.shape-light {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #7a5c96 0%, #a88bc4 100%);
    top: 0;
    left: 0;
    opacity: 0.85;
}

[data-theme="dark"] .shape-light {
    background: linear-gradient(135deg, #8b6b9e 0%, #b99ad6 100%);
    opacity: 0.9;
}

.shape-small {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #888 0%, #aaa 100%);
    bottom: 40px;
    left: 10px;
    opacity: 0.7;
}

[data-theme="dark"] .shape-small {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    opacity: 0.8;
}

.cat-main {
    position: absolute;
    width: 380px;
    height: 380px;
    top: 10px;
    left: 20px;
    z-index: 10;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(150, 150, 150, 0.8));
    transition: all 0.3s;
}

[data-theme="dark"] .cat-main {
    filter: drop-shadow(0 0 15px rgba(180, 180, 180, 0.6)) drop-shadow(0 0 30px rgba(155, 124, 184, 0.5));
}

.hero-right { flex: 1; }

.hero-right h1 {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-right p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 380px;
    line-height: 1.6;
}

.btn-learn {
    padding: 14px 35px;
    border: 2px solid var(--text);
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-learn:hover {
    background: var(--text);
    color: var(--bg);
}

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

.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 45px 30px 40px;
    text-align: center;
    transition: all 0.3s;
}

[data-theme="dark"] .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.feature-icon {
    width: 75px;
    height: 75px;
    background: var(--icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: var(--icon-color);
    transition: all 0.3s;
}

[data-theme="dark"] .feature-icon {
    background: rgba(155, 124, 184, 0.2);
    color: var(--purple-light);
    box-shadow: 0 0 20px rgba(155, 124, 184, 0.3);
}

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

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

.footer {
    border-top: 1px solid var(--border);
    padding: 40px 60px;
    margin-top: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--text);
    color: var(--bg);
}

.footer-right { text-align: right; }

.footer-right h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

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

@media (max-width: 1100px) {
    .header { padding: 20px 30px; }
    .controls-bar { padding: 0 30px; }
    .main { padding: 40px 30px; }
    .footer { padding: 30px; }
}

@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-right p { margin-left: auto; margin-right: auto; }
    .features { grid-template-columns: 1fr; }
    .nav-center { display: none; }
    .footer-content { flex-direction: column; gap: 30px; }
    .footer-right { text-align: left; }
}
