

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.section__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section__title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    color: #111827;
    margin-bottom: 0.75rem;
}

.section__sub {
    text-align: center;
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 3rem;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: inherit;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn--sm   { padding: 0.4rem 1rem;   font-size: 0.875rem; }
.btn--md   { padding: 0.65rem 1.4rem; font-size: 0.95rem; }
.btn--lg   { padding: 0.85rem 2rem;   font-size: 1rem;    }

.btn--primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.btn--primary:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,0.35); }

.btn--secondary {
    background: transparent;
    color: #374151;
    border-color: #d1d5db;
}
.btn--secondary:hover { background: #f9fafb; border-color: #9ca3af; transform: translateY(-1px); }

.btn--outline-blue {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.btn--outline-blue:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn--white {
    background: #fff;
    color: #1d4ed8;
    border-color: #fff;
}
.btn--white:hover { background: #eff6ff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.nav__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: #111827;
    text-decoration: none;
    flex-shrink: 0;
}

.nav__logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
}

.nav__links {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.nav__links a {
    padding: 0.4rem 0.75rem;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.nav__links a:hover { background: #f3f4f6; color: #111827; }

.nav__spacer { flex: 1; }

.hero {
    background: linear-gradient(160deg, #eff6ff 0%, #eef2ff 50%, #f5f3ff 100%);
    padding: 5rem 1.5rem 4rem;
    overflow: hidden;
}

.hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero__inner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
    margin-bottom: 1.25rem;
}

.hero__sub {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__card-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 280px;
}

.mock-card {
    width: 280px;
    height: 180px;
    border-radius: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 20px 60px rgba(16,185,129,0.35);
    transform: rotate(-4deg);
    position: relative;
    z-index: 2;
}

.mock-card__word {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mock-card__hint {
    font-size: 0.85rem;
    opacity: 0.85;
}

.mock-card__badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: #fff;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: rotate(2deg);
    z-index: 3;
}

.mock-card-back {
    width: 260px;
    height: 168px;
    border-radius: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    position: absolute;
    transform: rotate(4deg) translateX(20px) translateY(10px);
    z-index: 1;
    opacity: 0.6;
}

.features {
    padding: 5rem 1.5rem;
    background: #fff;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 1.75rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-3px); }

.feature-card__icon {
    display: block;
    margin-bottom: 0.75rem;
    line-height: 0;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

.how {
    padding: 5rem 1.5rem;
    background: #f9fafb;
}

.how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.how__steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(to right, #bfdbfe, #ddd6fe);
    pointer-events: none;
}

.how__step {
    text-align: center;
    position: relative;
}

.step-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}

.step-badge--green  { background: #10b981; box-shadow: 0 4px 16px rgba(16,185,129,0.35); }
.step-badge--purple { background: #7c3aed; box-shadow: 0 4px 16px rgba(124,58,237,0.35); }

.how__step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.how__step p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

.cta {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    text-align: center;
}

.cta__title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.cta__sub {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 2.25rem;
}

.footer {
    background: #111827;
    padding: 2.5rem 1.5rem;
}

.footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.footer__logo {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}

.footer__copy {
    color: #6b7280;
    font-size: 0.875rem;
}

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__sub   { margin-left: auto; margin-right: auto; }
    .hero__ctas  { justify-content: center; }
    .hero__card-wrap { min-height: 220px; }
    .features__grid  { grid-template-columns: repeat(2, 1fr); }
    .how__steps { grid-template-columns: 1fr; gap: 2.5rem; }
    .how__steps::before { display: none; }
}

@media (max-width: 600px) {
    .features__grid { grid-template-columns: 1fr; }
    .nav__links     { display: none; }
    .footer__inner  { flex-direction: column; text-align: center; }
    .mock-card { width: 220px; height: 145px; }
    .mock-card__word { font-size: 1.75rem; }
    .mock-card-back  { width: 200px; height: 132px; }
}

.lang-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.lang-picker__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    font-family: inherit;
}
.lang-picker__btn:hover { background: #f3f4f6; color: #111827; }
.lang-picker__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 164px;
    z-index: 200;
    overflow: hidden;
}
.lang-picker__dropdown[hidden] { display: none; }
.lang-picker__option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    color: #374151;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.12s;
}
.lang-picker__option:hover,
.lang-picker__option[aria-current="true"] { background: #f3f4f6; }
.lang-picker__option[aria-current="true"] { font-weight: 600; color: #2563eb; }
.lang-picker__flag {
    display: inline-block;
    width: 22px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    overflow: hidden;
}

.beta-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1.25rem;
    background: #fefce8;
    border-bottom: 1px solid #fde68a;
    font-size: 0.78rem;
    color: #78350f;
    flex-wrap: wrap;
    line-height: 1.4;
}
.beta-banner__badge {
    display: inline-block;
    background: #f59e0b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
}
.beta-banner__text { flex: 1; min-width: 200px; }
.beta-banner__text a { color: #92400e; text-decoration: underline; }
.beta-banner__text a:hover { color: #78350f; }
.beta-banner__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #92400e;
    font-size: 1rem;
    padding: 0.2rem 0.4rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.6;
    border-radius: 4px;
}
.beta-banner__close:hover { opacity: 1; background: rgba(0,0,0,0.06); }

.footer__credit {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}
.footer__credit a { color: #9ca3af; text-decoration: underline; }
.footer__credit a:hover { color: #6b7280; }

.footer__links {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.35rem;
}

.footer__links a {
    color: #9ca3af;
    text-decoration: underline;
}

.footer__links a:hover { color: #6b7280; }

.build-version {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}
