/* CRMS public landing page — editorial SaaS refresh */

:root {
    --landing-blue: #2d5ee5;
    --landing-blue-dark: #1f46bb;
    --landing-green: #47cf64;
    --landing-orange: #f5a524;
    --landing-ink: #101828;
    --landing-copy: #526071;
    --landing-line: #e5eaf2;
    --landing-soft: #f5f8fd;
    --landing-white: #ffffff;
    --landing-shadow: 0 24px 70px rgba(29, 54, 105, 0.11);
}

html { scroll-padding-top: 90px; }

body {
    overflow-x: hidden;
    font-family: Inter, "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

body.light-theme {
    --primary: #ffffff;
    --secondary: #ffffff;
    --tertiary: #f5f8fd;
    --text: var(--landing-ink);
    --text-muted: var(--landing-copy);
    --border: var(--landing-line);
    --gradient: var(--landing-blue);
}

/* Navigation */
.navbar {
    padding: 15px 0;
    background: color-mix(in srgb, var(--secondary) 90%, transparent);
    border-bottom-color: color-mix(in srgb, var(--border) 75%, transparent);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

body.light-theme .navbar,
body.light-theme .navbar.scrolled { background: rgba(255, 255, 255, 0.9); }

.navbar.scrolled {
    padding: 11px 0;
    box-shadow: 0 8px 30px rgba(16, 24, 40, 0.07);
}

.navbar-container {
    max-width: 1320px;
    padding: 0 28px;
    gap: 36px;
}

.logo img {
    width: 184px;
    height: auto;
    display: block;
}

.nav-links { gap: 24px; }

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active { color: var(--landing-blue); }
.nav-actions { gap: 10px; }

.btn {
    min-height: 42px;
    padding: 10px 21px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn-primary {
    background: var(--landing-blue);
    box-shadow: 0 8px 20px rgba(45, 94, 229, 0.2);
}

.btn-primary:hover {
    background: var(--landing-blue-dark);
    box-shadow: 0 12px 26px rgba(45, 94, 229, 0.28);
}

.btn-secondary {
    border-color: var(--border);
    background: color-mix(in srgb, var(--secondary) 88%, transparent);
}

.btn-secondary:hover {
    border-color: color-mix(in srgb, var(--landing-blue) 50%, var(--border));
    background: color-mix(in srgb, var(--landing-blue) 7%, var(--secondary));
}

/* Hero */
.hero {
    min-height: 0;
    padding: 156px 28px 72px;
    align-items: flex-start;
    background: var(--primary);
}

.hero-bg {
    background:
        radial-gradient(circle at 82% 26%, rgba(71, 207, 100, 0.08), transparent 23%),
        radial-gradient(circle at 18% 12%, rgba(45, 94, 229, 0.1), transparent 28%);
}

.hero-grid {
    background-image: radial-gradient(color-mix(in srgb, var(--text-muted) 22%, transparent) 0.75px, transparent 0.75px);
    background-size: 22px 22px;
    opacity: 0.3;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero-content {
    max-width: 1320px;
    text-align: left;
}

.hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr);
    align-items: center;
    gap: 66px;
}

.hero-copy { min-width: 0; }

.hero h1,
body.light-theme .hero h1 {
    max-width: 760px;
    margin-bottom: 24px;
    background: none;
    color: var(--text);
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(44px, 4.1vw, 68px);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero-description {
    max-width: 650px;
    margin: 0 0 33px;
    color: var(--text-muted);
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.7;
}

.hero-buttons {
    justify-content: flex-start;
    gap: 12px;
}

.hero .btn-large {
    min-height: 54px;
    padding: 15px 26px;
    border-radius: 14px;
    font-size: 15px;
}

.hero-visual {
    position: relative;
    min-height: 476px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(45, 94, 229, 0.12);
    border-radius: 36px;
    background: linear-gradient(150deg, #f9fbff 0%, #eef4ff 100%);
    box-shadow: var(--landing-shadow);
    isolation: isolate;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(45, 94, 229, 0.08);
    border-radius: 50%;
    z-index: -1;
}

.hero-visual-brand {
    position: absolute;
    top: 22px;
    left: 24px;
    right: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-visual-brand img { width: 126px; height: auto; }

.hero-live-dot {
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--landing-green);
    box-shadow: 0 0 0 5px rgba(71, 207, 100, 0.13);
}

.hero-visual-image {
    width: 108%;
    max-width: none;
    height: 420px;
    object-fit: contain;
    transform: translateY(20px);
    filter: drop-shadow(0 18px 24px rgba(23, 35, 60, 0.08));
}

.hero-visual-note {
    position: absolute;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(45, 94, 229, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 26px rgba(29, 54, 105, 0.12);
    color: var(--landing-blue);
}

.hero-visual-note.note-growth { top: 92px; right: 28px; color: var(--landing-green); }
.hero-visual-note.note-connected { right: 48px; bottom: 44px; }

.hero .hero-downloads {
    margin-top: 54px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.hero .hero-downloads-title {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-align: left;
}

.hero .hero-downloads-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    justify-content: stretch;
}

.hero .download-card,
body.light-theme .hero .download-card {
    min-width: 0;
    min-height: 82px;
    padding: 15px 16px;
    gap: 11px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--secondary);
    box-shadow: 0 8px 24px rgba(29, 54, 105, 0.05);
    backdrop-filter: none;
}

.hero .download-card:hover,
body.light-theme .hero .download-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 94, 229, 0.35);
    background: var(--secondary);
    box-shadow: 0 14px 30px rgba(29, 54, 105, 0.1);
}

.hero .download-card > i,
.hero .download-card .dl-android-icon { width: 26px; height: 26px; font-size: 25px; }

.hero .download-card .dl-name {
    color: var(--text);
    font-size: 13px;
    line-height: 1.25;
}

.hero .download-card .dl-desc {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.35;
}

.hero .download-card .dl-get {
    width: auto;
    height: auto;
    margin-left: auto;
    color: var(--landing-blue);
    font-size: 12px;
}

.hero .hero-downloads-note {
    margin-top: 13px;
    justify-content: flex-start;
    color: var(--text-muted);
    font-size: 11px;
}

.hero-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    color: var(--text-muted);
}

.hero-contact a { color: var(--text) !important; }

/* Compact proof strip */
.stats-section {
    padding: 0 28px 86px;
    border: 0;
    background: var(--primary);
}

.stats-container {
    max-width: 1320px;
    padding: 28px 34px;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-radius: 24px;
    background: #132241;
    box-shadow: 0 22px 50px rgba(16, 34, 65, 0.18);
}

.stat-box,
body.light-theme .stat-box {
    padding: 8px 28px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 0;
    background: transparent;
    text-align: left;
}

.stat-box:last-child { border-right: 0; }
.stat-box:hover { transform: none; border-color: rgba(255, 255, 255, 0.11); }

.stat-number {
    margin: 0 0 4px;
    background: none;
    color: #fff;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-label {
    color: rgba(255, 255, 255, 0.63);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Shared sections */
.section { padding: 112px 28px; }
.container { max-width: 1320px; }

.section-header {
    max-width: 820px;
    margin: 0 auto 54px;
}

.section-badge {
    padding: 7px 13px;
    border-color: rgba(45, 94, 229, 0.15);
    background: rgba(45, 94, 229, 0.07);
    color: var(--landing-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.section-title {
    margin-bottom: 15px;
    color: var(--text);
    font-size: clamp(36px, 3.4vw, 54px);
    font-weight: 750;
    line-height: 1.13;
    letter-spacing: -0.04em;
}

.section-description {
    max-width: 700px;
    margin-inline: auto;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}

/* Generated 2D feature artwork */
.features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
body.light-theme .feature-card {
    position: relative;
    min-width: 0;
    padding: 23px 23px 25px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--secondary);
    box-shadow: 0 10px 34px rgba(29, 54, 105, 0.055);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 94, 229, 0.25);
    box-shadow: 0 18px 42px rgba(29, 54, 105, 0.1);
}

.feature-illustration {
    height: 150px;
    margin: -5px -4px 17px;
    display: grid;
    place-items: center;
}

.feature-illustration img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(23, 35, 60, 0.05));
}

.feature-icon { display: none; }

.feature-title {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 17px;
    font-weight: 720;
    line-height: 1.38;
    letter-spacing: -0.02em;
}

.feature-description {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* Dense, readable modules */
.modules-section {
    border: 0;
    background: linear-gradient(rgba(45, 94, 229, 0.035), rgba(45, 94, 229, 0.035)), var(--primary);
}

.modules-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.module-card,
body.light-theme .module-card {
    min-width: 0;
    padding: 23px 22px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: var(--secondary);
    box-shadow: 0 8px 24px rgba(29, 54, 105, 0.04);
    cursor: default;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(45, 94, 229, 0.25);
    box-shadow: 0 16px 32px rgba(29, 54, 105, 0.08);
}

.module-header { gap: 13px; margin-bottom: 14px; }

.module-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    font-size: 17px;
}

.module-icon.primary { background: var(--landing-blue); }
.module-icon.success { background: var(--landing-green); }
.module-icon.warning { background: var(--landing-orange); }
.module-icon.info { background: #3b82f6; }

.module-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 720;
    line-height: 1.35;
}

.module-description {
    min-height: 63px;
    margin-bottom: 11px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.module-features li {
    padding: 4px 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.module-features li i { color: var(--landing-green); }

/* How it works */
#how-it-works .section-header { margin-bottom: 62px; }

.steps-container {
    position: relative;
    max-width: 1320px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.steps-container::before {
    content: "";
    position: absolute;
    top: 31px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, var(--landing-blue), var(--landing-green));
    opacity: 0.28;
}

.step-card,
body.light-theme .step-card {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
    padding: 0 10px;
    border: 0;
    background: transparent;
}

.step-number {
    width: 62px;
    min-width: 62px;
    height: 62px;
    margin: 0 0 25px;
    border: 8px solid var(--primary);
    background: var(--landing-blue);
    box-shadow: 0 0 0 1px rgba(45, 94, 229, 0.16);
    font-size: 18px;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 720;
    line-height: 1.4;
}

.step-content p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* Pricing */
#pricing { background: color-mix(in srgb, var(--tertiary) 62%, var(--primary)); }

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1320px;
    align-items: stretch;
}

.pricing-card,
body.light-theme .pricing-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 30px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--secondary);
    box-shadow: 0 12px 38px rgba(29, 54, 105, 0.06);
}

.pricing-card:hover { transform: translateY(-4px); border-color: rgba(45, 94, 229, 0.28); }

.pricing-card.featured {
    border: 2px solid var(--landing-blue);
    box-shadow: 0 24px 60px rgba(45, 94, 229, 0.15);
}

.pricing-badge {
    top: -13px;
    right: 28px;
    background: var(--landing-blue);
    box-shadow: 0 8px 18px rgba(45, 94, 229, 0.22);
}

.pricing-header { margin-bottom: 24px; }

.pricing-name { color: var(--text); font-size: 23px; font-weight: 760; }
.price-amount { color: var(--text); font-size: 31px; letter-spacing: -0.035em; }
.pricing-features { margin-bottom: 30px; }

.pricing-features li {
    align-items: flex-start;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.pricing-features li i { margin-top: 3px; color: var(--landing-green); }
.pricing-card > .btn { margin-top: auto; }

/* Testimonials */
.testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.testimonial-card,
body.light-theme .testimonial-card {
    position: relative;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--secondary);
    box-shadow: 0 10px 34px rgba(29, 54, 105, 0.05);
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 14px;
    right: 24px;
    color: rgba(45, 94, 229, 0.11);
    font-family: Georgia, serif;
    font-size: 76px;
    line-height: 1;
}

.testimonial-text {
    position: relative;
    margin-bottom: 26px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.75;
}

.author-avatar { background: var(--landing-blue); }

/* CTA + footer */
.cta-section {
    padding-top: 38px;
    border: 0;
    background: var(--primary);
}

.cta-section .container {
    position: relative;
    overflow: hidden;
    padding: 72px 44px;
    border-radius: 34px;
    background: #183b9f;
    box-shadow: 0 26px 70px rgba(24, 59, 159, 0.24);
}

.cta-section .container::before,
.cta-section .container::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.cta-section .container::before { width: 360px; height: 360px; left: -180px; bottom: -230px; }
.cta-section .container::after { width: 270px; height: 270px; top: -180px; right: -110px; }
.cta-content { position: relative; z-index: 1; }

.cta-title {
    color: #fff;
    font-size: clamp(38px, 4vw, 56px);
    letter-spacing: -0.04em;
}

.cta-description {
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.65;
}

.cta-section .hero-buttons { justify-content: center; }

.cta-section .btn-primary {
    background: #fff;
    color: #183b9f;
    box-shadow: none;
}

.cta-section .btn-secondary {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer {
    padding: 78px 28px 26px;
    border: 0;
    background: var(--primary);
}

.footer-container { max-width: 1320px; }
.footer-grid { gap: 72px; }

.footer-column:first-child .logo {
    color: var(--text);
    -webkit-text-fill-color: currentColor;
}

.footer-column h3 { color: var(--text); font-size: 15px; }
.footer-links a { line-height: 1.5; }
.footer-bottom { line-height: 1.55; }

/* Lightweight viewport reveal */
.landing-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.landing-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1240px) {
    .hero-main { grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr); gap: 40px; }
    .hero h1, body.light-theme .hero h1 { font-size: clamp(42px, 4.6vw, 58px); }
    .hero .hero-downloads-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .features-grid, .modules-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .hero { padding-top: 132px; }
    .hero-main { grid-template-columns: 1fr; gap: 48px; }
    .hero-copy { max-width: 780px; }
    .hero-visual { min-height: 440px; }
    .hero-visual-image { width: 92%; }
    .features-grid, .modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
    .stat-box:nth-child(2) { border-right: 0; }
    .steps-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 18px; }
    .steps-container::before { display: none; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 720px; }
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .navbar { padding: 12px 0; }
    .navbar-container { padding: 0 18px; }
    .logo img { width: 142px; }
    .mobile-menu { padding: 12px 18px 18px; border-radius: 0 0 20px 20px; }
    .hero { padding: 112px 18px 56px; }

    .hero h1,
    body.light-theme .hero h1 {
        font-size: clamp(37px, 11vw, 48px);
        letter-spacing: -0.048em;
    }

    .hero-description { font-size: 16px; }
    .hero-buttons { display: grid; grid-template-columns: 1fr; }
    .hero .hero-buttons .btn { width: 100%; }
    .hero-visual { min-height: 320px; border-radius: 26px; }
    .hero-visual-image { width: 112%; height: 300px; transform: translateY(16px); }
    .hero-visual-brand { top: 18px; left: 18px; right: 18px; }
    .hero-visual-brand img { width: 104px; }
    .hero-visual-note { display: none; }
    .hero .hero-downloads { margin-top: 40px; padding-top: 24px; }
    .hero .hero-downloads-cards { grid-template-columns: 1fr; }
    .hero .download-card { min-height: 74px; }

    .hero-contact {
        margin-top: 22px !important;
        font-size: 14px !important;
        line-height: 1.8;
    }

    .stats-section { padding: 0 18px 64px; }
    .stats-container { padding: 25px 20px; border-radius: 22px; }
    .stat-box, body.light-theme .stat-box { padding: 5px 14px; }
    .stat-number { font-size: 31px; }
    .stat-label { font-size: 9px; }
    .section { padding: 82px 18px; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: clamp(32px, 9.5vw, 42px); }
    .section-description { font-size: 15px; }
    .features-grid, .modules-grid, .steps-container { grid-template-columns: 1fr; }
    .feature-illustration { height: 170px; }
    .module-description { min-height: 0; }

    .step-card,
    body.light-theme .step-card {
        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 17px;
        padding: 0;
    }

    .step-number {
        width: 54px;
        min-width: 54px;
        height: 54px;
        margin: 0;
        border-width: 6px;
    }

    .pricing-card, body.light-theme .pricing-card { padding: 32px 24px; }
    .cta-section { padding-top: 22px; }
    .cta-section .container { padding: 56px 24px; border-radius: 26px; }
    .cta-section .hero-buttons { display: grid; }
    .cta-section .btn { width: 100%; }
    .footer { padding: 64px 18px 22px; }
}

@media (max-width: 420px) {
    .stats-container { grid-template-columns: 1fr 1fr; }
    .stat-box { border-right: 0; }
    .feature-card, body.light-theme .feature-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .landing-reveal,
    .landing-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .feature-card,
    .module-card,
    .pricing-card,
    .download-card,
    .btn { transition: none; }
}
