/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0d;
    color: #fafafa;
    line-height: 1.6;
    overflow-x: hidden;
}

/* CSS Variables for design system */
:root {
    /* Colors (HSL) */
    --background: hsl(0, 0%, 5%);
    --foreground: hsl(0, 0%, 98%);
    --primary: hsl(14, 100%, 57%);
    --primary-foreground: hsl(0, 0%, 2%);
    --secondary: hsl(0, 0%, 12%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(0, 0%, 15%);
    --muted-foreground: hsl(0, 0%, 65%);
    --accent: hsl(9, 100%, 64%);
    --card: hsl(0, 0%, 8%);
    --border: hsl(0, 0%, 20%);
    
    /* Custom automotive colors */
    --rpm-orange: hsl(14, 100%, 57%);
    --rpm-red: hsl(0, 100%, 50%);
    --rpm-yellow: hsl(45, 100%, 60%);
    --rpm-dark: hsl(0, 0%, 8%);
    --rpm-darker: hsl(0, 0%, 5%);
    --rpm-gray: hsl(0, 0%, 25%);
    
    /* Gradients */
    --gradient-speedometer: linear-gradient(135deg, hsl(0, 100%, 50%), hsl(14, 100%, 57%), hsl(45, 100%, 60%));
    --gradient-dark: linear-gradient(135deg, hsl(0, 0%, 5%), hsl(0, 0%, 8%));
    --gradient-glow: radial-gradient(circle, hsl(14, 100%, 57%, 0.3), transparent 70%);
    
    /* Shadows */
    --shadow-glow: 0 0 50px hsl(14, 100%, 57%, 0.5);
    --shadow-card: 0 10px 30px hsl(0, 0%, 0%, 0.5);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --container-max-width: 1280px;
    --container-padding: 1rem;
}

/* Utility classes */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.gradient-text {
    background: var(--gradient-speedometer);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-speedometer);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: hsl(14, 100%, 57%, 0.1);
    border-color: var(--accent);
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsl(0, 0%, 5%, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(0, 0%, 25%, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gradient-speedometer);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.125rem;
    color: var(--primary-foreground);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--foreground);
    line-height: 1;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1;
}

.nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.phone-btn {
    display: none;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.5rem;
    height: 1.125rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    height: 2px;
    background: var(--foreground);
    border-radius: 1px;
    transition: var(--transition-smooth);
}

.mobile-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: var(--transition-smooth);
    z-index: 40;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-nav {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--foreground);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, hsl(0, 0%, 5%, 0.95), hsl(0, 0%, 5%, 0.6), hsl(0, 0%, 5%, 0.9));
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--rpm-darker), transparent, transparent);
}

.hero-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(3rem);
}

.glow-1 {
    top: 25%;
    right: 16.666%;
    width: 24rem;
    height: 24rem;
    background: var(--gradient-glow);
    animation: glow 4s ease-in-out infinite alternate;
}

.glow-2 {
    bottom: 25%;
    left: 16.666%;
    width: 16rem;
    height: 16rem;
    background: hsl(0, 100%, 50%, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.glow-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50rem;
    height: 50rem;
    background: linear-gradient(135deg, hsl(0, 100%, 50%, 0.1), hsl(14, 100%, 57%, 0.1), hsl(45, 100%, 60%, 0.1));
    animation: rpm-pulse 6s ease-in-out infinite;
    filter: blur(3rem);
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-main {
    flex: 1;
    display: flex;
    align-items: end;
    padding-bottom: 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: end;
    width: 100%;
}

.hero-left {
    animation: slide-up 1s ease-out;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.main-number {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-speedometer);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rpm-pulse 3s ease-in-out infinite;
}

.rpm-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rpm {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--foreground);
}

.rpm-line {
    width: 6rem;
    height: 0.5rem;
    background: var(--gradient-speedometer);
    border-radius: 9999px;
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.subtitle h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--foreground);
    line-height: 1;
}

.tagline {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.badge {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: hsl(14, 100%, 57%, 0.2);
    border: 1px solid hsl(14, 100%, 57%, 0.3);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.hero-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    line-height: 1.6;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.hero-right {
    margin-top: 2rem;
}

.contact-card {
    background: hsl(0, 0%, 8%, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(0, 0%, 25%, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gradient-speedometer);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-foreground);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.contact-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-number:hover {
    color: var(--accent);
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-item .icon {
    color: var(--primary);
    margin-top: 0.125rem;
}

.contact-address {
    color: var(--foreground);
    font-weight: 600;
    line-height: 1.4;
}

.contact-details {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.4;
}

.contact-links {
    border-top: 1px solid hsl(0, 0%, 25%, 0.2);
    padding-top: 1rem;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.contact-link span:first-child {
    color: var(--muted-foreground);
}

.link-text {
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

.hero-cta {
    padding: 0 2rem 3rem;
}

.cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.cta-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: hsl(0, 0%, 8%, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(14, 100%, 57%, 0.2);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    color: var(--foreground);
    font-weight: 600;
    text-align: center;
}

.cta-message .icon {
    color: var(--primary);
    animation: pulse 2s infinite;
}

/* Products section */
.products {
    padding: 5rem 0;
    background: var(--gradient-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: hsl(0, 0%, 8%, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(0, 0%, 25%, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.product-card:hover {
    border-color: hsl(14, 100%, 57%, 0.5);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.product-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: hsl(14, 100%, 57%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition-smooth);
}

.product-card:hover .product-icon {
    background: hsl(14, 100%, 57%, 0.2);
}

.product-icon .icon {
    width: 2rem;
    height: 2rem;
}

.product-icon.amber .icon { color: #fbbf24; }
.product-icon.blue .icon { color: #60a5fa; }
.product-icon.gray .icon { color: #9ca3af; }
.product-icon.pink .icon { color: #f472b6; }
.product-icon.purple .icon { color: #a78bfa; }
.product-icon.green .icon { color: #34d399; }
.product-icon.yellow .icon { color: #fde047; }
.product-icon.orange .icon { color: #fb923c; }

.product-card h3 {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.products-cta {
    text-align: center;
}

.products-cta .cta-message {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: hsl(0, 0%, 8%, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(14, 100%, 57%, 0.2);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    color: var(--foreground);
}

.cta-icon {
    color: var(--primary);
    font-weight: 600;
}

/* Contact section */
.contact {
    padding: 5rem 0;
    background: var(--rpm-darker);
    position: relative;
    overflow: hidden;
}

.contact-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.contact-left,
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card-large {
    background: hsl(0, 0%, 8%, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(0, 0%, 25%, 0.2);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--foreground);
}

.contact-header p {
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.contact-phone-large {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.contact-phone-large:hover {
    color: var(--accent);
}

.contact-hours,
.contact-parking,
.contact-telegram {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.contact-hours .icon,
.contact-parking .icon,
.contact-telegram .icon {
    color: var(--primary);
}

.contact-address-large {
    font-size: 1.125rem;
    color: var(--foreground);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-description {
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.contact-website {
    display: block;
    font-size: 1.125rem;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.contact-website:hover {
    color: var(--accent);
}

.contact-telegram a {
    color: var(--foreground);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    transition: var(--transition-smooth);
}

.contact-telegram a:hover {
    color: var(--primary);
}

.contact-card-cta {
    background: linear-gradient(135deg, hsl(14, 100%, 57%, 0.1), hsl(14, 100%, 57%, 0.05));
    border: 1px solid hsl(14, 100%, 57%, 0.2);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.cta-icon-large {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--gradient-speedometer);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-foreground);
    animation: rpm-pulse 3s ease-in-out infinite;
}

.contact-card-cta h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.contact-card-cta p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo .logo-text h3 {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--foreground);
    line-height: 1;
}

.footer-logo .logo-text p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1;
}

.footer-info {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Animations */
@keyframes glow {
    0% { filter: blur(3rem) brightness(1); }
    100% { filter: blur(3rem) brightness(1.5); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes rpm-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes slide-up {
    0% { opacity: 0; transform: translateY(2rem); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (min-width: 640px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    .phone-btn {
        display: flex;
    }
    
    .main-number {
        font-size: 8rem;
    }
    
    .rpm {
        font-size: 3.5rem;
    }
    
    .subtitle h2 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        width: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-grid {
        align-items: end;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }
    
    .hero-grid {
        grid-template-columns: 7fr 5fr;
        gap: 2rem;
    }
    
    .hero-right {
        margin-top: 0;
    }
    
    .title-row {
        gap: 2rem;
    }
    
    .main-number {
        font-size: 12rem;
    }
    
    .rpm {
        font-size: 4.5rem;
    }
    
    .subtitle h2 {
        font-size: 2.5rem;
    }
    
    .badge {
        display: flex;
    }
    
    .cta-row {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1280px) {
    .main-number {
        font-size: 14rem;
    }
    
    .subtitle h2 {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.mobile-nav-link:focus,
.contact-number:focus,
.contact-phone-large:focus,
.contact-website:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .hero-effects,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-bg {
        display: none;
    }
}