/* CSS Reset & Variables */
:root {
    --bg-color: #06060a;
    --card-bg: rgba(12, 12, 22, 0.55);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    /* CMYK Spot Colors */
    --color-cyan: #00f0ff;
    --color-magenta: #ff007f;
    --color-yellow: #ffea00;
    --color-key: #ffffff;
    
    /* Custom Gradients */
    --grad-cmyk: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-magenta) 50%, var(--color-yellow) 100%);
    --grad-button: linear-gradient(135deg, var(--color-magenta) 0%, var(--color-cyan) 100%);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Background Texture and Glows */
#ink-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, 
        rgba(0, 240, 255, 0.08) 0%, 
        rgba(255, 0, 127, 0.04) 40%, 
        transparent 70%);
    border-radius: 50%;
    top: -250px;
    left: -250px;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    filter: blur(10px);
}

/* Halftone Dotted Printing Pattern Overlay */
.halftone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0.04;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    background-position: 0 0;
}

/* Fine Layout Alignment Lines (Grid Overlay) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

/* Main Container Layout */
.main-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem;
    z-index: 10;
}

/* Header Styling */
.header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-icon {
    animation: rotatePlates 45s linear infinite;
    cursor: pointer;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 2px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 70%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtext {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    backdrop-filter: blur(12px);
}

/* Calibrating dots (C M Y K) */
.status-indicator {
    display: flex;
    gap: 4px;
}

.status-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-c {
    background-color: var(--color-cyan);
    box-shadow: 0 0 6px var(--color-cyan);
    animation: blinkGlow 1.6s infinite 0s ease-in-out;
}

.status-m {
    background-color: var(--color-magenta);
    box-shadow: 0 0 6px var(--color-magenta);
    animation: blinkGlow 1.6s infinite 0.4s ease-in-out;
}

.status-y {
    background-color: var(--color-yellow);
    box-shadow: 0 0 6px var(--color-yellow);
    animation: blinkGlow 1.6s infinite 0.8s ease-in-out;
}

.status-k {
    background-color: #64748b;
    animation: blinkGlow 1.6s infinite 1.2s ease-in-out;
}

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* Content Wrapper */
.content-wrapper {
    width: 100%;
    max-width: 850px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0;
    padding: 2.5rem 0;
}

/* Printing Badge */
.printing-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.badge-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--grad-cmyk);
}

.badge-icon {
    color: var(--color-cyan);
    filter: drop-shadow(0 0 3px var(--color-cyan));
}

/* Headlines */
.main-title {
    font-family: var(--font-heading);
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-magenta) 50%, var(--color-yellow) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flowCMYK 10s linear infinite;
}

.description {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 3.2rem;
    font-weight: 300;
}

/* CMYK Countdown Plates */
.countdown-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    width: 100%;
    justify-content: center;
    max-width: 640px;
}

.countdown-card {
    position: relative;
    flex: 1;
    min-width: 110px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.8rem 1rem 1.4rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Spot color definitions for plates */
.countdown-card.cyan-plate { border-bottom: 3px solid var(--color-cyan); }
.countdown-card.magenta-plate { border-bottom: 3px solid var(--color-magenta); }
.countdown-card.yellow-plate { border-bottom: 3px solid var(--color-yellow); }
.countdown-card.key-plate { border-bottom: 3px solid var(--color-key); }

/* Plate labels top-right */
.plate-label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.cyan-plate .plate-label { color: var(--color-cyan); }
.magenta-plate .plate-label { color: var(--color-magenta); }
.yellow-plate .plate-label { color: var(--color-yellow); }
.key-plate .plate-label { color: var(--color-key); }

/* Registration mark graphic in plates */
.plate-registration {
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.plate-registration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.plate-registration::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
}

/* Hover effects */
.countdown-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.countdown-card.cyan-plate:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
}

.countdown-card.magenta-plate:hover {
    border-color: var(--color-magenta);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.15);
}

.countdown-card.yellow-plate:hover {
    border-color: var(--color-yellow);
    box-shadow: 0 0 25px rgba(255, 234, 0, 0.15);
}

.countdown-card.key-plate:hover {
    border-color: var(--color-key);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.countdown-card:hover .plate-label {
    opacity: 0.9;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 2.85rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Newsletter Signup Wrapper */
.newsletter-wrapper {
    width: 100%;
    max-width: 520px;
}

.newsletter-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.subscribe-form {
    width: 100%;
}

.input-group {
    position: relative;
    display: flex;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.35rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
}

.input-group:focus-within {
    border-color: var(--color-magenta);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.12);
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-group:focus-within .input-icon {
    color: var(--color-cyan);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.8rem 1rem 0.8rem 3rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #ffffff;
    width: 100%;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    position: relative;
    background: var(--grad-button);
    color: #030307;
    border: none;
    outline: none;
    border-radius: 6px;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.25);
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.35) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-yellow) 100%);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Spinner Loader for Submit Button */
.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-arrow {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: inline-block;
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Form Feedback Area */
.form-feedback {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-5px);
}

.form-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.form-feedback.success {
    color: var(--color-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.form-feedback.error {
    color: var(--color-magenta);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

/* Footer Styling */
.footer {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 2rem;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.01);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-email:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.contact-email svg {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.contact-email:hover svg {
    color: var(--color-cyan);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.social-link:hover {
    color: #ffffff;
    border-color: rgba(255, 0, 127, 0.2);
    background: rgba(255, 0, 127, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.1);
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotatePlates {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blinkGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes flowCMYK {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Entrance classes */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(15px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* Media queries */
@media (max-width: 768px) {
    .main-container {
        padding: 1.5rem;
    }
    
    .header {
        margin-bottom: 2.5rem;
    }

    .main-title {
        font-size: 2.6rem;
    }
    
    .description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .countdown-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 440px;
    }
    
    .countdown-card {
        padding: 1.5rem 0.8rem 1.2rem;
    }

    .countdown-number {
        font-size: 2.4rem;
    }
    
    .footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-top: 1.5rem;
    }
    
    .footer-left { order: 3; }
    .footer-center { order: 1; }
    .footer-right { order: 2; }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.1rem;
    }
    
    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 0.75rem;
        padding: 0;
    }
    
    .input-group:focus-within {
        box-shadow: none;
    }
    
    .input-group input {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        padding: 1rem 1rem 1rem 3.2rem;
    }
    
    .input-group input:focus {
        border-color: var(--color-cyan);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .printing-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1.1rem;
    }
}
