/* ─── Переменные ────────────────────────────────────────── */
:root {
    --green-50:  #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --lime-300:  #bef264;
    --lime-400:  #a3e635;
    --lime-500:  #84cc16;
    --lime-600:  #65a30d;

    --primary:        var(--lime-400);
    --primary-dark:   var(--lime-500);
    --primary-text:   var(--lime-600);

    --bg:             #ffffff;
    --bg-soft:        var(--green-50);
    --bg-card:        #ffffff;
    --bg-feature:     var(--green-50);

    --text:           #0f1f0f;
    --text-secondary: #1e3a1e;
    --text-muted:     #4b7a4b;
    --text-light:     #6b9e6b;

    --border:         var(--green-200);
    --border-strong:  var(--green-300);

    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 16px rgba(22,163,74,.08), 0 2px 6px rgba(0,0,0,.05);
    --shadow-lg:  0 12px 40px rgba(22,163,74,.12), 0 4px 12px rgba(0,0,0,.06);
    --shadow-xl:  0 24px 64px rgba(22,163,74,.15), 0 8px 24px rgba(0,0,0,.08);

    --radius-sm:  .5rem;
    --radius-md:  .875rem;
    --radius-lg:  1.25rem;
    --radius-xl:  2rem;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.125rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: .625rem;
    text-decoration: none;
}

.logo-icon { font-size: 1.75rem; }

.logo-text {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--primary-text);
    letter-spacing: -.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    transition: color .2s;
}

.nav-links a:hover { color: var(--primary-text); }

.btn-demo {
    padding: .5rem 1.25rem;
    border: 1.5px solid var(--border-strong);
    border-radius: 6rem;
    color: var(--primary-text) !important;
    font-weight: 600 !important;
    transition: all .2s !important;
}

.btn-demo:hover {
    background: var(--green-100);
    border-color: var(--primary-text);
}

.btn-primary {
    padding: .5rem 1.375rem;
    background: var(--primary);
    border-radius: 6rem;
    color: #0f1f0f !important;
    font-weight: 700 !important;
    transition: all .2s !important;
    box-shadow: 0 2px 8px rgba(163,230,53,.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(163,230,53,.45);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, var(--green-50) 0%, #fff 50%, var(--green-100) 100%);
    padding: 8rem 0 7rem;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(163,230,53,.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem 1rem;
    background: var(--green-100);
    border: 1px solid var(--green-300);
    border-radius: 6rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary-text);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-text);
    position: relative;
}

.hero-description {
    font-size: 1.175rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: .875rem 2rem;
    background: var(--primary);
    color: #0f1f0f;
    border-radius: 6rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all .2s;
    box-shadow: 0 4px 20px rgba(163,230,53,.4);
    letter-spacing: -.01em;
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(163,230,53,.5);
}

.btn-hero-secondary {
    padding: .875rem 2rem;
    border: 2px solid var(--border-strong);
    color: var(--text-secondary);
    border-radius: 6rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all .2s;
    background: white;
}

.btn-hero-secondary:hover {
    border-color: var(--primary-text);
    color: var(--primary-text);
    background: var(--green-50);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--text-muted);
    font-size: .95rem;
}

.feature-icon {
    width: 1.375rem;
    height: 1.375rem;
    background: var(--green-100);
    border: 1.5px solid var(--green-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: var(--green-600);
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── Hero Visual ─────────────────────────────────────────── */
.hero-visual {
    position: relative;
}

.dashboard-preview {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.dashboard-preview::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-xl) + 2px);
    background: linear-gradient(135deg, var(--lime-300), var(--green-300));
    z-index: -1;
    opacity: .5;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}

.dot-red   { background: #ef4444; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #22c55e; }

.preview-title {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: .25rem;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .875rem;
    margin-bottom: 1.25rem;
}

.preview-stat {
    background: var(--green-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.stat-label { font-size: .7rem; color: var(--text-light); font-weight: 500; margin-bottom: .25rem; }
.stat-value { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.stat-value.green { color: var(--green-500); }
.stat-value.amber { color: #f59e0b; }

.preview-chart {
    background: var(--green-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    overflow: hidden;
}

.chart-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, var(--lime-500), var(--lime-300));
    opacity: .8;
    transition: opacity .2s;
}

.chart-bar:hover { opacity: 1; }

/* ─── Section общее ──────────────────────────────────────── */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.section-eyebrow {
    display: inline-block;
    padding: .375rem 1rem;
    background: var(--green-100);
    border: 1px solid var(--green-300);
    border-radius: 6rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary-text);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: clamp(1.875rem, 3vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Features ────────────────────────────────────────────── */
.features { background: var(--bg-soft); }

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

.feature-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lime-400), var(--green-400));
    opacity: 0;
    transition: opacity .25s;
}

.feature-card:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
    background: var(--green-100);
    border: 1.5px solid var(--green-200);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .625rem;
    letter-spacing: -.01em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.65;
}

/* ─── Comparison ─────────────────────────────────────────── */
.comparison { background: white; }

.comparison-table {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comp-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: var(--green-50);
    border-bottom: 1.5px solid var(--border);
}

.comp-cell {
    padding: 1.125rem 1.5rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.comp-cell.highlight {
    background: var(--green-100);
    color: var(--primary-text);
    font-weight: 700;
    border-left: 1.5px solid var(--green-300);
    border-right: 1.5px solid var(--green-300);
}

.comp-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.comp-row:last-child { border-bottom: none; }
.comp-row:hover { background: var(--green-50); }

.comp-row .comp-cell {
    font-weight: 400;
    color: var(--text-secondary);
}

.comp-row .comp-cell:first-child { font-weight: 500; }

.comp-row .comp-cell.highlight {
    background: rgba(187,247,208,.2);
    font-weight: 500;
    color: var(--text);
}

.check { color: var(--green-500); font-weight: 700; font-size: 1rem; }
.cross { color: #d1d5db; font-size: 1rem; }

/* ─── Pricing ─────────────────────────────────────────────── */
.pricing { background: var(--green-50); }

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

.pricing-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    transition: all .25s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.pricing-card.featured {
    border-color: var(--lime-400);
    border-width: 2px;
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-3px);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #0f1f0f;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem 1rem;
    border-radius: 6rem;
    white-space: nowrap;
}

.plan-name {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-text);
    margin-bottom: .75rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    margin-bottom: .375rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -.04em;
    color: var(--text);
    line-height: 1;
}

.price-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    align-self: flex-start;
    margin-top: .5rem;
}

.price-period {
    font-size: .875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: block;
}

.plan-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.plan-features li::before {
    content: '✓';
    color: var(--green-500);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: .05rem;
}

.plan-features li.disabled {
    color: var(--text-light);
    text-decoration: line-through;
}

.plan-features li.disabled::before { content: '–'; color: #d1d5db; }

.btn-plan {
    display: block;
    width: 100%;
    padding: .875rem;
    border-radius: 6rem;
    text-align: center;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
}

.btn-plan-outline {
    border: 2px solid var(--border-strong) !important;
    color: var(--text-secondary);
    background: white;
}

.btn-plan-outline:hover {
    border-color: var(--primary-text) !important;
    color: var(--primary-text);
    background: var(--green-50);
}

.btn-plan-primary {
    background: var(--primary);
    color: #0f1f0f;
    box-shadow: 0 4px 16px rgba(163,230,53,.4);
}

.btn-plan-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 24px rgba(163,230,53,.5);
    transform: translateY(-1px);
}

.btn-plan-dark {
    background: var(--text);
    color: white;
}

.btn-plan-dark:hover {
    background: var(--text-secondary);
    transform: translateY(-1px);
}

/* ─── CTA ─────────────────────────────────────────────────── */
.cta {
    background: linear-gradient(135deg, var(--green-500) 0%, var(--lime-500) 100%);
    padding: 7rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-content { position: relative; }

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1.25rem;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.cta p {
    color: rgba(255,255,255,.85);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    padding: .9rem 2.25rem;
    background: white;
    color: var(--green-600);
    border-radius: 6rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
}

.btn-cta-secondary {
    padding: .9rem 2.25rem;
    border: 2px solid rgba(255,255,255,.5);
    color: white;
    border-radius: 6rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all .2s;
}

.btn-cta-secondary:hover {
    border-color: white;
    background: rgba(255,255,255,.1);
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--text);
    color: rgba(255,255,255,.7);
    padding: 5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-text { color: var(--lime-300); -webkit-text-fill-color: var(--lime-300); }

.footer-tagline {
    color: rgba(255,255,255,.5);
    font-size: .9rem;
    line-height: 1.65;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-col h4 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: .625rem; }

.footer-col a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}

.footer-col a:hover { color: var(--lime-300); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: rgba(255,255,255,.35);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.35); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,.6); }

/* ─── Modal ───────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.show { display: flex; }

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.75rem;
    width: 100%;
    max-width: 580px;
    box-shadow: var(--shadow-xl);
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: .5rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-size: .95rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: .375rem;
}

.form-group input {
    width: 100%;
    padding: .75rem 1rem;
    background: var(--green-50);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .95rem;
    outline: none;
    transition: border-color .2s;
}

.form-group input:focus { border-color: var(--lime-400); }

.btn-submit {
    width: 100%;
    padding: .875rem;
    background: var(--primary);
    color: #0f1f0f;
    border: none;
    border-radius: 6rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: .5rem;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(163,230,53,.35);
}

.btn-submit:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 24px rgba(163,230,53,.45);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-content  { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual   { order: -1; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid  { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .comp-header, .comp-row { grid-template-columns: 2fr 1fr 1fr; }
    .comp-cell:nth-child(4), .comp-row .comp-cell:nth-child(4) { display: none; }
}

@media (max-width: 600px) {
    .container     { padding: 0 1.25rem; }
    .hero          { padding: 4rem 0; }
    section        { padding: 4rem 0; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-title    { font-size: 2.25rem; }
    .nav-links     { gap: 1rem; }
    .footer-grid   { grid-template-columns: 1fr; }
}
