:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #0f172a;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --teal: #0d9488;
    --bg-dark: #0b1329;
    --card-bg: rgba(15, 23, 42, 0.68);
    --card-bg-light: rgba(255, 255, 255, 0.92);
    --text-main: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #cbd5e1;
    --border: rgba(255, 255, 255, 0.15);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --glow: 0 0 30px rgba(245, 158, 11, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        linear-gradient(135deg, rgba(11, 19, 41, 0.84) 0%, rgba(15, 23, 42, 0.90) 100%),
        url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    word-break: break-word;
}

button, a, input {
    touch-action: manipulation;
}

/* Background overlay and pattern */
.bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(30, 58, 138, 0.35) 0%, transparent 70%),
                radial-gradient(circle at 80% 80%, rgba(13, 148, 136, 0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    pointer-events: none;
    z-index: 0;
}

/* Floating stationery icons decor */
.floating-icon {
    position: absolute;
    color: rgba(245, 158, 11, 0.15);
    z-index: 1;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.icon-1 { top: 12%; left: 6%; font-size: 3.5rem; animation-delay: 0s; }
.icon-2 { top: 65%; left: 4%; font-size: 4.5rem; animation-delay: 2.5s; }
.icon-3 { top: 18%; right: 7%; font-size: 4rem; animation-delay: 4.5s; }
.icon-4 { top: 75%; right: 5%; font-size: 3.2rem; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(8deg); }
}

header {
    padding: 2.5rem 2rem 1rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.launch-date-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.35));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fbbf24;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 148, 136, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #2dd4bf;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(45, 212, 191, 0.35);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Main title "Tezliklə" */
.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 30%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5));
}

/* Sub title "Saytın möhtəşəm açılışı" */
.sub-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.3rem, 4.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.description {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.7;
    margin-bottom: 3rem;
    font-weight: 400;
    padding: 0 0.5rem;
}

/* Countdown Timer */
.timer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    width: 100%;
    max-width: 700px;
}

.timer-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1.6rem 0.75rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

.timer-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: var(--shadow), var(--glow);
}

.timer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--teal));
}

.timer-value {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.timer-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #94a3b8;
}

/* Subscription Form */
.subscribe-box {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 680px;
    box-shadow: var(--shadow);
    margin-bottom: 4rem;
}

.subscribe-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.15rem, 3.5vw, 1.4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.subscribe-desc {
    font-size: clamp(0.88rem, 2.5vw, 0.95rem);
    color: var(--text-muted);
    margin-bottom: 1.6rem;
    line-height: 1.55;
}

.subscribe-desc b {
    color: var(--accent);
}

.form-group {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1.25rem; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.email-input {
    width: 100%;
    padding: 1.1rem 1rem 1.1rem 3.2rem;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    font-family: inherit;
    font-size: 16px; /* 16px prevents iOS auto-zoom on input focus */
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    transition: all 0.3s ease;
    min-height: 52px;
}

.email-input:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28);
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    border: none;
    padding: 1.1rem 1.85rem;
    border-radius: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -3px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -3px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fbbf24, var(--accent));
}

.form-success {
    display: none;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    padding: 1.1rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
}

.feature-card {
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.6rem 1.5rem;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(15, 23, 42, 0.72);
}

.feature-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.65), rgba(13, 148, 136, 0.65));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
    color: #ffffff;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

footer {
    padding: 2.25rem 1.5rem 1.75rem;
    border-top: 1px solid var(--border);
    background: rgba(11, 19, 41, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-info {
    display: flex;
    gap: 1.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px; /* Touch friendly height */
}

.contact-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 0.85rem;
}

.social-btn {
    width: 46px; height: 46px; /* Touch friendly target */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    font-size: 1.15rem;
}

.social-btn:hover, .social-btn:active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Responsive Breakpoints for Mobile Optimization
   ========================================================================== */

@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* Performance boost on mobile GPUs */
    }

    .floating-icon {
        opacity: 0.3; /* Subtle decor on mobile so it doesn't distract */
    }

    header {
        padding: 1.5rem 1rem 0.5rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .hero-badge {
        font-size: 0.82rem;
        padding: 0.45rem 1.1rem;
        margin-bottom: 1.5rem;
    }

    .timer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        margin-bottom: 2.75rem;
    }

    .timer-card {
        padding: 1.35rem 0.5rem;
        border-radius: 18px;
    }

    .subscribe-box {
        padding: 1.6rem 1.2rem;
        border-radius: 20px;
        margin-bottom: 3rem;
    }

    .form-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .input-wrapper {
        min-width: 100%;
    }

    .btn-submit {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.35rem 1.2rem;
        border-radius: 16px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .contact-info {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .launch-date-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .sub-title {
        font-size: 1.2rem;
    }

    .timer-container {
        gap: 0.65rem;
    }

    .timer-value {
        font-size: 2rem;
    }

    .timer-label {
        font-size: 0.72rem;
        letter-spacing: 0.8px;
    }

    .subscribe-box {
        padding: 1.35rem 1rem;
    }
}
