:root {
    --bg-color: #050505;
    --primary-color: #d4af37;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent-color: #ffd700;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100%;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Loading ========== */
#loading-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s;
    padding: var(--safe-top) 20px var(--safe-bottom);
}

.loading-logo {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 24px;
}

.loading-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, var(--primary-color), transparent);
    background-size: 200% 200%;
    animation: golden-sweep 2.5s infinite linear;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 80 L20 20 L50 50 L80 20 L80 80' fill='none' stroke='black' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 80 L20 20 L50 50 L80 20 L80 80' fill='none' stroke='black' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.loading-text {
    font-size: clamp(18px, 5vw, 24px);
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-in-up 1.5s forwards 0.8s;
}

@keyframes golden-sweep {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Canvas ========== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========== Content ========== */
#content {
    opacity: 0;
    transition: opacity 1.5s ease-in;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

#content.visible {
    opacity: 1;
}

.hero-section {
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1100px;
    padding: calc(var(--safe-top) + 40px) 16px calc(var(--safe-bottom) + 40px);
}

.hero-title {
    font-size: clamp(2.4rem, 9vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    background: linear-gradient(to bottom, #ffffff 35%, #888888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    text-transform: uppercase;
    will-change: transform;
    padding: 0 8px;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.8vw, 1.35rem);
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 28px;
    padding: 0 8px;
    line-height: 1.5;
}

.equipment-list {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: var(--text-muted);
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
    align-items: center;
    padding: 0 8px;
    max-width: 90%;
}

.equipment-list span {
    white-space: nowrap;
}

.tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 36px;
    margin-bottom: 40px;
    justify-content: center;
}

.tagline span {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.tagline span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 1px;
    background-color: var(--primary-color);
}

/* ========== Buttons ========== */
.glass-button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 36px;
    color: white;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.glass-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.glass-button:hover::before {
    left: 100%;
}

.glass-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.25);
    border-color: var(--primary-color);
}

.glass-button:active {
    transform: scale(0.97);
}

/* ========== Second Section ========== */
.second-section {
    padding: 80px 16px 60px;
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.section-headline {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    margin-bottom: 24px;
    opacity: 0.85;
    font-weight: 700;
}

.animated-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto 32px;
    position: relative;
    overflow: hidden;
}

.animated-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: slide-divider 3s infinite;
}

@keyframes slide-divider {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.section-text {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== Footer ========== */
footer {
    padding: 40px 16px calc(40px + var(--safe-bottom));
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.footer-note {
    font-size: 0.7rem;
    opacity: 0.45;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.kvkk-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}

.kvkk-link:hover {
    color: var(--primary-color);
}

/* ========== Cookie Banner ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    padding: 16px;
    padding-bottom: calc(16px + var(--safe-bottom));
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.cookie-content p {
    flex: 1 1 280px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.kvkk-link-inline {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 22px;
    border-radius: 40px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    -webkit-tap-highlight-color: transparent;
    transition: all 0.25s ease;
}

.cookie-btn.accept {
    background: var(--primary-color);
    color: #111;
    border-color: var(--primary-color);
}

.cookie-btn.accept:hover {
    background: #e6c04a;
}

.cookie-btn.reject {
    background: transparent;
    color: var(--text-muted);
}

.cookie-btn.reject:hover {
    border-color: var(--text-muted);
    color: #fff;
}

/* ========== Modals ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: calc(20px + var(--safe-top));
    padding-bottom: calc(20px + var(--safe-bottom));
}

.modal.hidden {
    display: none !important;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-box {
    position: relative;
    background: #111;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px 24px;
    width: 100%;
    max-width: 440px;
    max-height: 90dvh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
    z-index: 1;
}

.modal-box-wide {
    max-width: 640px;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
    color: #fff;
}

.modal-box h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    padding-right: 30px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    margin-top: 8px;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 14px;
    text-align: center;
}

/* KVKK body */
.kvkk-body {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.kvkk-body h3 {
    color: #fff;
    font-size: 1rem;
    margin: 20px 0 8px;
}

.kvkk-body p {
    margin-bottom: 10px;
}

.kvkk-body ul {
    padding-left: 18px;
    margin-bottom: 12px;
}

.kvkk-body li {
    margin-bottom: 4px;
}

.kvkk-body a {
    color: var(--primary-color);
}

.kvkk-update {
    margin-top: 24px;
    font-size: 0.8rem;
    opacity: 0.6;
    border-top: 1px solid var(--glass-border);
    padding-top: 14px;
}

/* ========== Utility ========== */
.hidden {
    display: none !important;
}

/* ========== Responsive ========== */
@media (max-width: 380px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .equipment-list { font-size: 0.7rem; gap: 6px 8px; }
    .tagline { gap: 16px 20px; }
    .glass-button { padding: 14px 28px; }
}

@media (max-width: 600px) {
    .hero-section {
        padding-top: calc(var(--safe-top) + 28px);
        padding-bottom: calc(var(--safe-bottom) + 32px);
    }
    .tagline {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 36px;
    }
    .second-section { padding: 60px 16px 40px; }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    .modal-box {
        padding: 24px 18px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .hero-title {
        font-size: clamp(3.5rem, 8vw, 5.5rem);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 40px 20px;
    }
    .hero-title { font-size: 2.8rem; margin-bottom: 10px; }
    .hero-subtitle { margin-bottom: 16px; }
    .equipment-list, .tagline { margin-bottom: 16px; }
    .second-section { padding: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch devices – hide custom cursor completely */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    body, a, button {
        cursor: auto !important;
    }
}
