:root {
    --background-color: #f4f7f9;
    --card-bg: #ffffff;
    --theme-color: #0a84ff;
    --theme-color-dark: #0060d0;
    --accent-green: #28c76f;
    --accent-purple: #8b5cf6;
    --text-dark: #111827;
    --text-medium: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-medium);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--theme-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--theme-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px -10px rgba(10, 132, 255, 0.6);
}

.btn-secondary {
    background-color: rgba(15, 23, 42, 0.08);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: rgba(15, 23, 42, 0.16);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: #fff;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
}

.main-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-img {
    width: 36px;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    position: relative;
    padding: 0.35rem 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: var(--theme-color);
    transition: width 0.2s ease;
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.hero-section {
    padding: 4.75rem 0 4rem;
    background: var(--card-bg);
}

.hero-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: grid;
    gap: 1rem;
    max-width: 520px;
}

.hero-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(10, 132, 255, 0.06);
}

.hero-highlights i {
    color: var(--theme-color);
    background: rgba(10, 132, 255, 0.12);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hero-highlights div {
    display: grid;
    gap: 0.15rem;
}

.hero-highlights .highlight-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.hero-highlights .highlight-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-image-gallery {
    perspective: 1500px;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.hero-image-slider {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.hero-image-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.35);
    opacity: 0;
    animation: slideShow 16s linear infinite;
}

.hero-image-slider img:nth-child(2) { animation-delay: 4s; }
.hero-image-slider img:nth-child(3) { animation-delay: 8s; }
.hero-image-slider img:nth-child(4) { animation-delay: 12s; }

@keyframes slideShow {
    0% {
        opacity: 0;
        transform: rotateY(-12deg) scale(0.96);
    }
    10%, 25% {
        opacity: 1;
        transform: rotateY(0) scale(1);
    }
    35%, 100% {
        opacity: 0;
        transform: rotateY(12deg) scale(0.96);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.35rem;
    color: var(--text-dark);
    margin: 0 0 0.65rem 0;
}

.section-header p {
    margin: 0 auto;
    max-width: 620px;
    color: var(--text-light);
}

.essentials-section {
    padding: 3.5rem 0 1.5rem;
}

.essentials-copy {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.essentials-copy h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.essentials-copy p {
    color: var(--text-light);
    margin: 0;
}

.essentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.essentials-card {
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    box-shadow: 0 18px 32px -24px rgba(15, 23, 42, 0.28);
    min-height: 170px;
}

.essentials-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
}

.essentials-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}

.plans-section {
    padding: 3.75rem 0;
}

.plans-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.plans-header h2 {
    font-size: 2.1rem;
    color: var(--text-dark);
    margin-bottom: 0.65rem;
}

.plans-header p {
    margin: 0;
    color: var(--text-light);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: var(--card-bg);
    border-radius: 22px;
    border: 1px solid var(--border-color);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 22px 40px -28px rgba(10, 132, 255, 0.35);
}

.plan-card--accent {
    background: linear-gradient(145deg, rgba(10, 132, 255, 0.12), rgba(10, 132, 255, 0.04));
    border-color: rgba(10, 132, 255, 0.2);
}

.plan-card__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.12);
    color: var(--theme-color-dark);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.plan-card h3 {
    margin: 0;
    font-size: 1.45rem;
    color: var(--text-dark);
}

.plan-price {
    font-size: 2.8rem;
    margin: 0;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.plan-price sup {
    font-size: 1rem;
    top: -1rem;
    margin-right: 0.25rem;
}

.plan-note {
    margin: 0;
    color: var(--text-light);
}

.plan-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    color: var(--text-medium);
}

.plan-card li::before {
    content: "\2713";
    color: var(--theme-color);
    margin-right: 0.35rem;
    font-weight: 600;
}

.plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    background: var(--theme-color);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px -18px rgba(10, 132, 255, 0.55);
}

.plan-cta--ghost {
    background: rgba(10, 132, 255, 0.12);
    color: var(--theme-color-dark);
}

.cta-section {
    padding: 3.5rem 0 4.5rem;
}

.cta-inner {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(10, 132, 255, 0.24));
    border-radius: 26px;
    padding: 2.4rem 2.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid rgba(10, 132, 255, 0.26);
    box-shadow: 0 16px 36px -18px rgba(10, 132, 255, 0.35);
}

.cta-inner h2 {
    margin: 0 0 0.45rem;
    font-size: 2rem;
    color: var(--text-dark);
}

.cta-inner p {
    margin: 0;
    color: var(--text-light);
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.cta-actions .btn-outline:hover {
    background: #fff;
    color: var(--theme-color-dark);
}

.login-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.login-modal.is-active {
    display: flex;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    width: min(480px, calc(100% - 2rem));
    box-shadow: 0 40px 70px -45px rgba(15, 23, 42, 0.55);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.login-card__header {
    padding: 2rem 2.4rem 1.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    text-align: center;
}

.login-card__header h3 {
    margin: 0;
    font-size: 1.7rem;
    color: var(--text-dark);
    font-weight: 700;
}

.login-subtitle {
    margin: 0.65rem 0 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.login-alert {
    margin: 0;
    padding: 0 2.4rem;
    font-size: 0.95rem;
    display: none;
}

.login-alert.is-visible {
    display: block;
    padding-top: 1rem;
    padding-bottom: 0;
}

.alert--error {
    color: #b42318;
}

.alert--success {
    color: #15803d;
}

.alert--info {
    color: #0a84ff;
}

.login-card__body {
    padding: 2rem 2.4rem 2.2rem;
    display: grid;
    gap: 1.4rem;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-form label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
}

.login-form input[type="email"],
.login-form input[type="text"] {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.code-field {
    letter-spacing: 0.35rem;
    text-align: center;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.login-divider {
    position: relative;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.login-divider span {
    background: #fff;
    padding: 0 0.75rem;
    position: relative;
    z-index: 1;
}

.login-divider::before,
.login-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.btn-link {
    background: none;
    border: none;
    color: var(--theme-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    width: 100%;
}

.btn.btn-google:hover {
    border-color: rgba(10, 132, 255, 0.35);
    box-shadow: 0 8px 18px -16px rgba(10, 132, 255, 0.4);
}

.btn.btn-google img {
    width: 18px;
    height: 18px;
}

.login-modal[data-step="email"] #loginCodeStep {
    display: none;
}

.login-modal[data-step="code"] #loginEmailStep {
    display: none;
}

.login-modal[data-step="code"] #loginCodeStep {
    display: grid;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-dark);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
    background: rgba(10, 132, 255, 0.18);
    transform: translateY(-1px);
}

.main-footer {
    background: var(--text-dark);
    color: #d1d5db;
    padding: 3.2rem 0 1.6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-logo {
    color: #fff;
}

.footer-brand p {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h4 {
    margin: 0 0 1rem 0;
    color: #fff;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
}

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

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.35rem;
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--theme-color);
}

.social-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-row a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle,
    .hero-highlights {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image-gallery {
        order: -1;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem 1.25rem;
        flex-direction: column;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 12px 22px -14px rgba(15, 23, 42, 0.25);
    }

    .nav-menu.is-active {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .essentials-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.75rem;
    }

    .cta-actions {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-social {
        align-items: center;
    }

    .social-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 240px;
    }
}

@media (max-width: 720px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .cta-inner {
        padding: 2rem 2.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.35rem;
    }

    .essentials-card,
    .plan-card {
        padding: 1.75rem;
    }

    .plan-price {
        font-size: 2.4rem;
    }

    .cta-inner {
        padding: 1.8rem 1.6rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        flex-direction: column;
        align-items: center;
    }

    .social-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 220px;
    }
}
