:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #1e293b;
    --accent: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --grid-line: rgba(30, 41, 59, 0.1);
    --transition-speed: 0.4s;
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--accent);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px; /* Min readable text */
}

main {
    flex: 1;
    width: 100%;
    overflow-x: hidden;
}

/* --- Architectural Grid Background --- */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
                      linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
}

/* --- Navigation --- */
nav {
    border-bottom: 1px solid var(--border-color);
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-link {
    position: relative;
    padding: 0.75rem 0; /* Increased touch target */
    transition: color var(--transition-speed);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- Buttons --- */
.btn-premium {
    position: relative;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    transition: all var(--transition-speed);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 44px; /* Touch target */
    min-width: 44px;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    transition: left var(--transition-speed);
    z-index: -1;
}

.btn-premium:hover {
    color: #fff;
}

.btn-premium:hover::before {
    left: 0;
}

.btn-primary-filled {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary-filled::before {
    background-color: var(--secondary);
}

/* --- Hero Section --- */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-img-container {
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Cards --- */
.card-premium {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: all var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-premium:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 15px 15px 0px var(--grid-line);
}

.card-number {
    font-family: serif;
    font-style: italic;
    font-size: 3rem;
    color: var(--grid-line);
    margin-bottom: 1rem;
}

/* --- Sections --- */
section {
    padding: 6rem 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* --- Custom Layout Elements --- */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--grid-line);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--secondary);
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0.5rem 0;
    text-decoration: none;
    font-weight: 700;
    min-height: 48px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.burger-btn {
    z-index: 2100;
    min-height: 44px;
    padding: 0 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* --- Footer --- */
footer {
    background: var(--secondary);
    color: #fff;
    padding: 4rem 0 2rem;
}

/* --- Animations --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Cookie Consent --- */
#cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 600px;
    background: #fff;
    color: var(--text-main);
    padding: 1.5rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(200%);
    transition: transform 0.5s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    #cookie-consent {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

#cookie-consent.show {
    transform: translateY(0);
}

/* Forms */
input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: #fff;
    margin-bottom: 1.5rem;
    outline: none;
    transition: border-color var(--transition-speed);
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus {
    border-color: var(--primary);
}

button[type="submit"] {
    width: 100%;
}
