:root {
    --black: #000000;
    --white: #FFFFFF;
    --accent: #007AFF;
    --fs-display: clamp(3rem, 7vw, 6rem);
    --fs-h2: clamp(2.5rem, 6vw, 5rem);
    --fs-h3: clamp(1.5rem, 4vw, 2.5rem);
    --fs-body: clamp(1.1rem, 2vw, 1.25rem);
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --space-xl: 10rem;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background-color: var(--accent);
    color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

h1,
h2,
h3 {
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

p {
    font-weight: 400;
    font-size: var(--fs-body);
    opacity: 0.9;
}

.accent-text {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-m);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    color: var(--white);
    font-weight: 900;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border: 2px solid var(--black);
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

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

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

.btn-accent:hover {
    background-color: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.btn-giant {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    padding: 1.5rem 3rem;
}

/* Header CSS */
.swiss-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--black);
    transition: transform 0.3s ease;
}

.swiss-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.header-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.header-logo img {
    max-height: 80px;
    display: block;
}

.btn-call {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

.head-nav {
    display: none;
    gap: var(--space-m);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
}

@media(min-width: 900px) {
    .head-nav {
        display: flex;
    }
}

.head-nav a {
    position: relative;
}

.head-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--black);
    transition: width 0.3s ease;
}

.head-nav a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .swiss-header .container {
        height: 70px;
        padding: 0 1rem;
    }

    .btn-call {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Footer CSS */
.swiss-footer {
    background-color: var(--black);
    color: var(--white);
    padding: var(--space-l) 0;
    border-top: 2px solid var(--black);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.footer-brand {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

/* Hero Split Layout */
.hero {
    min-height: 105vh;
    padding: 120px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--black);
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-l);
    align-items: center;
    justify-content: center;
}

@media(min-width: 992px) {
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero-left {
        flex: 1.2;
        padding-right: var(--space-m);
    }

    .hero-right {
        flex: 0.8;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

.hero-title {
    font-size: var(--fs-display);
    margin-bottom: var(--space-m);
    text-transform: uppercase;
}

.hero-subtitle {
    max-width: 600px;
    margin-bottom: var(--space-m);
    font-weight: 500;
    font-size: 1.25rem;
}

.success-illustration {
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    background: var(--white);
    border: 8px solid var(--black);
    border-radius: 40px;
    box-shadow: -15px 15px 0 var(--accent);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

@media(max-width: 991px) {
    .success-illustration {
        box-shadow: -8px 8px 0 var(--accent) !important;
        max-width: 100% !important;
        border-width: 4px !important;
        padding: 1.5rem !important;
        border-radius: 20px !important;
    }
}

#successPoint,
#successTip {
    opacity: 0;
}

/* Services */
.services-section {
    padding: var(--space-xl) 0;
    border-top: none;
}

.section-head {
    margin-bottom: var(--space-l);
    font-size: var(--fs-h2);
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 2px solid var(--black);
    border-bottom: none;
}

@media(min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    padding: var(--space-l) var(--space-m);
    border-bottom: 2px solid var(--black);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media(min-width: 768px) {
    .service-card {
        border-right: 2px solid var(--black);
    }

    .service-card:nth-child(3n) {
        border-right: none;
    }
}

.service-number-bg {
    position: absolute;
    right: -5%;
    bottom: -10%;
    font-size: 15rem;
    font-weight: 900;
    line-height: 0.8;
    color: var(--black);
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}

.service-content-fg {
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-m);
    color: var(--black);
    word-break: break-word;
}

.service-desc {
    font-size: 1.125rem;
}

/* Works Gallery */
.works-section {
    padding: var(--space-xl) 0;
    border-top: 2px solid var(--black);
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-l);
}

@media(min-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.work-card {
    cursor: pointer;
    display: block;
}

.work-img-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 2px solid var(--black);
    margin-bottom: var(--space-s);
}

.work-default,
.work-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.work-default {
    z-index: 2;
    opacity: 1;
    background-color: var(--black);
}

.work-hover {
    z-index: 1;
    opacity: 0;
    transform: scale(1.05);
    background-color: var(--accent);
}

.work-card:hover .work-default {
    opacity: 0;
}

.work-card:hover .work-hover {
    opacity: 1;
    z-index: 3;
    transform: scale(1);
}

.work-meta {
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Testimonials utilizing absolute minimum */
.testimonials-section {
    padding: var(--space-xl) 0;
    background-color: var(--black);
    color: var(--white);
    border-top: 2px solid var(--black);
}

.testimonials-section .section-head {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-m);
}

@media(min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
}

.mockup-device {
    border: 3px solid var(--white);
    border-radius: 40px;
    padding: var(--space-l) var(--space-m);
    position: relative;
    background-color: var(--black);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.mockup-device::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: var(--white);
    border-radius: 3px;
}

.mockup-device::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--white);
    border-radius: 50%;
}

.mockup-quote {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: var(--space-m);
}

.mockup-author {
    font-size: 1rem;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
}

/* Lead Magnet / Analysis Table */
.lead-section {
    padding: var(--space-xl) 0;
    border-top: 2px solid var(--black);
    background-color: var(--white);
}

.lead-container {
    max-width: 900px;
    margin: 0 auto;
}

.lead-title {
    font-size: var(--fs-h2);
    margin-bottom: var(--space-s);
    text-transform: uppercase;
}

.lead-subtitle {
    margin-bottom: var(--space-l);
    font-weight: 500;
    font-size: 1.25rem;
    max-width: 600px;
}

.analiz-masasi {
    border: 4px solid var(--black);
    padding: var(--space-m);
    position: relative;
    background: #FAFAFA;
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1.5rem 0;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid var(--black);
    background: transparent;
    color: var(--black);
    outline: none;
    border-radius: 0;
    transition: border-bottom-width 0.15s ease, border-color 0.15s ease;
}

.form-input::placeholder {
    color: #999;
}

.form-input:focus {
    border-bottom: 8px solid var(--accent);
}

/* Message Overlay */
.msg-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
}

.msg-overlay.show {
    clip-path: inset(0 0 0 0);
}

/* Floating Elements */
.whatsapp-btn {
    position: fixed;
    bottom: var(--space-s);
    right: var(--space-s);
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    border: 2px solid var(--black);
    transition: all 0.25s ease;
}

.whatsapp-btn:hover {
    background-color: var(--white);
    color: var(--black);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Enhanced Glassmorphism Popup */
.glass-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.glass-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: var(--space-m) var(--space-m);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
    line-height: 0.5;
    font-weight: 400;
}

.modal-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent);
    margin-bottom: var(--space-s);
}

.modal-text {
    font-size: 1.125rem;
    margin-bottom: var(--space-m);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}