:root {
    --background: 220 25% 6%;
    --foreground: 210 20% 98%;
    --primary: 215 45% 50%;
    --primary-muted: 215 40% 28%;
    --surface: 220 30% 12%;
    --surface-contrast: 220 24% 18%;
    --accent: 195 75% 60%;
    --success: 142 72% 45%;
    --danger: 0 84% 60%;
    --radius: 0.75rem;
    --shadow-color: 215 40% 18%;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --glow-primary: 215 45% 50%;
    --glow-accent: 195 75% 60%;
}

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

html {
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background: radial-gradient(circle at top, hsl(215 40% 20% / 0.35), transparent 45%), linear-gradient(135deg, hsl(220 25% 6%), hsl(215 35% 12%), hsl(220 25% 6%));
    color: hsl(var(--foreground));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: hsl(var(--accent));
}

:focus-visible {
    outline: 2px solid hsl(var(--accent));
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    color: hsl(var(--foreground));
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    transition: top 0.2s ease;
    z-index: 999;
}

.skip-link:focus {
    top: 16px;
}

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

.icon {
    display: inline-flex;
    vertical-align: middle;
}

.icon--check {
    width: 18px;
    height: 18px;
    color: hsl(var(--accent));
    flex-shrink: 0;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--wide {
    max-width: 1320px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(15, 18, 32, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header__inner {
    display: flex;
    align-items: center;
    padding: 0.65rem 0;
    gap: 1.5rem;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.035em;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo picture {
    display: inline-flex;
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 16px hsl(var(--glow-primary) / 0.2);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.logo:hover img {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 20px hsl(var(--glow-primary) / 0.3);
    transform: rotate(-2deg);
}

.logo-text span {
    color: hsl(var(--primary));
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
    color: hsl(var(--foreground));
}

.nav__cta {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    color: hsl(var(--foreground));
}

.button--primary {
    background: hsl(var(--primary));
    box-shadow: 0 4px 12px hsl(var(--shadow-color) / 0.3);
}

.button--primary:hover,
.button--primary:focus-visible {
    background: hsl(215 45% 55%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px hsl(var(--shadow-color) / 0.4);
}

.button--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px hsl(var(--shadow-color) / 0.25);
}

.button--secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.button--secondary:hover,
.button--secondary:focus-visible {
    border-color: hsl(var(--primary));
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px) scale(1.01);
}

.button--secondary:active {
    transform: translateY(0) scale(0.99);
}

.button--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.85);
}

.button--ghost:hover,
.button--ghost:focus-visible {
    border-color: hsl(var(--primary));
    color: hsl(var(--foreground));
    transform: translateY(-1px);
}

.button--ghost:active {
    transform: translateY(0);
}

.button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.button__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.button__loader {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: none;
}

.hero {
    padding: 5.5rem 0 4rem;
    text-align: center;
}

.hero--fullbg {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 30vw 0 3rem;
}

@media (max-width: 768px) {
    .hero--fullbg {
        background-size: 120% auto;
        padding: 60vw 0 2rem;
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.5) 0%,
        rgba(10, 10, 15, 0.65) 50%,
        rgba(10, 10, 15, 0.8) 100%
    );
    z-index: 1;
}

.hero--fullbg .hero__inner {
    position: relative;
    z-index: 2;
}

.hero--fullbg .hero__title {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, hsl(var(--accent)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.hero--fullbg .hero__subtitle {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero--fullbg .hero__actions {
    margin-bottom: 0;
}

.hero__title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 1.5rem 0 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, hsl(var(--primary)) 70%, hsl(var(--accent)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.2em 0;
}

.hero__subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.5rem;
    max-width: 720px;
    margin-inline: auto;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: hsl(var(--primary));
    color: hsl(var(--foreground));
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px hsl(var(--shadow-color) / 0.3);
}

.step__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.step__description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step {
        padding: 1rem;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }

    .step__number {
        margin: 0;
        flex-shrink: 0;
    }

    .step__content {
        flex: 1;
    }

    .section-header {
        margin-bottom: 1.25rem;
    }

    .section-title {
        margin-bottom: 0.5rem;
    }
}

.section {
    padding: 3rem 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

.section--tinted {
    background: rgba(70, 110, 150, 0.06);
    border-block: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
}

.section--accent {
    background: rgba(70, 110, 150, 0.1);
    padding: 1.5rem 0;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--primary) / 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.feature-card {
    position: relative;
    padding: 3.25rem 1.75rem 1.75rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    background: rgba(70, 110, 150, 0.12);
    border-color: rgba(70, 130, 180, 0.4);
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.4);
    transform: translateY(-4px);
}

.feature-icon {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(70, 130, 180, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(60, 100, 140, 0.25);
    color: hsl(var(--foreground));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(60, 100, 140, 0.35);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.75rem 0 0.65rem;
    letter-spacing: -0.015em;
}

.feature-card__description {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    margin: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem;
}

.pricing-card__header {
    margin-bottom: 1.5rem;
}

.pricing-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    letter-spacing: -0.015em;
}

.pricing-card__price {
    font-size: clamp(2.2rem, 4vw, 2.6rem);
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0 0 0.35rem;
}

.pricing-card__price span {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-left: 0.35rem;
}

.pricing-card__description {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.pricing-card__list {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
}

.pricing-card__list li {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.pricing-card__cta {
    margin-top: auto;
}

.pricing-card__cta .button {
    width: 100%;
    justify-content: center;
}

.pricing-card--featured {
    border: 1px solid rgba(70, 130, 180, 0.35);
    background: rgba(70, 110, 150, 0.1);
    box-shadow: 0 12px 28px rgba(40, 70, 100, 0.2);
}

.pricing-card--featured .button--primary {
    box-shadow: 0 4px 12px rgba(70, 130, 180, 0.3);
}

.pricing-card--muted {
    opacity: 0.7;
    transform: scale(0.97);
}

.pricing-card--muted:hover {
    opacity: 0.85;
}

/* Pricing tags */
.pricing-beta-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.pricing-soon-tag {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.beta-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.beta-panel__header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.beta-panel__header img {
    width: 48px;
    height: 48px;
}

.beta-panel__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0;
}

.beta-panel__form {
    width: 100%;
    max-width: 800px;
}

.beta-panel__fields {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.beta-panel__fields .form__input {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.beta-panel__fields .button {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .beta-panel__fields {
        flex-direction: column;
        align-items: stretch;
    }

    .beta-panel__fields .form__input {
        max-width: 100%;
    }
}

.form__input {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: border 0.2s ease, background 0.2s ease;
}

.form__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form__input:focus-visible {
    border-color: hsl(var(--primary));
    background: rgba(255, 255, 255, 0.08);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.alert--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.alert--error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.alert.show {
    display: flex;
}

.footer {
    padding: 3.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    background: rgba(255, 255, 255, 0.02);
}

.footer__inner {
    display: grid;
    gap: 1.25rem;
    justify-items: center;
    text-align: center;
}

.footer__meta {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.52);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1024px) {
    .nav {
        gap: 1rem;
    }

    .header__inner {
        gap: 1.5rem;
    }
}

@media (max-width: 860px) {
    .header__inner {
        gap: 1.5rem;
    }

    .nav {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        row-gap: 0.5rem;
    }

    .nav__link {
        color: rgba(255, 255, 255, 0.88);
        padding: 0.25rem 0;
    }

    .button--ghost {
        width: auto;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3.5rem 0;
    }

    .section--tinted,
    .section--accent {
        padding: 2rem 0;
    }

    .header__inner {
        gap: 0.75rem;
        flex-wrap: nowrap;
        padding: 0.85rem 0;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo picture {
        display: inline-flex;
    }

    .logo img {
        width: 44px;
        height: 44px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25), 0 0 12px hsl(var(--glow-primary) / 0.15);
    }

    .nav {
        width: auto;
        justify-content: flex-end;
        margin-left: auto;
        gap: 0.5rem;
        flex: 0 0 auto;
    }

    .nav__link,
    .nav__cta {
        font-size: 0.85rem;
    }

    .nav__cta {
        padding: 0.4rem 0.85rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .card {
        padding: 1.75rem;
    }

    .feature-card {
        padding: 3.25rem 1.75rem 1.75rem;
    }

    .hero__actions {
        justify-content: flex-start;
    }

    .nav {
        gap: 0.65rem;
        flex: 0 1 auto;
    }

    .nav__link {
        font-size: 0.9rem;
    }

    .nav__cta {
        padding: 0.45rem 0.95rem;
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero__actions .button--primary {
        animation: none !important;
    }

    .card:hover,
    .feature-card:hover {
        transform: none !important;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

