/* ===========================================================
   IUS Legal OS — Design System
   Monochrome graphite (#3B444B + gradations) with gold accent (#F4BE04)
   =========================================================== */

/* Georgian font — BPG Nino Mtavruli (applied ONLY to Georgian Unicode blocks) */
@font-face {
    font-family: 'BPG Nino Mtavruli';
    src: url('https://aione.ge/fonts/bpg_nino_mtavruli_normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+10A0-10FF, U+2D00-2D2F, U+1C90-1CBF;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'BPG Nino Mtavruli', 'Inter', system-ui, sans-serif;
    color: #14181B;
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
}

::selection { background: #F4BE04; color: #14181B; }

/* ----- Fade-up reveal ----- */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .08s; }
.fade-up:nth-child(3) { transition-delay: .16s; }
.fade-up:nth-child(4) { transition-delay: .24s; }
.fade-up:nth-child(5) { transition-delay: .32s; }
.fade-up:nth-child(6) { transition-delay: .40s; }

/* ----- Gold gradient text ----- */
.gradient-text {
    background: linear-gradient(135deg, #F4BE04 0%, #D4A200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Hero background (deep graphite with subtle gold glow) ----- */
.hero-bg {
    background: linear-gradient(140deg, #14181B 0%, #22272C 45%, #2E353B 75%, #14181B 100%);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 25% 35%, rgba(244,190,4,0.09) 0%, transparent 45%),
        radial-gradient(circle at 75% 65%, rgba(244,190,4,0.05) 0%, transparent 50%);
    animation: pulse-bg 14s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20,24,27,0.15) 0%, rgba(20,24,27,0.35) 55%, rgba(20,24,27,0.80) 100%);
    pointer-events: none;
    z-index: 3;
}
@keyframes pulse-bg {
    0%,100% { transform: scale(1); opacity: 1; }
    50%     { transform: scale(1.08); opacity: .82; }
}

/* ----- Hero video (whitish loop, blends into dark background) ----- */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.58;
    mix-blend-mode: screen;
    filter: grayscale(0.72) brightness(1.05) contrast(1.04);
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
}

/* ----- Thin grid pattern ----- */
.grid-pattern {
    background-image:
        linear-gradient(rgba(59,68,75,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,68,75,0.04) 1px, transparent 1px);
    background-size: 72px 72px;
}

/* ----- Nav ----- */
.nav-scrolled {
    background: rgba(20,24,27,0.9) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(244,190,4,0.08), 0 8px 32px rgba(0,0,0,0.28);
}

/* ----- Toggle switch ----- */
.toggle-bg { transition: background-color .3s; }
.toggle-dot { transition: transform .3s; }
.toggle-active .toggle-dot { transform: translateX(24px); }
.toggle-active .toggle-bg { background-color: #F4BE04; }

/* ----- Feature cards ----- */
.feature-card {
    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        border-color .3s ease,
        box-shadow .45s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(244,190,4,0.35);
    box-shadow:
        0 16px 48px rgba(20,24,27,0.08),
        0 2px 8px rgba(244,190,4,0.08);
}

/* ----- Pricing cards ----- */
.pricing-card { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease; }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-popular {
    border: 2px solid #F4BE04;
    position: relative;
    box-shadow: 0 20px 56px rgba(244,190,4,0.12), 0 2px 8px rgba(20,24,27,0.06);
}

/* ----- Step connector (home "how it works") ----- */
.step-connector {
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #F4BE04 50%, transparent);
    opacity: 0.4;
}

/* ----- Language chip ----- */
.lang-btn { transition: all .2s ease; }
.lang-btn.active { background: #F4BE04; color: #14181B; }

/* ----- Mobile menu ----- */
.mobile-menu { transform: translateX(100%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.mobile-menu.open { transform: translateX(0); }

.stat-value { font-variant-numeric: tabular-nums; }

/* ----- Icon box (used with <svg>) ----- */
.icon-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(244,190,4,0.10) 0%, rgba(244,190,4,0.04) 100%);
    border: 1px solid rgba(244,190,4,0.18);
    flex-shrink: 0;
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.icon-box svg {
    width: 24px;
    height: 24px;
    stroke: #D4A200;
    stroke-width: 1.75;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feature-card:hover .icon-box {
    background: linear-gradient(135deg, rgba(244,190,4,0.18) 0%, rgba(244,190,4,0.08) 100%);
    border-color: rgba(244,190,4,0.35);
}

/* ----- Step circle (how-it-works) ----- */
.step-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22272C 0%, #3B444B 100%);
    color: #F4BE04;
    font-size: 26px;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(244,190,4,0.18);
    box-shadow: 0 10px 28px rgba(20,24,27,0.14);
}

/* ----- FAQ ----- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.22,1,.36,1);
}
.faq-item.open .faq-answer { max-height: 260px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; color: #F4BE04; }
.faq-item {
    transition: border-color .25s ease, background .25s ease;
}
.faq-item:hover {
    border-color: rgba(244,190,4,0.4) !important;
}

/* ----- Counter ----- */
.counter { font-variant-numeric: tabular-nums; }

/* ----- Buttons — optional shared primitives ----- */
.btn-gold {
    background: #F4BE04;
    color: #14181B;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    transition: background .25s ease, transform .2s ease, box-shadow .3s ease;
    box-shadow: 0 8px 20px rgba(244,190,4,0.25);
}
.btn-gold:hover {
    background: #F5CC18;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(244,190,4,0.32);
}
.btn-outline {
    border: 1px solid rgba(59,68,75,0.2);
    color: #3B444B;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 12px;
    transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.btn-outline:hover {
    border-color: #F4BE04;
    color: #14181B;
    background: rgba(244,190,4,0.04);
}

/* ----- Form controls ----- */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #F4BE04 !important;
    box-shadow: 0 0 0 3px rgba(244,190,4,0.14) !important;
}

/* ----- Slider / Carousel ----- */
.slider-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}
.slider-track {
    display: flex;
    transition: transform .7s cubic-bezier(.22,1,.36,1);
    will-change: transform;
}
.slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 6px;
}
.slide-card {
    background: linear-gradient(135deg, #1A1D21 0%, #22272C 100%);
    border: 1px solid rgba(244,190,4,0.14);
    border-radius: 20px;
    padding: 44px 40px 40px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28), inset 0 1px 0 rgba(244,190,4,0.05);
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.slide-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 30px;
    font-size: 120px;
    line-height: 1;
    color: rgba(244,190,4,0.14);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    pointer-events: none;
}
.slide-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 18px;
}
.slide-stars svg { width: 16px; height: 16px; color: #F4BE04; fill: currentColor; }
.slide-quote {
    font-size: 17px;
    line-height: 1.7;
    color: #E5E8EA;
    margin-bottom: 24px;
    font-weight: 300;
    letter-spacing: -0.005em;
}
.slide-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(244,190,4,0.08);
}
.slide-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F4BE04, #D4A200);
    color: #14181B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}
.slide-author-info { flex: 1; min-width: 0; }
.slide-author-name { color: #F5F6F7; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.slide-author-role { color: #7A8089; font-size: 12px; margin-top: 2px; }

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 32px;
}
.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(244,190,4,0.28);
    color: #F4BE04;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.slider-arrow:hover {
    background: #F4BE04;
    color: #14181B;
    border-color: #F4BE04;
}
.slider-arrow:active { transform: scale(0.94); }
.slider-arrow svg { width: 18px; height: 18px; stroke-width: 2; }

.slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(244,190,4,0.22);
    border: none;
    cursor: pointer;
    transition: all .3s cubic-bezier(.22,1,.36,1);
    padding: 0;
}
.slider-dot:hover { background: rgba(244,190,4,0.5); }
.slider-dot.active {
    background: #F4BE04;
    width: 28px;
    border-radius: 4px;
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #F4BE04;
    width: 0%;
    transition: width .15s linear;
    box-shadow: 0 0 8px rgba(244,190,4,0.4);
}

@media (max-width: 640px) {
    .slide-card { padding: 32px 24px 28px; min-height: 240px; }
    .slide-card::before { font-size: 80px; top: 6px; left: 18px; }
    .slide-quote { font-size: 15px; }
}

/* ----- Scrollbar (subtle) ----- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #FFFFFF; }
::-webkit-scrollbar-thumb { background: #CBD1D5; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #7A8089; }
