/* ===================================
   TOSK - Apple-Style CSS
   Premium, Cinematic, Minimalist
   =================================== */

/* ========== ROOT VARIABLES ========== */
:root {
    /* Colors */
    --color-black: #000000;
    --color-dark: #0a0a0a;
    --color-grey-dark: #1a1a1a;
    --color-grey: #2a2a2a;
    --color-grey-light: #666666;
    --color-white: #ffffff;
    --color-gold: #d4af37;
    --color-gold-dark: #b8941f;
    --color-red: #8b0000;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Cinzel', serif;
    
    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-width: 1200px;
    --container-narrow: 800px;
    
    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-large: 0 40px 100px rgba(0, 0, 0, 0.7);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 22px;
}

/* Russian language - smaller text and more spacing */
html[lang="ru"] .nav-menu {
    gap: 18px;
}

html[lang="ru"] .nav-link {
    font-size: 9.5px;
    letter-spacing: 0.3px;
}

.nav-link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-toggle {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 24px;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-fast);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: 4px;
    color: #8b0000;
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    font-size: 1em !important;
    font-weight: 900 !important;
    letter-spacing: 4px !important;
    color: #8b0000 !important;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-main {
    color: #8b0000 !important;
    animation-delay: 0.4s;
}

/* Unified title style - same size, same color (RED) */
.hero-title-unified {
    display: block;
    font-size: 1em;
    font-weight: 900;
    letter-spacing: 4px;
    color: #cc0000;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-title-unified:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-unified:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.8;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-gold);
    animation: scrollLineMove 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-black);
}

.btn-primary:hover {
    background: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 50px;
    font-size: 16px;
}

/* ========== SECTIONS ========== */
.section {
    position: relative;
    padding: var(--section-padding) 0;
}

.container-fluid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 40px;
}

.section-intro {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--color-gold);
}

.section-lead {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--color-grey-light);
}

.section-description {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: center;
}

.text-large {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.8;
    font-weight: 300;
}

.section-cta {
    text-align: center;
    margin-top: 60px;
}

/* ========== WHAT IS TOSK ========== */
.what-is-tosk {
    background: var(--color-dark);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.feature-card {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 30px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--color-gold);
}

.feature-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-grey-light);
}

/* ========== ARCHETYPES PREVIEW ========== */
.archetypes-preview {
    background: var(--color-black);
}

.archetypes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.archetype-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.archetype-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-large);
}

.archetype-image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.archetype-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.archetype-card:hover .archetype-image {
    transform: scale(1.1);
}

.archetype-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.archetype-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
}

.archetype-name {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--color-gold);
}

.archetype-subtitle {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--color-grey-light);
}

.archetype-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.archetype-card:hover .archetype-description {
    opacity: 1;
    transform: translateY(0);
}

/* ========== PHILOSOPHY TEASER ========== */
.philosophy-teaser {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.philosophy-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philosophy-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.quote-large {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 50px;
}

.quote-large p {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.6;
    font-style: italic;
    color: var(--color-gold);
}

.philosophy-cta {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--color-dark);
    text-align: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--color-gold);
}

.cta-text {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
    margin-bottom: 50px;
    color: var(--color-grey-light);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--color-black);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-gold);
    margin-bottom: 30px;
    display: inline-block;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-nav a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-gold);
}

.footer-copy {
    font-size: 14px;
    color: var(--color-grey-light);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLineMove {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
}

/* ========== NEW HOME PAGE SECTIONS ========== */

/* Hero Title Updates */
.hero-title-main {
    display: block;
    font-size: clamp(50px, 8vw, 90px);
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.hero-title-sub {
    display: block;
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 0.9;
}

.hero-subtitle2 {
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.6;
    margin-top: 20px;
    color: var(--color-grey-light);
    opacity: 0.8;
}

/* Text Block */
.text-block {
    margin: 40px 0;
}

.text-block p {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-grey-light);
}

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

/* Process List (Ordered) */
.process-list {
    list-style: none;
    counter-reset: process-counter;
    margin: 40px 0;
    padding: 0;
}

.process-list li {
    counter-increment: process-counter;
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.8;
    color: var(--color-grey-light);
}

.process-list li::before {
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gold);
}

/* Archetypes List (Simple) */
.archetypes-list {
    margin: 40px 0;
}

.archetype-item {
    padding: 30px;
    margin-bottom: 30px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.archetype-item:hover {
    border-color: var(--color-gold);
    transform: translateX(10px);
}

.archetype-name {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--color-gold);
}

.archetype-desc {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.8;
    color: var(--color-grey-light);
}

/* Develops List / Practices List */
.develops-list,
.practices-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.develops-list li,
.practices-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 25px;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.8;
    color: var(--color-grey-light);
}

.develops-list li::before,
.practices-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    color: var(--color-gold);
}

/* Who This Is For Grid */
.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.who-column {
    padding: 40px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.who-yes {
    border-color: rgba(76, 175, 80, 0.5);
}

.who-no {
    border-color: rgba(244, 67, 54, 0.5);
}

.who-subtitle {
    font-size: 48px;
    text-align: center;
    margin-bottom: 30px;
}

.who-yes .who-subtitle {
    color: #4CAF50;
}

.who-no .who-subtitle {
    color: #F44336;
}

.who-column ul {
    list-style: none;
    padding: 0;
}

.who-column li {
    padding: 15px 0;
    padding-left: 40px;
    position: relative;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.6;
    color: var(--color-grey-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.who-column li:last-child {
    border-bottom: none;
}

.who-yes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-size: 24px;
    font-weight: bold;
}

.who-no li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #F44336;
    font-size: 24px;
    font-weight: bold;
}

/* Final Block */
.final-block {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 100px 0;
}

.section-title-large {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-gold);
    text-transform: uppercase;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-gold);
    margin-bottom: 30px;
}

.footer-disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 15px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(32px, 6vw, 60px);
    }
    
    .archetypes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container-fluid,
    .container-narrow {
        padding: 0 20px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}
