/* === LANDING-PAGE.CSS === */
/* assets/css/landing-page.css */
/* НАЗНАЧЕНИЕ: Стили продающей страницы SiteMind AI */
/* СВЯЗИ: themes-variables.css, themes-ui.css */
/* РАЗМЕР: ~420 строк */

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: var(--sm-font-body);
    background: var(--sm-bg-primary);
    color: var(--sm-text-primary);
    line-height: 1.6;
}
h1, h2, h3, h4 {
    font-family: var(--sm-font-display);
    line-height: 1.2;
}
a { color: var(--sm-accent); text-decoration: none; }
a:hover { color: var(--sm-accent-hover); }
img { max-width: 100%; }

/* --- Container --- */
.sm-landing-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.sm-landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--sm-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.sm-landing-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sm-bg-secondary);
    opacity: 0.92;
    z-index: -1;
}
.sm-landing-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 16px;
}
.sm-landing-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sm-text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.sm-landing-logo:hover { color: var(--sm-accent); }
.sm-landing-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sm-landing-nav-link {
    color: var(--sm-text-secondary);
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: var(--sm-radius);
    transition: color 0.2s, background 0.2s;
}
.sm-landing-nav-link:hover {
    color: var(--sm-text-primary);
    background: var(--sm-accent-muted);
}
.sm-landing-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.sm-btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* --- Dark/Light toggle --- */
.zk-theme-btn {
    background: none;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    padding: 6px;
    cursor: pointer;
    color: var(--sm-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
}
.zk-theme-btn:hover {
    color: var(--sm-text-primary);
    border-color: var(--sm-accent);
}
.zk-icon-sun { display: none; }
.zk-icon-moon { display: block; }
html.light-theme .zk-icon-sun { display: block; }
html.light-theme .zk-icon-moon { display: none; }

/* --- Hero --- */
.sm-landing-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
    overflow: hidden;
}
.sm-landing-hero .sm-landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.sm-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--sm-border);
    background: var(--sm-accent-muted);
    color: var(--sm-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.sm-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    max-width: 720px;
    letter-spacing: -0.02em;
}
.sm-hero-subtitle {
    color: var(--sm-text-secondary);
    font-size: 1.15rem;
    max-width: 560px;
    line-height: 1.6;
}
.sm-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.sm-btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
}
.sm-hero-metrics {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}
.sm-hero-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.sm-hero-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sm-accent);
    line-height: 1;
}
.sm-hero-metric-label {
    font-size: 0.8rem;
    color: var(--sm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* -- Social Proof (DreamCar pattern) -- */
.sm-social-proof {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--sm-border);
    max-width: 700px;
}
.sm-social-proof-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sm-avatars {
    display: flex;
}
.sm-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-right: -8px;
    border: 2px solid var(--sm-bg-primary);
}
.sm-avatar:last-child { margin-right: 0; }
.sm-social-rating {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sm-stars {
    color: #fbbf24;
    font-size: 0.9rem;
    letter-spacing: 2px;
}
.sm-social-text {
    font-size: 0.75rem;
    color: var(--sm-text-muted);
}
.sm-social-proof-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.sm-social-stat {
    text-align: center;
}
.sm-social-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sm-accent);
    line-height: 1;
}
.sm-social-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--sm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* --- Sections --- */
.sm-landing-section {
    padding: 80px 20px;
}
.sm-section-alt {
    background: var(--sm-bg-secondary);
}
.sm-section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: 16px;
}
.sm-section-subtitle {
    text-align: center;
    color: var(--sm-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Problem cards --- */
.sm-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}
.sm-problem-card {
    text-align: center;
    padding: 24px 16px;
}
.sm-problem-card h3 {
    margin: 12px 0 8px;
    font-size: 1.1rem;
}
.sm-problem-card p {
    color: var(--sm-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.sm-problem-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--sm-radius-lg);
    background: var(--sm-accent-muted);
    color: var(--sm-accent);
}

/* --- Solution --- */
.sm-solution-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
    margin: 40px auto 0;
}
.sm-solution-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.sm-solution-check {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sm-accent-muted);
    color: var(--sm-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.sm-solution-item h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}
.sm-solution-item p {
    color: var(--sm-text-secondary);
    font-size: 0.9rem;
}

/* --- Steps --- */
.sm-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
    text-align: center;
}
.sm-step {
    padding: 16px 10px;
}
.sm-step-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sm-accent);
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}
.sm-step h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.sm-step p {
    color: var(--sm-text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --- Audience --- */
.sm-audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}
.sm-audience-card {
    text-align: center;
    padding: 20px 14px;
}
.sm-audience-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--sm-radius-lg);
    background: var(--sm-accent-muted);
    color: var(--sm-accent);
    margin-bottom: 12px;
}
.sm-audience-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}
.sm-audience-card p {
    color: var(--sm-text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --- Features --- */
.sm-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}
.sm-feature-card {
    padding: 20px;
}
.sm-feature-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--sm-radius);
    background: var(--sm-accent-muted);
    color: var(--sm-accent);
    margin-bottom: 12px;
}
.sm-feature-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}
.sm-feature-card p {
    color: var(--sm-text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --- Pricing --- */
.sm-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
    align-items: start;
}
.sm-pricing-card {
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.sm-pricing-card.popular {
    border-color: var(--sm-accent);
    box-shadow: 0 0 0 1px var(--sm-accent);
}
.sm-pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sm-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sm-pricing-header {
    text-align: center;
    margin-bottom: 16px;
}
.sm-pricing-header h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.sm-pricing-price {
    font-size: 2rem;
    font-weight: 700;
}
.sm-pricing-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--sm-text-muted);
}
.sm-pricing-period {
    color: var(--sm-text-muted);
    font-size: 0.85rem;
}
.sm-pricing-features {
    list-style: none;
    margin-bottom: 16px;
    flex: 1;
}
.sm-pricing-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sm-pricing-yes::before,
.sm-pricing-no::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border-radius: 50%;
}
.sm-pricing-yes::before {
    background: var(--sm-accent-muted);
    box-shadow: inset 0 0 0 2px var(--sm-accent);
}
.sm-pricing-no::before {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--sm-border);
}
.sm-pricing-no {
    color: var(--sm-text-muted);
}
.sm-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- FAQ --- */
.sm-faq-container {
    max-width: 720px;
}
.sm-faq-list {
    margin-top: 40px;
}
.sm-faq-item {
    border-bottom: 1px solid var(--sm-border);
}
.sm-faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--sm-text-primary);
    font-family: var(--sm-font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: color 0.2s;
}
.sm-faq-question:hover {
    color: var(--sm-accent);
}
.sm-faq-question svg {
    flex: 0 0 auto;
    color: var(--sm-text-muted);
    transition: transform 0.3s ease;
}
.sm-faq-item.open .sm-faq-question svg {
    transform: rotate(180deg);
}
.sm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.sm-faq-item.open .sm-faq-answer {
    max-height: 300px;
}
.sm-faq-answer p {
    padding: 0 0 16px;
    color: var(--sm-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- CTA Section --- */
.sm-cta-section {
    text-align: center;
    padding: 80px 20px;
}
.sm-cta-section .sm-section-title {
    margin-bottom: 12px;
}
.sm-cta-section .sm-section-subtitle {
    margin-bottom: 24px;
}

/* --- Footer --- */
.sm-landing-footer {
    border-top: 1px solid var(--sm-border);
    padding: 20px 0;
}
.sm-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sm-footer-copy {
    color: var(--sm-text-muted);
    font-size: 0.8rem;
}
.sm-footer-links {
    display: flex;
    gap: 16px;
}
.sm-footer-links a {
    color: var(--sm-text-secondary);
    font-size: 0.8rem;
}
.sm-footer-links a:hover {
    color: var(--sm-accent);
}

/* --- Scroll Reveal --- */
.sm-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.sm-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.sm-reveal[data-i="1"] { transition-delay: 0.05s; }
.sm-reveal[data-i="2"] { transition-delay: 0.15s; }
.sm-reveal[data-i="3"] { transition-delay: 0.25s; }
.sm-reveal[data-i="4"] { transition-delay: 0.35s; }
.sm-reveal[data-i="5"] { transition-delay: 0.45s; }
.sm-reveal[data-i="6"] { transition-delay: 0.55s; }

/* --- Gradient Mesh on Hero --- */
.sm-hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 50%, var(--sm-accent-muted) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, hsla(172, 66%, 50%, 0.08) 0%, transparent 50%);
    background-size: 400% 400%;
    animation: sm-mesh-shift 20s ease infinite;
}
@keyframes sm-mesh-shift {
    0%, 100% { background-position: 0% 50%; }
    33% { background-position: 100% 50%; }
    66% { background-position: 50% 0%; }
}

/* --- Noise Texture on Hero --- */
.sm-landing-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.light-theme .sm-landing-hero::after { opacity: 0.015; }

/* --- Card Hover --- */
.sm-feature-card, .sm-pricing-card, .sm-type-card {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sm-feature-card:hover, .sm-type-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sm-shadow-lg);
    border-color: var(--sm-accent-muted);
}

/* --- Typewriter --- */
.sm-typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--sm-accent);
    margin-left: 2px;
    vertical-align: baseline;
    animation: sm-blink 0.8s step-end infinite;
}
@keyframes sm-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
.sm-typewriter-word {
    color: var(--sm-accent);
}

/* --- Cursor Glow --- */
/* -- Cursor Glow (DreamCar pattern exact) -- */
#sm-cursor-wrap {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 40px;
    height: 40px;
}
.sm-cursor-blur {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(40px);
    transition: filter 0.3s ease, background 0.3s ease;
}
.sm-cursor-svg {
    position: absolute;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    fill: #ffffff;
    stroke: #ffffff;
    filter: drop-shadow(0 0 8px #ffffff);
}
html.light-theme .sm-cursor-svg {
    fill: #111111;
    stroke: #111111;
    filter: drop-shadow(0 0 8px #111111);
}
html.light-theme .sm-cursor-blur {
    background: rgba(0, 0, 0, 0.06);
}
#sm-cursor-wrap.sm-cursor-hover .sm-cursor-blur {
    background: var(--sm-accent-muted, rgba(14, 165, 233, 0.15));
    filter: blur(45px);
}
body.sm-hide-cursor, body.sm-hide-cursor * { cursor: none !important; }

/* --- Focus visible --- */
:focus-visible {
    outline: 2px solid var(--sm-accent);
    outline-offset: 2px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .sm-reveal { opacity: 1; transform: none; transition: none; }
    .sm-hero-mesh { animation: none; }
    .sm-typewriter-cursor { animation: none; opacity: 1; }
    #sm-cursor-wrap { display: none; }
    body.sm-hide-cursor, body.sm-hide-cursor * { cursor: auto !important; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sm-pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .sm-audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sm-landing-hero { min-height: auto; padding: 60px 20px 40px; }
    .sm-hero-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
    .sm-landing-nav { display: none; }
    .sm-problem-grid { grid-template-columns: 1fr; }
    .sm-steps { grid-template-columns: repeat(2, 1fr); }
    .sm-feature-grid { grid-template-columns: 1fr; }
    .sm-audience-grid { grid-template-columns: 1fr; }
    .sm-pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
    .sm-hero-metrics { flex-direction: row; gap: 24px; }
    .sm-landing-section { padding: 50px 16px; }
    .sm-footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
    .sm-steps { grid-template-columns: 1fr; }
    .sm-hero-actions { flex-direction: column; width: 100%; }
    .sm-hero-actions .sm-btn-lg { width: 100%; text-align: center; }
}
