/* ── Skipi · journey ─────────────────────────────────────────────
   Redesign v2: сайт-путешествие. Один экран — одна мысль — одно
   действие. Воздух и типографика вместо украшений.
   Светлая тема по умолчанию (канон Skipi). */

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

:root {
    color-scheme: light;
    --paper:    #ffffff;
    --ink:      #0a1f33;
    --body:     #46586b;
    --muted:    #8595a6;
    --hairline: #dbe4ec;
    --accent:   #007a86;
    --accent-dk:#005e68;
    --font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system,
            "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
html:has(body.story-page) { scroll-snap-type: y proximity; }

body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── общие атомы ── */

.kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.horizon {
    width: 76px;
    height: 1px;
    margin: 1.7rem auto;
    background: linear-gradient(90deg, transparent,
                #9fb3c4 30%, #9fb3c4 70%, transparent);
}

.line {
    font-size: clamp(1.02rem, 2.6vw, 1.22rem);
    color: var(--body);
    max-width: 36ch;
    margin: 0.55rem auto 0;
    text-wrap: balance;
}

.arr { transition: transform 0.25s ease; }

/* действия: .cta — ЕДИНСТВЕННЫЙ класс ссылок на assistant.skipi.app */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.95em 1.75em;
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.25s ease;
}
.cta:hover { background: var(--accent-dk); transform: translateY(-2px); }
.cta:hover .arr { transform: translateX(4px); }

.ghost {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.95em 1.75em;
    border-radius: 999px;
    border: 1px solid var(--hairline);
    color: var(--ink);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.quiet {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.quiet:hover { color: var(--ink); border-color: var(--ink); }

/* ── вход ── */

.entry {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem 1.5rem 5.5rem;
}

.wordmark {
    font-size: clamp(4.2rem, 17vw, 8.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    margin-top: 1.1rem;
}
.wordmark .dot { color: var(--accent); }

.entry-line {
    font-size: clamp(1.02rem, 2.6vw, 1.2rem);
    color: var(--body);
    max-width: 40ch;
    margin: 0 auto;
    text-wrap: balance;
}

.entry-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: 2.4rem;
}
@media (min-width: 560px) {
    .entry-actions { flex-direction: row; justify-content: center; }
}

.whisper {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    background: linear-gradient(transparent, var(--paper) 55%);
}
.langs { display: flex; gap: 0.95rem; }
.langs a { color: var(--muted); font-weight: 500; }
.langs a:hover { color: var(--ink); }
.langs a.active { color: var(--ink); font-weight: 700; }
.whisper .quiet { font-size: 0.8rem; }

/* ── путешествие ── */

.voyage-bar {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.4rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.voyage-bar .brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}
.voyage-bar .brand .dot { color: var(--accent); }
.cta.cta-bar { font-size: 0.88rem; padding: 0.55em 1.2em; }

.scene {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    padding: 6rem 1.5rem;
    scroll-snap-align: start;
}

/* погружение: от белого неба к воде, едва заметно */
#prologue  { background: var(--paper); }
#assistant { background: #fbfdfe; }
#apps      { background: #f8fbfc; }
#contours  { background: #f4f9fa; }
#start     { background: #eff6f7; }

.scene h1, .scene h2 {
    font-size: clamp(2.1rem, 7.5vw, 4.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.06;
    text-wrap: balance;
    max-width: 16ch;
    margin: 1.1rem auto 0;
}

.scene .cta, .scene .quiet { margin-top: 2.3rem; }
.cta.cta-big { font-size: 1.12rem; padding: 1.05em 2em; }

.hint {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 1.15rem;
    animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 7px); }
}

/* глава II: приложения — три строки, не карточки */
.apps {
    list-style: none;
    margin-top: 2.1rem;
    display: grid;
    gap: 1.05rem;
}
.apps .app-name {
    font-size: clamp(1.35rem, 4.5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.apps .app-for {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

/* глава III: три роли вокруг одного слоя данных */
.ring {
    position: relative;
    width: min(66vw, 300px);
    aspect-ratio: 1;
    margin: 3.4rem auto 0.6rem;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.ring-core {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    max-width: 12ch;
}
.ring-role {
    position: absolute;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    background: inherit;
    padding: 0 0.6em;
}
.ring-role.r1 { top: -0.75em; left: 50%; transform: translateX(-50%); }
.ring-role.r2 { bottom: 16%; left: -1.6em; }
.ring-role.r3 { bottom: 16%; right: -1.6em; }

/* ── появление по мере движения ── */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.scene-inner > .reveal:nth-child(2),
.entry-inner > .reveal:nth-child(2) { --d: 0.1s; }
.scene-inner > .reveal:nth-child(3),
.entry-inner > .reveal:nth-child(3) { --d: 0.2s; }
.scene-inner > .reveal:nth-child(4),
.entry-inner > .reveal:nth-child(4) { --d: 0.3s; }
.scene-inner > .reveal:nth-child(5),
.entry-inner > .reveal:nth-child(5) { --d: 0.4s; }
.scene-inner > .reveal:nth-child(6),
.entry-inner > .reveal:nth-child(6) { --d: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hint { animation: none; }
    .cta, .ghost { transition: none; }
}
