/* --- GLOBAL RESETS & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Core Palette - Sharp & High Contrast */
    --color-dark: #0D0D0D; /* Near black for depth, less harsh than #000 */
    --color-light: #F9F9F9; /* Crisp, slightly off-white */

    /* UPDATED ACCENT COLORS TO SILVER */
    --color-accent: #D1D1D1; /* Bright, clean silver */
    --color-accent-darker: #B8B8B8; /* Slightly darker silver for hovers */
    /* --color-accent-rgb will be populated by the JS helper with RGB values of #D1D1D1 */

    --color-text-dark-primary: #E0E0E0;
    --color-text-dark-secondary: #A0A0A0;
    --color-text-light-primary: #1A1A1A; /* For text on light/accent backgrounds */

    /* Typography */
    --font-primary: 'Manrope', sans-serif; /* Versatile, modern */
    --font-secondary: 'Space Grotesk', sans-serif; /* For impactful headlines/accents */

    /* Spacing & Layout */
    --section-padding: clamp(80px, 12vh, 160px); /* Responsive vertical padding */
    --container-width: 1240px;
    --border-radius-sharp: 6px; /* Sharper radius */
    --transition-duration: 0.4s;
    --cubic-bezier: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth ease */
}

html {
    font-size: 100%; /* 16px default */
    scroll-behavior: smooth; /* For any on-page anchors */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-text-dark-primary);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- UTILITIES --- */
.text-center {
    text-align: center;
}

.accent-text {
    color: var(--color-accent);
}

.accent-outline { /* For text that looks outlined with silver */
    color: transparent;
    -webkit-text-stroke: 1px var(--color-accent);
    text-stroke: 1px var(--color-accent);
}

.secondary-font {
    font-family: var(--font-secondary);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: var(--font-secondary); /* Bold, visionary headlines */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em; /* Responsive margin */
    letter-spacing: -0.02em; /* Slightly tighter for sharpness */
}

h1.hero-headline {
    font-size: clamp(3rem, 7vw + 1rem, 6.5rem); /* Responsive & large */
    color: var(--color-light);
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

h1.hero-headline span {
    display: block;
}

/* Each part of headline on new line */

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1em; /* More space after title */
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-dark-secondary);
    max-width: 700px; /* Readability */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
}

p {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 300; /* Lighter for body copy */
    margin-bottom: 1.5em;
    color: var(--color-text-dark-secondary);
}

.content-section p strong, .content-section p b { /* Sharper bold */
    font-weight: 700;
    color: var(--color-text-dark-primary);
}

q, .quote {
    quotes: '"' '"';
}

q::before, .quote::before {
    content: open-quote;
}

q::after, .quote::after {
    content: close-quote;
}


/* --- BUTTONS --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    text-transform: uppercase;
    padding: 0.9em 2em;
    border-radius: var(--border-radius-sharp);
    text-decoration: none;
    transition: all var(--transition-duration) var(--cubic-bezier);
    cursor: pointer;
    border: 2px solid transparent;
}

.cta-button.primary-cta {
    background-color: var(--color-accent);
    color: var(--color-text-light-primary); /* Darker text for contrast on silver */
    border-color: var(--color-accent);
}

.cta-button.primary-cta:hover {
    background-color: var(--color-accent-darker);
    border-color: var(--color-accent-darker);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(var(--color-accent-rgb, 209, 209, 209), 0.2);
}

.cta-button.plan-cta {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    width: 100%;
    justify-content: center;
}

.cta-button.plan-cta:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light-primary); /* Darker text on silver background */
}

.cta-button.plan-cta.accent-cta {
    background-color: var(--color-accent);
    color: var(--color-text-light-primary);
}

.cta-button.plan-cta.accent-cta:hover {
    background-color: var(--color-accent-darker);
}

.arrow, .arrow-small {
    font-size: 1.2em;
    line-height: 1;
}

/* --- NAVIGATION --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5em 0;
    z-index: 1000;
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 35px; /* Adjust */
}

.nav-cta {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-light);
    text-decoration: none;
    padding: 0.5em 1em;
    border: 1px solid var(--color-light);
    border-radius: var(--border-radius-sharp);
    transition: all var(--transition-duration) var(--cubic-bezier);
}

.nav-cta:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}


/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

.hero-emblem {
    width: clamp(80px, 12vw, 150px);
    margin-bottom: 2em;
}

.hero-subheadline {
    max-width: 650px;
    margin: 1.5em auto 2.5em;
    color: var(--color-text-dark-secondary);
    font-weight: 400;
}

.hero-background-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Radial gradient now uses silver via --color-accent-rgb (JS populated) */
    background: radial-gradient(ellipse at 50% 30%, rgba(var(--color-accent-rgb, 209, 209, 209), 0.08), transparent 70%);
    z-index: 1;
    animation: pulse-background 15s infinite ease-in-out;
}

@keyframes pulse-background {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* --- GENERAL CONTENT SECTION STYLING --- */
.content-section {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.content-section:last-of-type {
    border-bottom: none;
}

.section-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* --- PROMISE SECTION (Asymmetric Grid) --- */
.promise-section .grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2em, 5vw, 4em);
}

.promise-visual img {
    max-width: 100%;
}

@media (max-width: 768px) {
    .promise-section .grid-layout {
        grid-template-columns: 1fr;
    }

    .promise-visual {
        order: -1;
        margin-bottom: 2em;
    }

    .promise-text {
        text-align: center;
    }
}

/* --- FEATURES SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5em;
    margin-top: 3em;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 2.5em 2em;
    border-radius: var(--border-radius-sharp);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-duration) var(--cubic-bezier);
}

.feature-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon-container {
    margin-bottom: 1.5em;
}

.feature-icon-container img {
    height: 50px;
    /* Ensure SVGs are silver or use 'currentColor' if their fill is set to it.
       If they were yellow and used a filter, remove/adjust the filter.
       e.g., for a generic black SVG to appear silver:
       filter: invert(90%) sepia(10%) saturate(0%) hue-rotate(180deg) brightness(150%) contrast(70%);
       But best to use actual silver SVGs. */
}

.feature-item h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-light);
    margin-bottom: 0.5em;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--color-text-dark-secondary);
    margin-bottom: 0;
}

/* --- PLATFORMS SECTION --- */
.platform-icons-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5em, 4vw, 3em);
    margin-top: 3em;
}

.platform-icons-strip img {
    height: clamp(40px, 6vw, 60px);
    opacity: 0.7;
    transition: opacity var(--transition-duration) var(--cubic-bezier);
}

.platform-icons-strip img:hover {
    opacity: 1;
}

/* --- PRICING SECTION --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-top: 3em;
}

.pricing-plan {
    background-color: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sharp);
    padding: 2.5em 2em;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-duration) var(--cubic-bezier);
    position: relative;
}

.pricing-plan:hover {
    border-color: var(--color-accent);
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.plan-header h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 0.25em;
}

.plan-price {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-accent); /* Price will be silver */
    margin-bottom: 0.5em;
}

.plan-description {
    font-size: 0.9rem;
    color: var(--color-text-dark-secondary);
    margin-bottom: 2em;
    flex-grow: 1;
}

.pricing-plan.featured-plan {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(var(--color-accent-rgb, 209, 209, 209), 0.15);
}

.plan-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: var(--color-accent);
    color: var(--color-text-light-primary); /* Dark text on silver badge */
    padding: 0.4em 1em;
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 0 0 var(--border-radius-sharp);
}

.pricing-note {
    margin-top: 3em;
    font-size: 0.9rem;
    color: var(--color-text-dark-secondary);
}

/* --- TELEGRAM HUB SECTION --- */
.textured-bg {
    background-color: #0A0A0A;
    /* background-image: url('placeholder-subtle-noise-texture.png'); */
}

.telegram-icon-large {
    height: clamp(60px, 10vw, 100px);
    margin-bottom: 1.5em;
    /* Ideally, this SVG is designed to be silver or can be styled with CSS */
}

.telegram-hub-section .section-title {
    color: var(--color-light);
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--color-dark);
    /* Updated: Fixed padding for top and bottom for a more controlled space */
    padding: 60px 0 60px; /* Top, Right/Left, Bottom */
    color: var(--color-text-dark-secondary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px; /* Space between columns */
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px; /* Horizontal padding for the grid */
}

/* Responsive adjustments for the footer grid */
@media (max-width: 992px) { /* Adjust for larger tablets/smaller desktops */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns */
        gap: 30px;
    }
    .footer-brand {
        grid-column: span 2; /* Brand takes full width in 2-column layout */
        text-align: center;
    }
    .footer-brand .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) { /* Adjust for mobile phones */
    .footer-grid {
        grid-template-columns: 1fr; /* Stack all columns vertically */
        gap: 0; /* Reset gap as individual padding will handle spacing */
        text-align: center; /* Center align content on mobile */
    }

    .footer-brand {
        grid-column: span 1; /* Reset span for single column */
    }

    /* Consistent padding for all stacked sections on mobile */
    .footer-grid > div {
        padding: 25px 0; /* Add consistent top and bottom padding to each stacked section */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Thin separator line */
    }
    .footer-grid > div:last-child {
        border-bottom: none; /* No border for the last section */
        padding-bottom: 0; /* No bottom padding for the very last section to avoid excess space */
    }
    .footer-grid > div:first-child {
        padding-top: 0; /* No top padding for the very first section as .main-footer handles it */
    }
}

.footer-brand .footer-logo {
    width: 60px; /* Size of the logo */
    height: auto;
    margin-bottom: 15px; /* Space below the logo */
}

.footer-brand p {
    margin: 0; /* Remove default paragraph margin */
    line-height: 1.5;
}

.footer-links-group h3,
.footer-payments h3 {
    color: var(--color-text-dark-primary); /* Slightly brighter heading color */
    font-family: var(--font-secondary); /* Use your secondary font for headings */
    font-size: 1.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700; /* Ensure headings are bold */
}

.footer-links-group ul {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

.footer-links-group ul li {
    margin-bottom: 10px; /* Spacing between list items */
}

.footer-links-group ul li:last-child {
    margin-bottom: 0; /* No margin after the last item */
}

.footer-links-group a {
    color: var(--color-text-dark-secondary); /* Link color */
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth transition for hover effect */
    display: inline-flex; /* Allows icon and text to sit side-by-side */
    align-items: center; /* Vertically align icon and text */
    gap: 8px; /* Space between icon and text */
}

.footer-links-group a:hover {
    color: var(--color-accent); /* Accent color on hover */
}

.footer-links-group .footer-icon {
    font-size: 1.1em; /* Size for Font Awesome icons */
    color: var(--color-accent-darker); /* Subtle icon color */
}

.footer-payments .payment-icons {
    display: flex;
    flex-wrap: wrap; /* Allow icons to wrap to the next line if space is limited */
    gap: 15px; /* Space between individual payment icons */
    align-items: center; /* Vertically align icons */
    /* On mobile, align icons center */
    @media (max-width: 576px) {
        justify-content: center;
    }
}

.footer-payments .payment-icons img {
    height: 28px; /* Standard height for payment icons */
    width: auto;
    opacity: 0.8; /* Slightly subdued look */
    transition: opacity 0.3s ease; /* Smooth transition for hover */
}

.footer-payments .payment-icons img:hover {
    opacity: 1; /* Full opacity on hover */
}

.payment-placeholder {
    font-family: var(--font-primary);
    font-size: 0.85em;
    color: var(--color-text-dark-secondary);
    border: 1px dashed var(--color-text-dark-secondary); /* Dashed border for placeholder */
    padding: 5px 8px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap; /* Prevent "YuMoney" from wrapping */
}


/* --- ANIMATIONS ON SCROLL (JS will add 'visible' class) --- */
.animate-on-scroll {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: var(--cubic-bezier);
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-down {
    transform: translateY(-30px);
}

.slide-in-left {
    transform: translateX(-80px);
}

.slide-in-right {
    transform: translateX(80px);
}

.zoom-in {
    transform: scale(0.9);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}


.nav-container { /* This should already exist from previous CSS */
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-switcher {

    margin: 0 20px; /* Example margin */
    text-align: center; /* Ensures EN | RU is centered if switcher itself has width */
}

.language-switcher .lang-link {
    font-family: var(--font-secondary);
    color: var(--color-text-dark-secondary);
    text-decoration: none;
    padding: 0.3em 0.5em;
    margin: 0 0.2em;
    border-radius: var(--border-radius-sharp);
    font-weight: 700;
    transition: all var(--transition-duration) var(--cubic-bezier);
}

.language-switcher .lang-link.active {
    color: var(--color-accent); /* Silver */
    cursor: default;
    pointer-events: none;
}

.language-switcher .lang-link:not(.active):hover {
    color: var(--color-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Adjust spacing between switcher and CTA */
}

