/* ===================================
   LÄNKA - Minimalist Aesthetic Design
   =================================== */

:root {
    --dark: #0A0E14;
    --dark-blue: #0D1B2A;
    --ice-blue: #A8DADC;
    --white: #FFFFFF;
    --cream: #F5F5DC;
    --overlay: rgba(10, 14, 20, 0.65);
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    overflow-x: hidden;
    background: var(--dark);
    line-height: 1;
    min-height: 100vh;
    position: relative;
}

/* Image Background */
.image-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 14, 20, 0.65) 0%,
        rgba(13, 27, 42, 0.55) 50%,
        rgba(10, 14, 20, 0.70) 100%
    );
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 100;
    background: transparent;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 14, 20, 0.95);
    padding: 1.5rem 4rem;
    backdrop-filter: blur(20px);
}

.nav-left .logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(168, 218, 220, 0.4)) brightness(1.1);
    opacity: 1;
    transition: all 0.3s ease;
}

.nav-left .logo:hover {
    filter: drop-shadow(0 4px 15px rgba(168, 218, 220, 0.6)) brightness(1.2);
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ice-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 120px;
    text-align: center;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Logo */
.hero-logo {
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.hero-logo img {
    height: clamp(40px, 5vw, 70px);
    width: auto;
    filter: drop-shadow(0 0 20px rgba(168, 218, 220, 0.4)) brightness(1.05);
    transition: all 0.3s ease;
}

.hero-logo img:hover {
    filter: drop-shadow(0 0 30px rgba(168, 218, 220, 0.6)) brightness(1.1);
    transform: scale(1.03);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Title - Enhanced */
.hero-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    text-transform: uppercase;
    text-shadow:
        0 0 30px rgba(168, 218, 220, 0.5),
        0 2px 20px rgba(0, 0, 0, 0.4);
}

.title-line {
    display: block;
    animation: slideInLeft 0.8s ease-out backwards;
    position: relative;
}

.title-line:nth-child(2) {
    animation-delay: 0.15s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* App Store Badges */
.app-badges {
    margin: 1.5rem auto 2rem;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

.badges-image {
    max-width: clamp(200px, 40vw, 380px);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.badges-image:hover {
    transform: scale(1.02);
}

/* Countdown - FIXED */
.countdown {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 0 auto 2.5rem;
    max-width: 800px;
    animation: fadeIn 1s ease-out 0.5s backwards;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 100px;
}

.countdown-number {
    font-size: clamp(2.2rem, 6vw, 5.5rem);
    font-weight: 200;
    color: var(--white);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    display: block;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(168, 218, 220, 0.3),
        0 5px 20px rgba(0, 0, 0, 0.4);
}

.countdown-text {
    font-size: clamp(0.75rem, 1vw, 0.95rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.countdown-divider {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
    padding-top: 0.5rem;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.15em;
    margin: 0 auto 2rem;
    max-width: 800px;
    animation: fadeIn 1s ease-out 0.7s backwards;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

/* CTA Button */
.cta-button {
    padding: 1.3rem 4.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--white);
    border: 2px solid var(--white);
    border-radius: 0;
    cursor: pointer;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    animation: fadeIn 1s ease-out 0.9s backwards;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
}

.cta-button:hover {
    background: transparent;
    color: var(--white);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Modal - FIXED DEFAULT HIDDEN */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 20, 0.96);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3.5rem 3rem;
    max-width: 550px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--white);
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.modal-text {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
}

.notify-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-input {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modal-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.modal-submit {
    padding: 1.2rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--white);
    border: 2px solid var(--white);
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.modal-submit:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

.modal-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-message {
    padding: 1rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    color: #E57373;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    text-align: center;
    z-index: 50;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.2rem;
}

.social-icon {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--white);
    transform: translateY(-3px);
}

.footer-text {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.15em;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav {
        padding: 1.5rem 2rem;
    }

    .countdown {
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav.scrolled {
        padding: 0.8rem 1rem;
    }

    .nav-right {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .hero {
        padding: 80px 1.5rem 60px;
    }

    .hero-logo {
        margin-bottom: 1rem;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .app-badges {
        margin: 1rem auto 1.5rem;
    }

    .badges-image {
        max-width: clamp(180px, 70vw, 300px);
    }

    .countdown {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .countdown-block {
        min-width: 60px;
        gap: 0.5rem;
    }

    .countdown-divider {
        padding-top: 0.2rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.8rem 1rem;
    }

    .nav-left .logo {
        height: 30px;
    }

    .nav-right {
        gap: 0.8rem;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .hero {
        padding: 70px 1rem 50px;
    }

    .hero-logo {
        margin-bottom: 0.8rem;
    }

    .hero-title {
        margin-bottom: 0.8rem;
    }

    .app-badges {
        margin: 0.8rem auto 1.2rem;
    }

    .badges-image {
        max-width: clamp(160px, 65vw, 240px);
    }

    .countdown {
        gap: 0.6rem;
        margin-bottom: 1.2rem;
    }

    .countdown-block {
        min-width: 55px;
        gap: 0.4rem;
    }

    .countdown-divider {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        margin-bottom: 1.2rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-title {
        font-size: 1.8rem;
    }
}

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

/* Selection */
::selection {
    background: var(--ice-blue);
    color: var(--dark);
}

::-moz-selection {
    background: var(--ice-blue);
    color: var(--dark);
}
