/* ============================================
   V2Bot Landing - Base Styles (Light Theme)
   Version: 2.0
   ============================================ */

/* ============================================
   RESET
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-hero); font-weight: 700; }
h2 { font-size: var(--fs-h1); font-weight: 700; }
h3 { font-size: var(--fs-h2); font-weight: 600; }
h4 { font-size: var(--fs-h3); font-weight: 600; }

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-primary);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* ============================================
   LISTS
   ============================================ */
ul, ol {
    list-style: none;
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */
img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================================
   BUTTONS BASE
   ============================================ */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button:focus-visible {
    outline: 2px solid var(--cyan-primary);
    outline-offset: 2px;
}

/* ============================================
   INPUTS BASE
   ============================================ */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-4xl) 0;
}

.section--alt {
    background: var(--bg-tertiary);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section__title {
    font-size: var(--fs-h1);
    text-align: center;
    margin-bottom: var(--space-md);
}

/* Увеличенные отступы для определённых секций */
.how-it-works .section__title,
.security .section__title,
.pricing .section__title,
.faq .section__title,
.footer .section__title {
    margin-bottom: var(--space-2xl);
}

/* Компактные отступы для Philosophy секции */
.philosophy .section__subtitle {
    margin-bottom: var(--space-lg);
}

.section__subtitle {
    font-size: var(--fs-body-lg);
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

/* Section CTA */
.section__cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

.section__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.section__cta-btn svg {
    transition: transform var(--transition-fast);
}

.section__cta-btn:hover svg {
    transform: translateY(3px);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-gold { color: var(--gold-primary); }
.text-cyan { color: var(--cyan-primary); }
.text-muted { color: var(--text-muted); }

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   FOCUS STATES
   ============================================ */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--cyan-primary);
    outline-offset: 2px;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--gold-primary);
    color: var(--text-on-gold);
}

/* ============================================
   SCROLLBAR (Optional - Webkit)
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   PROGRESSIVE ENHANCEMENT
   ============================================ */
.js .fade-in {
    opacity: 0;
}

.js .fade-in.is-visible {
    opacity: 1;
}
