:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f2f5ff;
    --ink: #111827;
    --ink-soft: #4b5563;
    --line: #e5e7eb;
    --brand: #0ea5e9;
    --brand-2: #2563eb;
    --accent: #0f766e;
    --success: #16a34a;
    --danger: #dc2626;
    --shadow: 0 14px 40px rgba(2, 6, 23, 0.08);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
    background: radial-gradient(circle at 15% -10%, #dbeafe 0%, transparent 35%),
        radial-gradient(circle at 90% 0%, #ccfbf1 0%, transparent 30%),
        var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1140px, calc(100% - 2rem));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow);
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    font-weight: 600;
    color: #1f2937;
}

.nav-links a:hover {
    color: var(--brand-2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.72rem 1.2rem;
    font-weight: 700;
    transition: 180ms ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--brand-2), var(--brand));
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-light {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.hero {
    padding: 4rem 0 2.5rem;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.86rem;
    font-weight: 700;
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    margin: 0 0 0.7rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-top: 1rem;
}

.hero p {
    max-width: 820px;
    color: var(--ink-soft);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.preview {
    margin-top: 1.8rem;
    overflow: hidden;
}

.preview-head {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1rem;
    background: #f8fafc;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.preview img {
    width: 100%;
    display: block;
    max-height: 580px;
    object-fit: contain;
    background: #fff;
}

.section {
    padding: 3rem 0;
}

.section-head {
    margin-bottom: 1.4rem;
}

.section-head p {
    color: var(--ink-soft);
    max-width: 760px;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.card h4 {
    margin: 0 0 0.4rem;
}

.card p,
.muted {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.icon-chip {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: var(--brand-2);
    margin-bottom: 0.7rem;
}

.plan {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--brand-2);
}

.features-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ink-soft);
    font-size: 0.93rem;
    display: grid;
    gap: 0.3rem;
}

.cta {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 28px;
    background: linear-gradient(120deg, #2563eb, #0ea5e9);
    color: #fff;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
}

.footer {
    margin-top: 3rem;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--line);
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--brand-2);
}

.app-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.2rem;
    align-items: center;
}

.checkout-wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0.72rem 0.8rem;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.full {
    grid-column: 1 / -1;
}

.alert {
    border-radius: 12px;
    border: 1px solid;
    padding: 0.8rem 0.9rem;
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
}

.alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
}

.summary-total {
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 800;
    border-top: 1px solid var(--line);
    padding-top: 0.65rem;
    margin-top: 0.7rem;
}

.page-hero {
    padding: 2.2rem;
    display: grid;
    gap: 0.8rem;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 3.1rem);
}

.page-hero p {
    margin: 0;
    color: var(--ink-soft);
    max-width: 760px;
}

.legal-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1rem;
}

.prose-card {
    padding: 1.2rem;
}

.prose-card h3 {
    margin-top: 0.7rem;
    margin-bottom: 0.35rem;
}

.prose-card p {
    color: var(--ink-soft);
    margin: 0 0 0.8rem;
}

.stat-card {
    padding: 1rem;
    background: linear-gradient(150deg, #1d4ed8, #0ea5e9);
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.stat-card .big {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.list-plain {
    margin: 0;
    padding-left: 1rem;
    color: var(--ink-soft);
    display: grid;
    gap: 0.4rem;
}

.quick-links {
    display: grid;
    gap: 0.7rem;
}

.quick-links a {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
}

.quick-links a:hover {
    border-color: #bfdbfe;
    color: var(--brand-2);
    background: #f8fbff;
}

@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkout-wrap { grid-template-columns: 1fr; }
    .app-hero { grid-template-columns: 1fr; }
    .legal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 2.8rem;
    }
}

/* Modern improvements */
.card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--brand-2);
}
.panel {
    transition: all 0.3s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.form-field input, .form-field select, .form-field textarea {
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fdfdfd;
}
.checkout-wrap .panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.04);
}
body {
    background: 
        radial-gradient(circle at 0% 0%, rgba(219, 234, 254, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(204, 251, 241, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(224, 231, 255, 0.6) 0%, transparent 50%),
        #f8fafc;
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Modern improvements */
.card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--brand-2);
}
.panel {
    transition: all 0.3s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.form-field input, .form-field select, .form-field textarea {
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fdfdfd;
}
.checkout-wrap .panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.04);
}
body {
    background: 
        radial-gradient(circle at 0% 0%, rgba(219, 234, 254, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(204, 251, 241, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(224, 231, 255, 0.6) 0%, transparent 50%),
        #f8fafc;
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
/* Modern improvements */
.card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--brand-2);
}
.panel {
    transition: all 0.3s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.form-field input, .form-field select, .form-field textarea {
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fdfdfd;
}
.checkout-wrap .panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.04);
}
body {
    background: 
        radial-gradient(circle at 0% 0%, rgba(219, 234, 254, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(204, 251, 241, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(224, 231, 255, 0.6) 0%, transparent 50%),
        #f8fafc;
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
