/* Modern Web CSS - Dark Luxury Design System for 8:28 Guitars */

:root {
    --primary-color: #f5f5f7;        /* Clean, high-legibility silver gray text */
    --secondary-color: #a0a0a5;      /* Muted graphite gray for secondary copy */
    --accent-color: #c4a47c;         /* Premium champagne gold representing brass instrument details */
    --accent-hover: #d7b58c;         /* Slightly brighter, glowing gold for active/hover states */
    --background-base: #060608;      /* Deep obsidian dark base */
    --card-shadow: 0 40px 90px rgba(0, 0, 0, 0.65), 
                   0 15px 35px rgba(0, 0, 0, 0.45),
                   inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(14, 14, 16, 0.68); /* Luxurious dark frosted glass sheet */
    --glass-border: rgba(255, 255, 255, 0.07); /* Ultra-thin border on dark glass */
    --success-color: #51cf66;        /* Vibrant soft neon green for dark success states */
    --success-bg: rgba(43, 138, 62, 0.15);
    --error-color: #ff8787;          /* High-legibility pastel red for dark errors */
    --error-bg: rgba(201, 42, 42, 0.15);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--background-base);
    color: var(--primary-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Full-Bleed Guitar Image Background */
body {
    background-image: url('public/bg-new.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Luxury Spot Vignette Overlay to merge the white guitar into a dramatic dark mode */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(10, 10, 12, 0.35) 0%,
        rgba(10, 10, 12, 0.8) 55%,
        rgba(6, 6, 8, 0.97) 100%
    );
    z-index: 1;
    pointer-events: none;
}

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


/* Main Coming Soon Card Area */
.card-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 580px;
    margin: 1.5rem 0;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 3rem 2.5rem;
    width: 100%;
    text-align: center;
    animation: cardEntrance 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

/* Glassmorphism Gold Top Highlight Line */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(196,164,124,0) 0%, var(--accent-color) 50%, rgba(196,164,124,0) 100%);
    opacity: 0.7;
}

/* Elegant Status Tag Badge */
.badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--accent-color);
    background-color: rgba(196, 164, 124, 0.1);
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(196, 164, 124, 0.25);
    margin-bottom: 1.5rem;
    animation: pulseGlow 3s infinite ease-in-out;
}

/* Header Typography */
.main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Form Styling */
.form-instructions {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 480px) {
    .input-group {
        flex-direction: row;
        gap: 0;
        background-color: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--border-radius-md);
        padding: 0.35rem;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .input-group:focus-within {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 4px rgba(196, 164, 124, 0.15);
    }
}

/* Email Input Field */
input[type="email"] {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 480px) {
    input[type="email"] {
        border: none;
        background-color: transparent;
        padding: 0.75rem 1rem;
    }
    
    input[type="email"]:focus {
        outline: none;
    }
}

@media (max-width: 479px) {
    input[type="email"]:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 4px rgba(196, 164, 124, 0.15);
    }
}

/* Subscribe CTA Button - Luxury Gold Theme */
.cta-button {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: #060608;                  /* Clean dark contrast text */
    background-color: var(--accent-color); /* Elegant champagne gold */
    border: none;
    padding: 1rem 1.75rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 130px;
    position: relative;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 164, 124, 0.2);
}

.cta-button:active {
    transform: translateY(1px);
}

.cta-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Spinner for Loading State (Dark matching contrast) */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(0, 0, 0, 0.15);
    border-top: 2.5px solid #000000;
    border-radius: 50%;
    animation: rotateSpinner 0.8s linear infinite;
    position: absolute;
}

/* Feedback Message Styles */
.feedback-message {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: none;
    font-weight: 500;
    text-align: left;
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feedback-message.error {
    display: block;
    color: var(--error-color);
    background-color: var(--error-bg);
    border-left: 3px solid #ff4b4b;
}

.feedback-message.success {
    display: block;
    color: var(--success-color);
    background-color: var(--success-bg);
    border-left: 3px solid #37b24d;
}

/* Success Confirmation Panel */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(196, 164, 124, 0.08);
    color: var(--accent-color);
    border: 1px solid rgba(196, 164, 124, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.success-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 1.75rem;
    max-width: 400px;
}

/* Utility Class for Hidden Elements */
.hidden {
    display: none !important;
}

/* Reset / Register Another Button */
.text-button {
    font-family: var(--font-body);
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.text-button:hover {
    color: var(--primary-color);
}

/* Footer Styling */
.main-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 1.5rem 0;
    animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.main-footer p {
    font-size: 0.8rem;
    color: var(--secondary-color);
    letter-spacing: 0.02em;
    opacity: 0.8;
}

/* --- ANIMATION KEYFRAMES --- */

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0px rgba(196, 164, 124, 0);
        border-color: rgba(196, 164, 124, 0.25);
    }
    50% {
        box-shadow: 0 0 10px 1px rgba(196, 164, 124, 0.15);
        border-color: rgba(196, 164, 124, 0.45);
    }
}

/* Button Loading State Styles */
.cta-button.loading {
    color: transparent;
    cursor: not-allowed;
    pointer-events: none;
}

.cta-button.loading .spinner {
    display: block;
}

/* --- RESPONSIVE TYPOGRAPHY TUNING --- */
@media (max-width: 600px) {
    .glass-card {
        padding: 2.25rem 1.75rem;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }
    
    .brand-logo {
        height: 80px;
    }
}

/* Footer Link Enhancements */
.footer-links {
    margin-top: 0.5rem;
}

.footer-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px dashed rgba(160, 160, 165, 0.4);
    padding-bottom: 1px;
}

.footer-link:hover {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.footer-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Modal Overlay Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Saturated dark mask for contrast */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Modal Card Structure */
.modal-card {
    background: rgba(14, 14, 16, 0.75); /* Dark matching modal glass */
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 2.75rem 2.25rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
    animation: modalScaleEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-overlay.hidden .modal-card {
    transform: scale(0.95);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    color: var(--secondary-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.04);
}

.modal-close:focus-visible {
    outline: 2px solid var(--accent-color);
    background-color: rgba(255, 255, 255, 0.04);
}

/* Modal Typography */
.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 1.75rem;
}

/* Form Groups for Contact Fields */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.4rem;
}

/* Contact Input Elements - Charcoal Translucent Styles */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--primary-color);
    transition: all 0.3s ease;
    resize: none; /* Block textarea resizing to preserve glassmorphism card size */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(196, 164, 124, 0.15);
}

.full-width {
    width: 100%;
}

/* Modal Entry Keyframe Animation */
@keyframes modalScaleEntrance {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
