:root {
    --tesla-red: #E82127;
    --bg-light: #f5f5f7;
    --text-main: #111111;
    --text-muted: #666666;
    --border-soft: #e5e5ea;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

@keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body { animation: pageFadeIn 0.4s ease both; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    z-index: 9999;
    text-decoration: none;
    border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* === HEADER === */

.sleek-header {
    position: fixed;
    top: 12px;
    left: 2%; right: 2%;
    z-index: 10001;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sleek-header.is-hidden { transform: translateY(-150%); }

.sleek-container {
    height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #111;
    transition: all 0.4s ease;
}
.sleek-header.theme-black .sleek-container {
    background: #111;
    backdrop-filter: none;
    border: 1px solid #222;
    color: #fff;
}

.sleek-brand {
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.sleek-toggle {
    background: none;
    border: none;
    color: inherit;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
    user-select: none;
    -webkit-user-select: none;
}
.sleek-toggle:hover { opacity: 0.6; }

/* === FULLSCREEN MENU === */

.fullscreen-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1), visibility 0s 0.6s, background 0.4s ease;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
}
.fullscreen-menu.theme-black {
    background: #111;
    backdrop-filter: none;
}
.fullscreen-menu.is-active {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1), visibility 0s 0s, background 0.4s ease;
}

.fullscreen-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-link {
    font-family: 'Inter', sans-serif;
    font-size: 8vw;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.03em;
    transition: color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(40px);
    opacity: 0;
    color: rgba(0, 0, 0, 0.3);
}
.fullscreen-menu.is-active .mega-link { transform: translateY(0); opacity: 1; }
.fullscreen-menu.is-active .mega-link:nth-child(1) { transition-delay: 0.15s; }
.fullscreen-menu.is-active .mega-link:nth-child(2) { transition-delay: 0.25s; }
.fullscreen-menu.is-active .mega-link:nth-child(3) { transition-delay: 0.35s; }
.mega-link.active { color: #111; }
.mega-link:hover { color: #111; transform: translateX(20px); }
.fullscreen-menu.theme-black .mega-link { color: #444; }
.fullscreen-menu.theme-black .mega-link.active { color: #fff; }
.fullscreen-menu.theme-black .mega-link:hover { color: #fff; }

/* === TYPOGRAPHY === */

h1 {
    font-size: clamp(2.5rem, 7vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #111111 20%, #777777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
    text-align: center;
}

/* === LAYOUT === */

.section-inner { width: 100%; max-width: 980px; }

.content-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 5%;
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border-soft);
}

.section-text {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

/* === CARDS === */

.steps-grid, .faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.step-card, .faq-card {
    background: #fff;
    border: 2px solid var(--text-main);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 4px 4px 0 var(--text-main);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    margin-bottom: 14px;
}

.step-card h3, .faq-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.step-card p, .faq-card p { color: var(--text-muted); font-size: 0.98rem; }

/* === BROWSER WINDOW === */

.brutal-window {
    width: 100%;
    max-width: 560px;
    background: var(--card-bg);
    border: 2px solid var(--text-main);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 4px 4px 0 var(--text-main);
    margin: 0 auto;
}

.brutal-head {
    background-color: var(--text-main);
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 2px solid var(--text-main);
}

.brutal-url {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 26px;
    border-radius: 4px;
    padding: 0 12px;
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    user-select: none;
}

.browser-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* === ANIMATED ARROW BUTTON === */

.learn-more {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    width: 18rem;
    height: auto;
}
.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #111;
    border-radius: 1.625rem;
}
.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0; bottom: 0; margin: auto;
    background: #fff;
}
.learn-more .circle .icon.arrow {
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}
.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
}
.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: #111;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}
.learn-more:hover .circle,
.learn-more:focus-visible .circle { width: 100%; }
.learn-more:hover .circle .icon.arrow,
.learn-more:focus-visible .circle .icon.arrow { background: #fff; transform: translate(1rem, 0); }
.learn-more:hover .button-text,
.learn-more:focus-visible .button-text { color: #fff; }

/* === BUTTONS === */

.contact-mail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 2px solid #111;
    transition: all 0.25s ease;
    box-shadow: 4px 4px 0 #111;
}
.contact-mail-btn:hover,
.contact-mail-btn:focus-visible {
    background: #fff;
    color: #111;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #111;
}

.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid #111;
    transition: all 0.25s ease;
    background: #fff;
    color: #111;
    box-shadow: 4px 4px 0 #111;
}
.btn-light:hover {
    background: #111;
    color: #fff;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #111;
}

/* === FOOTER === */

footer {
    width: 100%;
    padding: 24px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    border-top: 2px solid var(--text-main);
    background-color: var(--card-bg);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-seo { font-weight: 800; color: #111; font-size: 0.92rem; }
.footer-small { font-size: 0.75rem; opacity: 0.7; margin-top: 6px; font-family: 'JetBrains Mono', monospace; }

/* === RESPONSIVE === */

@media (max-width: 900px) {
    .steps-grid, .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sleek-header { left: 12px; right: 12px; top: 12px; }
    .mega-link { font-size: clamp(2rem, 11vw, 3.5rem); }
    h1 { font-size: 2.2rem; letter-spacing: -1px; }
}
