/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #33334f;
    background: #fff;
    line-height: 1.6;
}

a {
    color: #6078ff;
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* === LAYOUT === */
.container {
    max-width: 1030px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7em 0.8em;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    color: #000;
    background: transparent;
    box-shadow: inset 0 0 0 1px, 0 1px 2px rgba(0, 0, 0, .17);
}

.btn:hover {
    box-shadow: inset 0 0 0 1px, 0 4px 10px rgba(50, 50, 93, .23), 0 1px 3px rgba(0, 0, 0, .08);
    text-decoration: none;
}

.btn.primary {
    color: #fff;
    background: #000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .17);
}

.btn.primary:hover {
    box-shadow: 0 4px 10px rgba(50, 50, 93, .23), 0 1px 3px rgba(0, 0, 0, .08);
}

/* === HEADER === */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1030px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #33334f;
    flex-shrink: 0;
    min-width: 0;
}

.header-logo:hover {
    text-decoration: none;
}

.logo-emoji {
    font-size: 32px;
}

.header-logo span:last-child {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 5vw, 24px);
    white-space: nowrap;
}

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

.header-actions .btn {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 15px;
    font-weight: 400;
    color: #999;
    transition: color 0.2s;
}

.header-actions .btn:hover {
    color: #333;
    box-shadow: none;
    text-decoration: none;
}

.header-actions .btn.active {
    color: #6078ff;
    font-weight: 700;
}

/* === HERO === */
.hero {
    padding: 40px 0 20px;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.float-wrapper {
    display: inline-block;
    animation: float-anim 4s ease-in-out infinite;
}

@keyframes float-anim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.float-effect {
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.2));
    transition: filter 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.float-effect:hover {
    transform: scale(1.03) rotate(-2deg);
    filter: drop-shadow(0 25px 35px rgba(96, 120, 255, 0.4));
}

[data-theme="dark"] .float-effect {
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

[data-theme="dark"] .float-effect:hover {
    filter: drop-shadow(0 25px 35px rgba(129, 140, 248, 0.5));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #eef0ff;
    color: #5b5fc7;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    text-decoration: none;
}

.hero-badge svg {
    flex-shrink: 0;
}

.hero-badge:hover {
    text-decoration: none;
    background: #e2e5ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(96, 120, 255, .15);
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #33334f;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-subtitle {
    color: #767ead;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-ctas {
    display: none;
    gap: 10px;
    flex-wrap: wrap;
}

/* === PHONE MOCKUP === */
.phone-mockup {
    width: 260px;
    margin: 0 auto;
    background: #1a1a2e;
    border-radius: 28px;
    padding: 20px 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mockup-screen {
    text-align: center;
}

.mockup-header {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.mockup-input {
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 12px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.mockup-rate {
    font-size: 12px;
    color: #8b8fa3;
    margin-bottom: 20px;
}

.mockup-btn {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9, #0284c7);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

/* === HOW IT WORKS === */
.how-section {
    padding: 40px 0 20px;
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #33334f;
    text-align: center;
    margin-bottom: 28px;
}

.steps-grid {
    display: flex;
    gap: 30px;
}

.step-card {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 16px;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 120, 255, .12);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6078ff;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #33334f;
    margin-bottom: 4px;
}

.step-desc {
    color: #767ead;
    font-size: 14px;
    line-height: 1.5;
}

/* === FEATURES === */
.features-section {
    padding: 10px 0 30px;
}

.features-grid {
    display: flex;
    gap: 30px;
}

.feature-card {
    flex: 1;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    padding: 20px 16px;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 120, 255, .12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    font-size: 36px;
    line-height: 48px;
}

.feature-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #33334f;
    margin-bottom: 8px;
}

.feature-desc {
    color: #767ead;
    font-size: 14px;
    line-height: 1.5;
}

/* === RATES === */
.rates-section {
    padding: 20px 0 40px;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.rate-card {
    background: #f5f6ff;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #33334f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.rate-card img {
    border-radius: 2px;
    flex-shrink: 0;
}

.rate-card span {
    color: #6078ff;
    font-weight: 700;
}

.rates-hint {
    text-align: center;
    font-size: 13px;
    color: #999;
}

/* === FOOTER === */
.site-footer {
    padding: 30px 0 15px;
    border-top: 1px solid #eee;
}

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

.footer-inner span {
    color: #999;
    font-size: 14px;
}

.footer-inner a {
    color: #999;
    transition: color 0.2s;
}

.footer-inner a:hover {
    color: #6078ff;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.footer-social a {
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: color 0.25s, transform 0.25s;
}

.footer-social a svg path {
    fill: currentColor;
}

.footer-social a:hover {
    transform: scale(1.2);
    text-decoration: none;
}

.footer-social .social-telegram:hover { color: #0088cc; }
.footer-social .social-github:hover { color: #333; }
.footer-social .social-linkedin:hover { color: #0A66C2; }

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

/* === CONTENT PAGES (Terms, Star Prices) === */
.page-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-content h1 {
    font-family: 'Sora', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.2;
    color: #33334f;
}

.page-content .updated {
    font-size: 14px;
    color: #707579;
    margin-bottom: 30px;
    text-align: center;
}

.page-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #33334f;
}

.page-content p,
.page-content li {
    font-size: 16px;
    color: #33334f;
    margin-bottom: 16px;
    line-height: 1.6;
}

.page-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.page-content a {
    color: #3390ec;
    font-weight: 400;
}

.page-content .intro {
    margin-bottom: 32px;
    border-left: 3px solid #3390ec;
    padding-left: 16px;
    color: #707579;
}

/* === STAR PRICES TABLE === */
.page-content .search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    font-family: inherit;
    background: #fff;
    color: #33334f;
}

.page-content .search:focus {
    border-color: #3390ec;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.page-content th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 2px solid #eee;
    color: #707579;
}

.page-content th.sc {
    text-align: center;
}

.page-content td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.page-content .sc {
    text-align: center;
    font-weight: 500;
}

.page-content tr:hover {
    background: #f8f8f8;
}

.page-content tr.section td {
    font-weight: 700;
    font-size: 15px;
    padding: 20px 10px 8px;
    border-bottom: 2px solid #3390ec;
    color: #3390ec;
}

.page-content .tier-desc {
    font-weight: 400;
    font-size: 13px;
    color: #707579;
    margin-left: 6px;
}

.page-content tr.section:hover {
    background: none;
}

.page-content .note {
    text-align: center;
    color: #707579;
    font-size: 13px;
    margin-top: 20px;
}

/* === DARK MODE === */
[data-theme="dark"] body {
    background: #0f0f1a;
    color: #e0e0e0;
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .header-logo {
    color: #e0e0e0;
}

[data-theme="dark"] .header-actions .btn {
    color: #888;
}

[data-theme="dark"] .header-actions .btn:hover {
    color: #e0e0e0;
}

[data-theme="dark"] .header-actions .btn.active {
    color: #818cf8;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .step-title {
    color: #e0e0e0;
}

[data-theme="dark"] .hero-badge {
    background: #1a1a2e;
    color: #818cf8;
}

[data-theme="dark"] .hero-badge:hover {
    background: #252540;
}

[data-theme="dark"] .feature-title {
    color: #e0e0e0;
}

[data-theme="dark"] .feature-desc,
[data-theme="dark"] .step-desc {
    color: #999;
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .step-card:hover {
    box-shadow: 0 4px 12px rgba(96, 120, 255, .2);
}

[data-theme="dark"] .rate-card {
    background: #1a1a2e;
    color: #e0e0e0;
}

[data-theme="dark"] .rate-card span {
    color: #818cf8;
}

[data-theme="dark"] .site-footer {
    border-top-color: #2a2a40;
}

[data-theme="dark"] .footer-inner span,
[data-theme="dark"] .footer-inner a {
    color: #666;
}

[data-theme="dark"] .footer-inner a:hover {
    color: #818cf8;
}

[data-theme="dark"] .footer-social a {
    color: #666;
}

/* Dark mode: content pages */
[data-theme="dark"] .page-content h1,
[data-theme="dark"] .page-content h2 {
    color: #e0e0e0;
}

[data-theme="dark"] .page-content p,
[data-theme="dark"] .page-content li {
    color: #ccc;
}

[data-theme="dark"] .page-content .updated,
[data-theme="dark"] .page-content .intro,
[data-theme="dark"] .page-content .tier-desc,
[data-theme="dark"] .page-content .note {
    color: #888;
}

[data-theme="dark"] .page-content .intro {
    border-left-color: #818cf8;
}

[data-theme="dark"] .page-content .search {
    background: #1a1a2e;
    border-color: #333;
    color: #e0e0e0;
}

[data-theme="dark"] .page-content th {
    color: #888;
    border-bottom-color: #333;
}

[data-theme="dark"] .page-content td {
    border-bottom-color: #222;
}

[data-theme="dark"] .page-content tr:hover {
    background: #1a1a2e;
}

[data-theme="dark"] .page-content tr.section td {
    color: #818cf8;
    border-bottom-color: #818cf8;
}

/* === MOBILE === */
@media (max-width: 768px) {
    .header-actions .btn:not(.theme-toggle) {
        display: none;
    }

    .hero-grid {
        flex-direction: column;
        gap: 20px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-badge {
        display: none;
    }

    .hero-image {
        display: none;
    }

    .hero-ctas {
        display: flex;
    }

    .hero-ctas .btn.primary {
        background: linear-gradient(135deg, #0ea5e9, #0284c7);
        box-shadow: 0 2px 8px rgba(14, 165, 233, .3);
    }

    .hero-ctas .btn svg {
        margin-left: 2px;
    }

    .hero-ctas .btn {
        font-weight: 400 !important;
    }

    .steps-grid {
        flex-direction: column;
        gap: 14px;
    }

    .features-grid {
        flex-direction: column;
        gap: 14px;
    }

    .feature-card {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 0;
    }

    .feature-card .feature-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .feature-card .feature-title {
        display: none;
    }

    .feature-card .feature-desc {
        font-size: 12px;
        line-height: 1.4;
    }

    .rates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 16px;
    }
}
