:root {
    --primary-color: #f7931a;
    --secondary-color: #2c3e50;
    --dark-color: #1a1a1a;
    --light-color: #f4f4f4;
    --text-color: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    background: var(--white);
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    margin-right: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1518546305927-5a555bb7020d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}

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

.btn.primary:hover {
    background: #e17e00;
}

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

.btn.secondary:hover {
    background: var(--white);
    color: var(--dark-color);
}

/* Sections */
.section {
    padding: 5rem 0;
    text-align: center;
}

.bg-light {
    background: var(--light-color);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Price Box */
.price-box {
    background: var(--dark-color);
    color: var(--primary-color);
    padding: 3rem;
    border-radius: 15px;
    display: inline-block;
    margin-top: 2rem;
    min-width: min(520px, 90vw);
    position: relative;
    overflow: hidden;
}

.price-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.price-label {
    font-size: 0.95rem;
    color: #b7b7b7;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    color: var(--white);
}

.price-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.change {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d6d6d6;
}

.change.up {
    color: #8ef0b2;
    background: rgba(52, 199, 89, 0.15);
}

.change.down {
    color: #ff9b9b;
    background: rgba(255, 59, 48, 0.15);
}

.price-box.updated .price-amount,
.price-box.updated .change {
    animation: pricePop 0.5s ease-out;
}

.price-box.updated .sparkline polyline {
    animation: lineGlow 0.8s ease-out;
}

.sparkline {
    margin-top: 1.5rem;
    width: 100%;
    height: 60px;
}

@keyframes pricePop {
    0% { transform: scale(1); }
    40% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes lineGlow {
    0% { stroke-opacity: 0.4; }
    50% { stroke-opacity: 1; }
    100% { stroke-opacity: 0.9; }
}

.update-time {
    font-size: 0.9rem;
    color: #888;
}

.status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #b7b7b7;
}

.status.error {
    color: #ffb3b3;
}

.sparkline {
    margin-top: 1.5rem;
    width: 100%;
    height: 60px;
}

.sparkline svg {
    width: 100%;
    height: 100%;
}

.sparkline polyline {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.price-box.loading .price-amount,
.price-box.loading .change,
.price-box.loading .update-time {
    color: transparent;
    position: relative;
}

.price-box.loading .price-amount::after,
.price-box.loading .change::after,
.price-box.loading .update-time::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    background-size: 200% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #b3261e;
    box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.field-error {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #b3261e;
    min-height: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn.full-width {
    width: 100%;
    border: none;
    font-size: 1.1rem;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #4a4a4a;
}

.form-status.success {
    color: #1b7d41;
}

.form-status.error {
    color: #b3261e;
}

.hp-field {
    position: absolute;
    left: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .btn.secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .price-box {
        padding: 2.5rem 2rem;
        min-width: auto;
        width: 100%;
    }

    .price-amount {
        font-size: 2.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
