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

:root {
    --brand: #1454FA;
    --brand-light: #4d7dfc;
    --brand-glow: rgba(20, 84, 250, 0.15);
    --brand-glow-strong: rgba(20, 84, 250, 0.35);
    --surface: #0b1120;
    --surface-raised: rgba(255,255,255,0.04);
    --surface-border: rgba(255,255,255,0.06);
    --surface-hover: rgba(255,255,255,0.08);
    --text: #f0f2f8;
    --text-secondary: #8892a8;
    --text-muted: #5a6478;
    --radius: 14px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--surface);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Noise texture overlay ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ─── Ambient glow ─── */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}
.ambient-orb:nth-child(1) {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(20,84,250,0.12) 0%, transparent 70%);
    top: -25%; right: -10%;
    animation: drift 25s ease-in-out infinite;
}
.ambient-orb:nth-child(2) {
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(20,84,250,0.08) 0%, transparent 70%);
    bottom: -20%; left: -10%;
    animation: drift 30s ease-in-out infinite reverse;
}
.ambient-orb:nth-child(3) {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(77,125,252,0.06) 0%, transparent 70%);
    top: 40%; left: 45%;
    animation: drift 20s ease-in-out infinite 5s;
}
@keyframes drift {
    0%,100% { transform: translate(0,0); }
    25%     { transform: translate(30px,-20px); }
    50%     { transform: translate(-20px,30px); }
    75%     { transform: translate(15px,15px); }
}

/* ─── Subtle grid ─── */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 100%);
}

/* ─── Layout ─── */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Header / Nav ─── */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    position: relative;
    z-index: 10;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.brand-icon {
    width: 32px;
    height: auto;
    flex-shrink: 0;
}
.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
.brand-name span {
    color: var(--brand-light);
}

/* Language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--surface-raised);
    border: 1px solid var(--surface-border);
    border-radius: 100px;
    padding: 4px;
    gap: 2px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.lang-btn {
    padding: 6px 16px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: var(--transition);
}
.lang-btn.active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 12px rgba(20,84,250,0.35);
}
.lang-btn:not(.active):hover {
    color: var(--text-secondary);
}

/* ─── Hero ─── */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem 1.5rem;
}
.hero-inner {
    width: 100%;
    max-width: 820px;
    text-align: center;
}

/* Animated text wrapper */
.text-switch {
    position: relative;
    overflow: visible;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
span.text-switch {
    display: inline-block;
}
h1 .text-switch,
h3.text-switch,
p.text-switch {
    display: block;
}
.text-switch.exit-up {
    transform: translateY(-30%);
    opacity: 0;
}
.text-switch.enter-up {
    transform: translateY(30%);
    opacity: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.6rem;
    background: var(--surface-raised);
    border: 1px solid var(--surface-border);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50%     { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.05em;
    color: var(--text);
}
.hero-title .accent {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 1.5rem;
}

/* ─── Subscribe ─── */
.subscribe {
    max-width: 460px;
    margin: 0 auto 0;
}
.subscribe-form {
    display: flex;
    gap: 0;
    background: var(--surface-raised);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color var(--transition);
}
.subscribe-form:focus-within {
    border-color: rgba(20,84,250,0.4);
    box-shadow: 0 0 0 3px rgba(20,84,250,0.08);
}
.subscribe-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.95rem 1.25rem;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
    min-width: 0;
}
.subscribe-form input::placeholder {
    color: var(--text-muted);
}
.subscribe-form button {
    background: var(--brand);
    border: none;
    padding: 0.95rem 1.5rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.subscribe-form button:hover {
    background: var(--brand-light);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.modal {
    background: linear-gradient(160deg, #131b2e 0%, #0e1525 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2.5rem 2.5rem 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(20, 84, 250, 0.08);
}
.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}
.modal-check {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-check svg {
    width: 28px;
    height: 28px;
    stroke: #22c55e;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}
.modal-overlay.show .modal-check svg {
    animation: check-draw 0.5s 0.3s ease forwards;
}
@keyframes check-draw {
    to { stroke-dashoffset: 0; }
}
.modal h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.modal p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.modal-bar {
    margin-top: 1.5rem;
    height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.modal-bar-fill {
    height: 100%;
    width: 100%;
    background: var(--brand);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
}
.modal-overlay.show .modal-bar-fill {
    animation: bar-shrink 3s linear forwards;
}
@keyframes bar-shrink {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* ─── Features ─── */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--surface-border);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}
.feat {
    background: var(--surface);
    padding: 2rem 2rem;
    text-align: center;
    transition: background var(--transition);
}
.feat:hover {
    background: var(--surface-raised);
}
.feat-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(20,84,250,0.08);
    color: var(--brand-light);
}
.feat-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.feat-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Footer ─── */
.footer {
    padding: 1.25rem 3rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--surface-border);
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.footer-brand img {
    width: 18px;
    height: auto;
    opacity: 0.5;
}
.footer-brand span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}
.footer-copy {
    color: var(--text-muted);
    opacity: 0.7;
    font-size: 0.72rem;
}

/* ─── Entrance animations ─── */
@keyframes enter {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-enter {
    opacity: 0;
    animation: enter 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.35s; }
.anim-d4 { animation-delay: 0.5s; }
.anim-d5 { animation-delay: 0.65s; }
.anim-d6 { animation-delay: 0.8s; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav { padding: 1.25rem 1.5rem; }
    .hero { padding: 1.5rem 1.5rem 3rem; }
    .features { grid-template-columns: 1fr; }
    .feat { padding: 2rem 1.5rem; }
    .subscribe-form {
        flex-direction: column;
    }
    .subscribe-form button {
        border-radius: 0;
    }
    .footer { padding: 1rem 1.5rem; }
}
