/* ===== Mechanic Demo: Torque Garage ===== */

.demo-mechanic {
    --torque-red: #ff2d2d;
    --torque-red-dark: #cc0000;
    --torque-black: #0a0a0a;
    --torque-gray: #1a1a1a;
    --torque-metal: #2a2a2a;
    --torque-white: #f0f0f0;
    margin: 0;
    font-family: 'Exo 2', sans-serif;
    background: var(--torque-black);
    color: var(--torque-white);
}

.kas-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: #0a0a0f;
    color: #8ba4bc;
    font-size: 0.8rem;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.kas-bar strong { color: #00d4ff; }
.kas-bar__links { display: flex; gap: 1rem; }
.kas-bar a { color: #00d4ff; text-decoration: none; }

.torque-header {
    background: var(--torque-gray);
    border-bottom: 2px solid var(--torque-red);
}

.torque-nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
}

.torque-logo {
    font-family: 'Russo One', sans-serif;
    font-size: 1.4rem;
    color: var(--torque-white);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.torque-logo span { color: var(--torque-red); }

.torque-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.torque-nav a {
    color: #888;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.torque-nav a:hover { color: var(--torque-red); }

.torque-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-family: 'Russo One', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.torque-btn--primary {
    background: var(--torque-red);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 45, 45, 0.4);
}

.torque-btn--primary:hover {
    background: var(--torque-red-dark);
    box-shadow: 0 0 40px rgba(255, 45, 45, 0.6);
    transform: translateY(-2px);
}

.torque-btn--ghost {
    border-color: var(--torque-red);
    color: var(--torque-red);
}

.torque-btn--ghost:hover {
    background: var(--torque-red);
    color: #fff;
}

.torque-btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.torque-hero {
    min-height: 85vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(255, 45, 45, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, var(--torque-black) 0%, var(--torque-gray) 100%);
}

.torque-hero__speed {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 80px,
        rgba(255, 45, 45, 0.03) 80px,
        rgba(255, 45, 45, 0.03) 81px
    );
    animation: speedLines 2s linear infinite;
}

@keyframes speedLines {
    0% { transform: translateX(0); }
    100% { transform: translateX(-81px); }
}

.torque-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem 4rem 4rem;
    position: relative;
    z-index: 1;
}

.torque-hero__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--torque-red);
    margin-bottom: 1.5rem;
}

.torque-hero h1 {
    font-family: 'Russo One', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.torque-hero h1 span {
    color: var(--torque-red);
    text-shadow: 0 0 40px rgba(255, 45, 45, 0.5);
}

.torque-hero__content > p {
    color: #888;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 2rem;
}

.torque-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.torque-hero__car {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12rem;
    position: relative;
    z-index: 1;
    animation: carRev 2s ease-in-out infinite;
    filter: drop-shadow(0 0 60px rgba(255, 45, 45, 0.3));
}

@keyframes carRev {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.torque-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--torque-red);
    text-align: center;
    padding: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.torque-strip strong {
    display: block;
    font-family: 'Russo One', sans-serif;
    font-size: 1.2rem;
}

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

.torque-services h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 2rem;
    color: var(--torque-red);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.torque-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.torque-services article {
    background: var(--torque-gray);
    border: 1px solid var(--torque-metal);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.torque-services article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--torque-red);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.torque-services article:hover {
    border-color: var(--torque-red);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(255, 45, 45, 0.15);
}

.torque-services article:hover::before {
    transform: scaleX(1);
}

.torque-svc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.torque-services h3 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.torque-services p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
}

.torque-performance {
    padding: 5rem 2rem;
    background: var(--torque-gray);
    border-top: 1px solid var(--torque-metal);
    border-bottom: 1px solid var(--torque-metal);
}

.torque-performance__inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.torque-performance h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 2rem;
    color: var(--torque-red);
    margin-bottom: 1rem;
}

.torque-performance p {
    color: #888;
    line-height: 1.8;
}

.torque-gauge {
    width: 140px;
    height: 140px;
    border: 4px solid var(--torque-metal);
    border-radius: 50%;
    border-top-color: var(--torque-red);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: gaugeSpin 4s linear infinite;
}

.torque-gauge span {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: var(--torque-red);
}

@keyframes gaugeSpin {
    0% { border-top-color: var(--torque-red); transform: rotate(0deg); }
    100% { border-top-color: var(--torque-red); transform: rotate(360deg); }
}

.torque-book {
    padding: 5rem 2rem;
    text-align: center;
}

.torque-book__box {
    max-width: 550px;
    margin: 0 auto;
    padding: 3rem;
    border: 2px solid var(--torque-red);
    background: rgba(255, 45, 45, 0.05);
    box-shadow: 0 0 60px rgba(255, 45, 45, 0.1);
}

.torque-book h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.torque-book p {
    color: #888;
    margin-bottom: 2rem;
}

.torque-footer {
    text-align: center;
    padding: 2rem;
    color: #444;
    font-size: 0.85rem;
    border-top: 1px solid var(--torque-metal);
}

@media (max-width: 768px) {
    .torque-nav ul { display: none; }
    .torque-hero { grid-template-columns: 1fr; }
    .torque-hero__car { display: none; }
    .torque-hero__content { padding: 3rem 1.5rem; }
    .torque-strip { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .torque-performance__inner { grid-template-columns: 1fr; text-align: center; }
    .torque-gauge { margin: 0 auto; }
}
