/* Натальная карта — сайт-презентация. Палитра приложения:
   фон #0E0E16, поверхность #171722, акцент #8E7CF5, золото #F6C453 */

:root {
    --bg: #0E0E16;
    --surface: #171722;
    --surface-2: #1D1D2B;
    --line: #2C2C40;
    --text: #F2F0FA;
    --muted: #B7B3D4;
    --accent: #8E7CF5;
    --gold: #F6C453;
    --harmony: #4ECFA0;
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(142, 124, 245, .14), transparent 60%),
        radial-gradient(900px 500px at -10% 40%, rgba(246, 196, 83, .07), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: .9em;
}

/* Космический фон: туманности и мерцающие звёзды.
   Фиксированный слой под контентом, растянут на ±15% высоты экрана —
   запас под параллакс-смещение слоёв при прокрутке (js/parallax.js). */
.cosmos {
    position: fixed;
    left: 0;
    right: 0;
    top: -15%;
    bottom: -15%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.cosmos-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: .18;
    animation: twinkle var(--dur, 5s) ease-in-out var(--delay, 0s) infinite;
}

.star--bright {
    background: #F2F0FA;
    box-shadow: 0 0 8px 2px rgba(242, 240, 250, .5);
}

@keyframes twinkle {
    0%, 100% { opacity: .1;  transform: scale(.7); }
    50%      { opacity: var(--peak, .8); transform: scale(1.1); }
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .15;
    transform: translate(-50%, -50%);
    animation: drift var(--dur, 40s) ease-in-out var(--delay, 0s) infinite alternate;
}

.nebula--violet { background: radial-gradient(circle, #8E7CF5 0%, transparent 65%); }
.nebula--gold   { background: radial-gradient(circle, #F6C453 0%, transparent 62%); }
.nebula--teal   { background: radial-gradient(circle, #4ECFA0 0%, transparent 65%); }

@keyframes drift {
    from { transform: translate(-50%, -50%) translate(0, 0) scale(1);       opacity: .12; }
    to   { transform: translate(-50%, -50%) translate(44px, -28px) scale(1.12); opacity: .2; }
}

/* Уважаем системную настройку «меньше анимаций» */
@media (prefers-reduced-motion: reduce) {
    .star, .nebula { animation: none; }
    .star { opacity: .3; }
    .nebula { opacity: .12; }
    .hero-wheel svg { animation: none; }
}

/* Шапка */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(14, 14, 22, .85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
}

.brand:hover { text-decoration: none; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--accent);
    color: var(--gold);
    font-size: 1rem;
}

.site-header nav { display: flex; gap: 22px; }

.site-header nav a { color: var(--muted); font-size: .92rem; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* Герой */
.hero { padding: 72px 0 64px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}

.kicker {
    color: var(--gold);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 .accent { color: var(--accent); }

.lead { color: var(--muted); font-size: 1.05rem; max-width: 56ch; margin-bottom: 26px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 22px rgba(142, 124, 245, .35);
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--surface);
}

.hero-wheel { display: flex; justify-content: center; }
.hero-wheel svg { max-width: 100%; height: auto; animation: float 7s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Секции */
.section { padding: 64px 0; }
.section-alt { background: rgba(23, 23, 34, .55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 28px;
}

/* Карточки возможностей */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color .2s ease, transform .2s ease;
}

.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card-icon { font-size: 1.5rem; margin-bottom: 12px; }

.card h3 { font-size: 1.05rem; margin-bottom: 8px; }

.card p { color: var(--muted); font-size: .92rem; }

/* Технологии */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.chip {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 18px;
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.chip strong { font-size: .95rem; }
.chip span { color: var(--muted); font-size: .82rem; }

.note { color: var(--muted); font-size: .95rem; max-width: 80ch; }

/* Экраны — таймлайн */
.timeline { display: grid; gap: 14px; }

.timeline-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.timeline-num {
    color: var(--gold);
    font-weight: 700;
    font-size: .95rem;
    padding-top: 2px;
    min-width: 30px;
}

.timeline-item h3 { font-size: 1rem; margin-bottom: 4px; }
.timeline-item p { color: var(--muted); font-size: .92rem; }

/* Планы */
.roadmap-list { list-style: none; display: grid; gap: 12px; }

.roadmap-list li {
    position: relative;
    padding-left: 30px;
    color: var(--muted);
}

.roadmap-list li::before {
    content: "✦";
    position: absolute;
    left: 4px;
    color: var(--accent);
}

/* Подвал */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    color: var(--muted);
    font-size: .85rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Адаптив */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-wheel { order: -1; }
    .hero-wheel svg { width: 260px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .cards { grid-template-columns: 1fr; }
    .site-header nav { gap: 12px; }
    .site-header nav a:nth-child(n+3) { display: none; }
}
