/* Konsilito «Ghost Agent» — shared landing theme (konsilito.ru / konsilito.com).
   Loaded after each page's inline styles: deep black, flat 1px surfaces, white line-mark,
   gold only on accents/CTA. Matches pwa/brand-konsilito.css. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #050506;
    --bg-secondary: #08080A;
    --bg-card: #0F0F12;
    --bg-input: #0C0C0F;
    --border: #1C1C20;
    --accent: #E0A52A;
    --accent-hover: #F5C35A;
    --accent-glow: rgba(245, 166, 35, 0.22);
    --cyan: #E0A52A;
    --cyan-glow: rgba(245, 166, 35, 0.08);
    --text-primary: #F2F2F2;
    --text-secondary: #A2A2AC;
    --text-muted: #7F7F88;
    --ga-glow: 0 0 18px rgba(245, 166, 35, .35);
}

body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

/* Rajdhani display face → Inter with wide tracking, like the wordmark */
.header-title, .hero h1, .hero .subtitle, .stat-number, .section-title, .role-tag, .role-title,
.int-card h4, .step-number, .step-title, .platform-card h3, .feature-card h4, .price-card h4,
.price-card .price-amount, .pack-price, .cta-bottom h2, h1, h2, h3 {
    font-family: 'Inter', system-ui, sans-serif !important;
}
.header-title { letter-spacing: .18em; font-weight: 600; font-size: 15px; }
.hero h1 {
    position: relative; display: inline-block;
    letter-spacing: .24em; font-weight: 600; font-size: 64px; line-height: 1.1;
    padding: 0 .12em 14px .24em; margin-bottom: 14px;
    background: none; -webkit-text-fill-color: var(--text-primary); color: var(--text-primary);
}
/* gold horizon line under the wordmark, fading out at both ends */
.hero h1::after {
    content: ''; position: absolute; left: -22%; right: -22%; bottom: 0; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, rgba(245,166,35,.55) 22%, #FFD27A 50%, rgba(245,166,35,.55) 78%, transparent 100%);
    box-shadow: 0 0 10px rgba(245,166,35,.9), 0 0 28px rgba(245,166,35,.55), 0 14px 60px 18px rgba(245,166,35,.16);
}
.hero .subtitle { letter-spacing: .4em; font-weight: 500; font-size: 22px; padding-left: .4em; margin-bottom: 20px; }
.hero .description { color: #E8E8EC; font-size: 20px; line-height: 1.7; }
.hero .description strong { color: #FFFFFF; }
.section-title { letter-spacing: .12em; font-weight: 600; font-size: 26px; }
.cta-bottom h2 { letter-spacing: .12em; font-weight: 600; }

/* brand mark: bare white glyph, no tile, soft gold glow only in the hero */
.header-logo, .hero-logo {
    border-radius: 0 !important; box-shadow: none !important; background: transparent;
    object-fit: contain; animation: none !important;
}
.header-logo { width: 30px; height: 32px; }
.hero-logo { width: 224px; height: 224px; position: relative; z-index: 1; margin-bottom: 0; }
/* neon mark: the glyph itself stays white; the gold rim + warm halo are masked copies of the same glyph underneath */
.ga-mark { position: relative; display: block; width: 224px; height: 224px; margin: 0 auto 24px; line-height: 0; }
.ga-mark::before, .ga-mark::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; background: url('/branding/ghost-mark.png') center / contain no-repeat;
}
.ga-mark::before { animation: ga-rim 5s ease-in-out infinite; }
.ga-mark::after  { animation: ga-halo 5s ease-in-out infinite; }
@media (max-width: 768px) { .hero-logo, .ga-mark { width: 180px !important; height: 180px !important; } }

/* surfaces: flat, quiet hover */
header { background: rgba(5, 5, 6, 0.88); border-bottom-color: var(--border); }
/* floating gold + silver glow, drifting slowly across the fixed background */
.bg-glow {
    top: -220px; left: 50%; width: 760px; height: 760px; opacity: .55;
    background: radial-gradient(circle, rgba(245,166,35,.42) 0%, rgba(245,166,35,.12) 38%, transparent 70%);
    filter: blur(40px); will-change: transform;
    animation: ga-drift-gold 26s ease-in-out infinite alternate;
}
.bg-glow-2 {
    bottom: -260px; right: -180px; width: 680px; height: 680px; opacity: .5;
    background: radial-gradient(circle, rgba(214,220,232,.30) 0%, rgba(190,198,212,.10) 40%, transparent 70%);
    filter: blur(44px); will-change: transform;
    animation: ga-drift-silver 32s ease-in-out infinite alternate;
}
body::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.2px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 80%);
    animation: ga-grid 60s linear infinite;
}
body::after {
    content: ''; position: fixed; top: 20%; left: 50%; z-index: 0; pointer-events: none;
    width: 520px; height: 520px; margin-left: -260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,236,244,.22) 0%, rgba(245,166,35,.10) 45%, transparent 72%);
    filter: blur(50px); opacity: .6; will-change: transform;
    animation: ga-drift-mix 38s ease-in-out infinite alternate;
}
@keyframes ga-drift-gold {
    0%   { transform: translate(-50%, 0) scale(1); }
    50%  { transform: translate(-30%, 90px) scale(1.12); }
    100% { transform: translate(-68%, 40px) scale(.95); }
}
@keyframes ga-drift-silver {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-160px, -120px) scale(1.15); }
    100% { transform: translate(-60px, -220px) scale(1.02); }
}
@keyframes ga-drift-mix {
    0%   { transform: translate(-220px, 0) scale(.9); }
    50%  { transform: translate(180px, 120px) scale(1.1); }
    100% { transform: translate(-40px, 260px) scale(1); }
}
@keyframes ga-grid { from { background-position: 0 0; } to { background-position: 28px 56px; } }

/* hero: breathing glow on the mark and the signature */
.hero-logo { animation: ga-breathe 5s ease-in-out infinite !important; }
.hero h1::after { animation: ga-line 5s ease-in-out infinite; }
.hero h1 { animation: ga-word 5s ease-in-out infinite; }
.hero .subtitle:not(.subtitle-sub) { animation: ga-sub 5s ease-in-out infinite; }
.hero h1 { text-shadow: 0 0 4px rgba(255,255,255,.7), 0 0 14px rgba(255,255,255,.55), 0 0 36px rgba(232,236,244,.4), 0 0 80px rgba(245,166,35,.3); }
.hero .subtitle:not(.subtitle-sub) { color: #F5B335; text-shadow: 0 0 6px rgba(245,166,35,.9), 0 0 18px rgba(245,166,35,.7), 0 0 44px rgba(245,166,35,.4); }
.hero-cta-primary { animation: ga-pulse 4s ease-in-out infinite; }
@keyframes ga-breathe {
    0%, 100% { filter: drop-shadow(0 0 .5px #FFFFFF) drop-shadow(0 0 40px rgba(245,150,30,.5)); }
    50%      { filter: drop-shadow(0 0 .8px #FFFFFF) drop-shadow(0 0 64px rgba(245,150,30,.65)); }
}
@keyframes ga-rim  { 0%, 100% { filter: brightness(.6) sepia(1) saturate(5) hue-rotate(-22deg) blur(1px) drop-shadow(0 0 2px #FFB040) drop-shadow(0 0 5px #FFA030) drop-shadow(0 0 12px rgba(250,140,30,.9)); }  50% { filter: brightness(.6) sepia(1) saturate(5) hue-rotate(-22deg) blur(1.5px) drop-shadow(0 0 3px #FFC060) drop-shadow(0 0 7px #FFA838) drop-shadow(0 0 18px rgba(250,140,30,1)); } }
@keyframes ga-halo { 0%, 100% { opacity: .85; filter: brightness(.6) sepia(1) saturate(5) hue-rotate(-22deg) blur(6px) drop-shadow(0 0 18px rgba(250,140,30,.9)) drop-shadow(0 0 40px rgba(236,120,16,.7)); } 50% { opacity: 1; filter: brightness(.6) sepia(1) saturate(5) hue-rotate(-22deg) blur(8px) drop-shadow(0 0 26px rgba(250,140,30,1)) drop-shadow(0 0 60px rgba(236,120,16,.8)); } }
@keyframes ga-line {
    0%, 100% { box-shadow: 0 0 10px rgba(245,166,35,.9), 0 0 28px rgba(245,166,35,.55), 0 14px 60px 18px rgba(245,166,35,.16); opacity: .9; }
    50%      { box-shadow: 0 0 14px rgba(245,166,35,1), 0 0 44px rgba(245,166,35,.75), 0 18px 80px 26px rgba(245,166,35,.24); opacity: 1; }
}
@keyframes ga-word {
    0%, 100% { text-shadow: 0 0 4px rgba(255,255,255,.7), 0 0 14px rgba(255,255,255,.55), 0 0 36px rgba(232,236,244,.4), 0 0 80px rgba(245,166,35,.3); }
    50%      { text-shadow: 0 0 6px rgba(255,255,255,.9), 0 0 20px rgba(255,255,255,.7), 0 0 50px rgba(232,236,244,.5), 0 0 110px rgba(245,166,35,.45); }
}
@keyframes ga-sub {
    0%, 100% { text-shadow: 0 0 6px rgba(245,166,35,.9), 0 0 18px rgba(245,166,35,.7), 0 0 44px rgba(245,166,35,.4); }
    50%      { text-shadow: 0 0 8px rgba(245,166,35,1), 0 0 26px rgba(245,166,35,.9), 0 0 64px rgba(245,166,35,.55); }
}
@keyframes ga-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(245,166,35,.55), 0 0 36px rgba(245,166,35,.35), inset 0 0 18px rgba(245,166,35,.12); }
    50%      { box-shadow: 0 0 18px rgba(245,166,35,.85), 0 0 60px rgba(245,166,35,.5), inset 0 0 24px rgba(245,166,35,.2); }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 36px !important; letter-spacing: .18em !important; padding-bottom: 10px; }
    .hero .subtitle { font-size: 15px; letter-spacing: .32em; }
    .hero .description { font-size: 16px; }
    .hero-cta-primary { padding: 14px 32px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .bg-glow, .bg-glow-2, body::before, body::after, .hero-logo, .hero-cta-primary, .ga-mark::before, .ga-mark::after, .hero h1, .hero h1::after, .hero .subtitle { animation: none !important; }
}
.role-card, .int-card, .platform-card, .feature-card, .price-card, .step, .hero-badge {
    background: var(--bg-card); border-color: var(--border); box-shadow: none;
}
.role-card:hover, .int-card:hover, .platform-card:hover, .price-card:hover {
    border-color: #2A2A30; box-shadow: none; transform: none;
}
.role-card:hover, .price-card.featured, .price-card.popular { border-color: rgba(224,165,42,.45); }
.cta-bottom { background: none; border-top: 1px solid var(--border); }
footer { border-top-color: var(--border); }

/* gold: CTA and status only */
.header-cta, .hero-cta-primary, .role-cta, .price-card a.price-cta, .price-cta, .badge, .pack-cta {
    background: var(--accent); color: #050506;
}
/* primary CTA: black pill with a gold neon rim, white label */
.hero-cta-primary {
    background: #050506; color: #FFFFFF; border: 2px solid #F5B335; border-radius: 999px;
    padding: 16px 44px; font-size: 18px; font-weight: 600; letter-spacing: .02em;
    box-shadow: 0 0 12px rgba(245,166,35,.55), 0 0 36px rgba(245,166,35,.35), inset 0 0 18px rgba(245,166,35,.12);
}
.hero-cta-primary:hover { background: #121014; color: #FFFFFF; border-color: #FFD27A; transform: translateY(-2px); animation: none;
    box-shadow: 0 0 16px rgba(245,166,35,.8), 0 0 54px rgba(245,166,35,.45), inset 0 0 22px rgba(245,166,35,.18); }
.header-cta:hover, .role-cta:hover { background: var(--accent-hover); box-shadow: var(--ga-glow); }
.hero-cta-secondary { border-color: #3A3A42; color: var(--text-primary); border-radius: 999px; padding: 16px 32px; font-size: 15px; }
.hero-cta-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-badge { color: var(--text-secondary); }
.step-number { opacity: .22; }
.hero .subtitle + .subtitle-sub { color: var(--text-secondary); letter-spacing: .18em; font-size: 12px; margin-top: -16px; }

/* video carousel of role cards (carousel.js) */
.vc { position: relative; max-width: 1200px; margin: 0 auto 28px; padding: 0 20px; }
.vc-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0 14px; outline: none; align-items: flex-start; overflow-y: hidden; box-sizing: content-box; transition: height .35s ease; -webkit-overflow-scrolling: touch; }
.vc-track::-webkit-scrollbar { display: none; }
.vc-track > .role-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.vc-track > .role-card:hover { transform: translateY(-3px); }
.vc-track .role-desc { flex: none; }
.vc-arrow { position: absolute; top: var(--vc-arrow-top, 30%); transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(224,165,42,.55); background: rgba(8,8,14,.72); color: #f5c45a; font-size: 32px; line-height: 44px; text-align: center; cursor: pointer; opacity: 0; transition: opacity .25s, background .2s, box-shadow .2s; z-index: 3; padding: 0; backdrop-filter: blur(4px); }
.vc-prev { left: 4px; }
.vc-next { right: 4px; }
.vc:hover .vc-arrow, .vc:focus-within .vc-arrow { opacity: 1; }
.vc-arrow:hover { background: rgba(224,165,42,.9); color: #000; box-shadow: 0 0 18px rgba(224,165,42,.5); }
.vc-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vc-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.25); cursor: pointer; transition: width .25s, background .25s; }
.vc-dots button.on { width: 26px; border-radius: 5px; background: #e0a52a; }
@media (max-width: 960px) { .vc-track > .role-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) {
  .vc { padding: 0 12px; }
  .vc-track { gap: 12px; scroll-padding-left: 0; }
  .vc-track > .role-card { flex-basis: 86%; }
  .vc-arrow { width: 38px; height: 38px; font-size: 26px; line-height: 34px; }
}
@media (hover: none) { .vc-arrow { opacity: .5; } .vc-arrow:active { opacity: .9; } }
