/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Переменные цветов в стиле Libertex */
:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-dark: #1a1a1a;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #ffffff;
    --accent-orange: #FF6B4A;
    --accent-orange-dark: #e5543a;
    --accent-red: #FF3333;
    --gradient-primary: linear-gradient(135deg, #FF6B4A 0%, #FF8A6F 100%);
    --gradient-hover: linear-gradient(135deg, #e5543a 0%, #FF6B4A 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(255, 107, 74, 0.25);
}

/* Базовые стили */
body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 1.5rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
}

/* Main */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero h2::first-line {
    color: var(--accent-red);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Benefits Section */
.benefits {
    width: 100%;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.benefit-card {
    background: #e8e8e8;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 107, 74, 0.3);
    border-color: var(--accent-orange);
}

.benefit-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.benefit-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Examples Section */
.examples {
    width: 100%;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.examples h3 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.example-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.asset-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.asset-icon {
    font-size: 2rem;
    line-height: 1;
}

.asset-name h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.example-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.example-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trade-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.trade-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trade-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.trade-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.trade-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
}

.trade-result.success .result-icon {
    width: 40px;
    height: 40px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.result-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2e7d32;
    font-weight: 600;
}

.result-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1b5e20;
}

.examples-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Chart Details (Expandable) */
.chart-details {
    margin-top: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chart-details[open] {
    border-color: var(--accent-orange);
}

.chart-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8f8f8;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: all 0.3s ease;
}

.chart-toggle::-webkit-details-marker {
    display: none;
}

.chart-toggle:hover {
    background: #f0f0f0;
}

.chart-details[open] .chart-toggle {
    background: #fff5f2;
    border-bottom: 2px solid #e0e0e0;
}

.toggle-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.toggle-text {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.toggle-arrow {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.chart-details[open] .toggle-arrow {
    transform: rotate(180deg);
}

.chart-container {
    padding: 1.5rem;
    background: white;
    animation: slideDown 0.3s ease-out;
}

.trade-chart {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subscription Section */
.subscription {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subscription h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="email"] {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

input[type="email"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

input[type="email"]:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.1);
    transform: translateY(-2px);
}

/* Button */
button[type="submit"] {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button[type="submit"]:hover {
    background: var(--gradient-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Form Messages */
.form-message {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    animation: slideIn 0.3s ease-out;
}

.form-message.error {
    background-color: #ffe6e6;
    color: #cc0000;
    border: 1px solid #ffcccc;
}

.form-message.success {
    background-color: #e6f7e6;
    color: #006600;
    border: 1px solid #b3e6b3;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    background: var(--bg-dark);
    border-top: none;
}

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

/* Responsive Design - Mobile First */
@media (min-width: 640px) {
    header {
        padding: 2rem 2rem;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    main {
        padding: 3rem 2rem;
    }
}

@media (min-width: 768px) {
    .hero h2 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .examples h3 {
        font-size: 2.5rem;
    }

    .subscription {
        padding: 3rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    header {
        padding: 2rem 3rem;
    }

    main {
        padding: 4rem 3rem;
    }

    .hero h2 {
        font-size: 3.5rem;
    }
}
