@font-face {
    font-family: "Space Grotesk";
    src: url(../fonts/SpaceGrotesk-VariableFont_wght.ttf);
    font-display: swap;
}

:root {
    --primary: #1e3c72;
    --primary-dark: #0f2b4f;
    --secondary: #ffb347;
    --accent: #70c8ff;
    --gray-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #475569;
    --white: #ffffff;
    --shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
    --border-radius-card: 28px;
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

#header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(4px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eef2f6;
    padding: 12px 0;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo span {
    font-family: 'Space Grotesk', monospace;
}

.header-notice {
    font-size: 0.75rem;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 40px;
    color: #334155;
}

.main-nav {
    display: block;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    font-weight: 500;
    color: #1e293b;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-list a:hover {
    color: var(--secondary);
}

.mobile-menu-toggle,
.mobile-menu-close {
    display: none !important;
}

.hero {
    padding: 64px 0 48px;
    background: linear-gradient(135deg, #eef6ff, #ffffff);
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #1e3c72, #2b5a8c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn img {
    height: 52px;
    width: auto;
    transition: transform 0.2s;
}

.store-btn:hover img {
    transform: scale(1.02);
}

.hero-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 48px;
    box-shadow: var(--shadow);
}

.stats-bar {
    background: var(--primary);
    padding: 32px 0;
    color: white;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 24px;
}

.stat-item b {
    font-size: 2.2rem;
    display: block;
    font-weight: 800;
}

.stat-item span {
    font-size: 1rem;
    opacity: 0.85;
}

.features-orbital {
    padding: 80px 0;
    background: var(--gray-bg);
    width: 100%;
    overflow-x: hidden;
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-head h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.orbital-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 650px;
    margin: 40px 0;
}

.center-image {
    width: 600px;
    height: 600px;
    border-radius: 40px;
    overflow: hidden;
    z-index: 2;
}

.center-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s;
}

.orbital-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.feature-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    padding: 12px 18px;
    border-radius: 80px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    z-index: 5;
}

.feature-item:hover {
    transform: scale(1.02);
    background: white;
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.feature-item[data-pos="n1"] {
    top: 5%;
    left: 5%;
    transform: translateX(-20px);
}

.feature-item[data-pos="n2"] {
    top: 25%;
    left: -2%;
    transform: translateX(-30px);
}

.feature-item[data-pos="n3"] {
    top: 48%;
    left: -2%;
    transform: translateX(-30px);
}

.feature-item[data-pos="n4"] {
    top: 72%;
    left: 5%;
    transform: translateX(-20px);
}

.feature-item[data-pos="n5"] {
    top: 5%;
    right: 5%;
    transform: translateX(20px);
    flex-direction: row-reverse;
    text-align: right;
}

.feature-item[data-pos="n6"] {
    top: 25%;
    right: -2%;
    transform: translateX(30px);
    flex-direction: row-reverse;
    text-align: right;
}

.feature-item[data-pos="n7"] {
    top: 48%;
    right: -2%;
    transform: translateX(30px);
    flex-direction: row-reverse;
    text-align: right;
}

.feature-item[data-pos="n8"] {
    top: 72%;
    right: 5%;
    transform: translateX(20px);
    flex-direction: row-reverse;
    text-align: right;
}

.feature-item[data-pos^="n5"] .feature-icon,
.feature-item[data-pos^="n6"] .feature-icon,
.feature-item[data-pos^="n7"] .feature-icon,
.feature-item[data-pos^="n8"] .feature-icon {
    order: 2;
}

.feature-item[data-pos^="n5"] .feature-text,
.feature-item[data-pos^="n6"] .feature-text,
.feature-item[data-pos^="n7"] .feature-text,
.feature-item[data-pos^="n8"] .feature-text {
    order: 1;
}

.screenshots {
    padding: 80px 0;
    width: 100%;
    overflow-x: hidden;
}

.screenshots-theme-switch {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.theme-btn {
    background: #e2e8f0;
    border: none;
    padding: 8px 28px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.theme-btn.active {
    background: var(--primary);
    color: white;
}

.screenshots-carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 32px;
}

.screenshots-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.carousel-track {
    display: flex;
    gap: 6px;
    width: max-content;
    padding: 12px 4px;
}

.screenshot-item {
    width: 240px;
    flex-shrink: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30,60,114,0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 60px;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s;
    z-index: 2;
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-dark);
}

.help-center {
    background: var(--gray-bg);
    padding: 80px 0;
    width: 100%;
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.help-image img {
    width: 100%;
    border-radius: 40px;
}

.help-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.help-text p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.help-btn {
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
}

.help-btn:hover {
    background: var(--primary-dark);
}

.download-final {
    padding: 80px 0;
    width: 100%;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.download-content h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    margin-top: 28px;
}

.download-buttons img {
    height: 56px;
    width: auto;
}

.download-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 48px;
    box-shadow: var(--shadow);
}

footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: auto;
    padding: 48px 0 24px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.footer-logo-img {
    width: 50px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-company {
    font-weight: 700;
    color: white;
    margin: 8px 0 4px;
}

.footer-address,
.footer-contact {
    font-size: 0.85rem;
    margin: 6px 0;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-disclaimer p {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.8;
}

.footer-copyright {
    grid-column: span 3;
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    font-size: 0.8rem;
}

.legal-content {
    background: var(--white);
    padding: 48px 0 80px;
    flex: 1;
    width: 100%;
}

.legal-content .container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 32px;
    padding: 40px 32px;
    box-shadow: var(--shadow);
}

.legal-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
}

.legal-content h2 {
    font-size: 1.6rem;
    margin: 28px 0 16px;
    color: var(--primary);
}

.legal-content h3 {
    font-size: 1.3rem;
    margin: 24px 0 12px;
    color: var(--primary-dark);
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.legal-content strong,
.legal-content b {
    color: var(--primary);
    font-weight: 600;
}

.legal-content a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: 0.2s;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0 1.5rem 1.8rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 1100px) {
    .orbital-wrapper {
        min-height: 480px;
    }
    .center-image {
        width: 220px;
        height: 220px;
    }
    .feature-item {
        width: 220px;
        padding: 8px 12px;
    }
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .feature-text h3 {
        font-size: 0.9rem;
    }
    .feature-text p {
        font-size: 0.7rem;
    }
    .feature-item[data-pos="n1"] {
        top: 0;
        left: 2%;
        transform: none;
    }
    .feature-item[data-pos="n2"] {
        top: 20%;
        left: -4%;
    }
    .feature-item[data-pos="n3"] {
        top: 45%;
        left: -4%;
    }
    .feature-item[data-pos="n4"] {
        top: 70%;
        left: 2%;
    }
    .feature-item[data-pos="n5"] {
        top: 0;
        right: 2%;
        transform: none;
    }
    .feature-item[data-pos="n6"] {
        top: 20%;
        right: -4%;
    }
    .feature-item[data-pos="n7"] {
        top: 45%;
        right: -4%;
    }
    .feature-item[data-pos="n8"] {
        top: 70%;
        right: 2%;
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .help-grid,
    .download-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        order: -1;
        text-align: center;
    }
    .footer-grid {
        gap: 32px;
    }
    .footer-copyright {
        grid-column: span 1;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .header-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .logo {
        justify-content: center;
    }
    .logo a {
        justify-content: center;
    }
    .main-nav {
        width: 100%;
    }
    .nav-list {
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    .nav-list a {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    .header-notice {
        text-align: center;
        font-size: 0.7rem;
    }
    .orbital-wrapper {
        flex-direction: column;
        min-height: auto;
        gap: 32px;
    }
    .center-image {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }
    .orbital-items {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 20px;
    }
    .feature-item {
        position: relative;
        width: 100%;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        flex-direction: row !important;
        text-align: left !important;
        background: white;
        border-radius: 28px;
        padding: 12px;
    }
    .feature-item[data-pos^="n5"] .feature-icon,
    .feature-item[data-pos^="n6"] .feature-icon,
    .feature-item[data-pos^="n7"] .feature-icon,
    .feature-item[data-pos^="n8"] .feature-icon {
        order: 0;
    }
    .feature-item[data-pos^="n5"] .feature-text,
    .feature-item[data-pos^="n6"] .feature-text,
    .feature-item[data-pos^="n7"] .feature-text,
    .feature-item[data-pos^="n8"] .feature-text {
        order: 0;
        text-align: left;
    }
    .feature-icon {
        width: 44px;
        height: 44px;
    }
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .section-head h2 {
        font-size: 1.6rem;
    }
    .stat-item b {
        font-size: 1.4rem;
    }
    .orbital-items {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .nav-list {
        gap: 12px;
    }
    .nav-list a {
        font-size: 0.8rem;
    }
    .legal-content .container {
        padding: 24px 16px;
    }
    .legal-content h1 {
        font-size: 1.6rem;
    }
    .legal-content h2 {
        font-size: 1.3rem;
    }
    body {
        word-break: break-word;
    }
        .download-buttons {
            flex-direction: column;
        }
}