/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
   ---------------------------------------------------- */
:root {
    --bg-dark: #08080c;
    --bg-card: rgba(18, 19, 28, 0.55);
    --bg-card-hover: rgba(25, 27, 40, 0.7);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(226, 183, 85, 0.25);
    
    /* Harmonious Gold Palette */
    --gold-primary: #e2b755;
    --gold-light: #f7e0a3;
    --gold-dark: #b88a2b;
    --gold-gradient: linear-gradient(135deg, #f7e0a3 0%, #e2b755 50%, #b88a2b 100%);
    --gold-glow: rgba(226, 183, 85, 0.15);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------
   BASE STYLES & RESET
   ---------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

h1, h2, h3, h4, .logo-text, .btn-primary, .badge-text {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

/* ----------------------------------------------------
   AMBIENT BACKGROUNDS
   ---------------------------------------------------- */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.45;
    mix-blend-mode: screen;
}

.bg-glow-1 {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--gold-glow) 0%, rgba(226, 183, 85, 0) 70%);
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.bg-glow-2 {
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0) 75%);
    animation: floatGlow 20s ease-in-out infinite alternate-reverse;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: -1;
    pointer-events: none;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.15); }
}

/* ----------------------------------------------------
   APP CONTAINER & LAYOUT
   ---------------------------------------------------- */
.app-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ----------------------------------------------------
   HEADER
   ---------------------------------------------------- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.gold-icon {
    color: var(--gold-primary);
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Action button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Header Text Link */
.btn-text-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 10px 16px;
    cursor: pointer;
}

.btn-text-link:hover {
    color: var(--gold-primary);
}

/* ----------------------------------------------------
   HERO / MAIN CONTENT SECTION
   ---------------------------------------------------- */
.hero-section {
    padding: 40px 0 80px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* Hero Text Content */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(226, 183, 85, 0.06);
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--gold-primary);
    border-radius: 50%;
    animation: pulse 1.8s infinite ease-in-out;
    left: 0;
    top: 0;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.2); opacity: 0; }
}

.badge-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 40px;
    max-width: 540px;
}

/* CTA Button Row & Direct Contacts */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 500px;
    gap: 16px;
    margin-bottom: 48px;
    justify-content: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 28px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: var(--border-radius-sm);
    color: #25d366;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn i {
    width: 18px;
    height: 18px;
}

/* Phone call subtext styling */
.phone-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: -16px;
    margin-bottom: 48px;
}

.phone-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.phone-link:hover {
    color: var(--gold-light);
    text-decoration: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 28px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--border-radius-sm);
    color: #08080c;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px -6px rgba(226, 183, 85, 0.35);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(226, 183, 85, 0.45);
}

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

.btn-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

/* Feature Highlights */
.features-row {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    color: var(--gold-primary);
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.feature-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ----------------------------------------------------
   SHOWCASE / DYNAMIC CARD
   ---------------------------------------------------- */
.hero-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px; /* Crucial for 3D tilt */
}

.card-container {
    width: 380px;
    height: 230px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.1s ease; /* Fluid mouse tracking */
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-md);
    background: radial-gradient(circle at 50% 50%, rgba(226, 183, 85, 0.15) 0%, transparent 60%);
    filter: blur(20px);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-container:hover .card-glow {
    opacity: 1;
}

.card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    border-radius: var(--border-radius-md);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    z-index: 2;
    overflow: hidden;
}

.card-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.03) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.card-container:hover .card-face::before {
    left: 200%;
}

/* Card details styling */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-monogram {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    background: rgba(226, 183, 85, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(226, 183, 85, 0.2);
}

.card-nfc-symbol {
    color: var(--text-muted);
}

.card-nfc-symbol i {
    width: 24px;
    height: 24px;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.card-logo-crown {
    width: 32px;
    height: 32px;
    color: var(--gold-primary);
    filter: drop-shadow(0 2px 8px rgba(226, 183, 85, 0.3));
}

.card-logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.card-tagline {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-left: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-label {
    display: block;
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.card-value {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.card-serial .card-value {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.card-shadow {
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    filter: blur(15px);
    z-index: 0;
    pointer-events: none;
    transform: translateZ(-50px);
    transition: var(--transition-smooth);
}

.card-container:hover .card-shadow {
    transform: translateZ(-50px) scale(1.05);
    filter: blur(20px);
    background: rgba(0, 0, 0, 0.6);
}

.interaction-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    animation: hintPulse 2s infinite ease-in-out;
}

.hint-icon {
    width: 14px;
    height: 14px;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 0.9; transform: translateY(2px); }
}

/* ----------------------------------------------------
   FOOTER (BUSINESS COMPLIANCE READY)
   ---------------------------------------------------- */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(226, 183, 85, 0.01) 100%);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-area {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 500px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact-item i {
    width: 16px;
    height: 16px;
    color: var(--gold-primary);
}

a.footer-contact-item:hover {
    color: var(--text-primary);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    font-size: 13px;
    color: var(--text-muted);
}

.copyright strong {
    color: var(--text-primary);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-trigger {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-trigger:hover {
    color: var(--gold-primary);
    text-decoration: underline;
}

.separator {
    color: var(--border-color);
    font-size: 12px;
}

/* ----------------------------------------------------
   MODALS (PRIVACY POLICY & TERMS OF SERVICE)
   ---------------------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 4, 6, 0.75);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #0d0d14;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 680px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 101;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(226, 183, 85, 0.05);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    overflow-y: auto;
    padding: 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.last-updated {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-light);
    margin: 28px 0 12px 0;
}

.modal-body p, .modal-body ul li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.modal-body ul li {
    margin-bottom: 8px;
}

.modal-body a {
    color: var(--gold-primary);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------
   TOAST NOTIFICATION
   ---------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 105;
    background: #0d0d14;
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 380px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(226, 183, 85, 0.05);
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-icon {
    color: var(--gold-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN
   ---------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 64px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-row {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .features-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 24px 0;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-section {
        padding: 20px 0 60px 0;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .modal-body {
        padding: 28px;
    }
    
    .modal-body h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .main-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
        text-align: center;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .brand-logo-img {
        height: 32px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .cta-row {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .btn-primary, .whatsapp-btn {
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
    }
    
    .features-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .modal-body {
        padding: 20px;
    }
}
