@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   PREMIUM BRAND DESIGN SYSTEM (DUBAI LUXURY)
   ========================================== */
:root {
    /* Color Palette */
    --bg-primary: #06080d;
    --bg-secondary: #0c0f17;
    --bg-card: rgba(15, 22, 36, 0.6);
    --bg-card-hover: rgba(22, 32, 53, 0.8);
    
    --primary-gold: #d4af37;
    --primary-gold-rgb: 212, 175, 55;
    --gold-glow: rgba(212, 175, 55, 0.15);
    
    --accent-teal: #00f2fe;
    --accent-teal-rgb: 0, 242, 254;
    --teal-glow: rgba(0, 242, 254, 0.15);
    
    --success-green: #10b981;
    --danger-red: #ef4444;
    
    --border-color: rgba(212, 175, 55, 0.1);
    --border-hover: rgba(0, 242, 254, 0.25);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.4);
}

/* Grid & Layout Helpers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Background Gradients & Glows */
.ambient-glow-1 {
    position: absolute;
    top: 5%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.ambient-glow-2 {
    position: absolute;
    top: 45%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

/* ==========================================
   TYPOGRAPHY & UTILITIES
   ========================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #fff 30%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-teal {
    background: linear-gradient(135deg, #fff 30%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.text-teal {
    color: var(--accent-teal);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 48px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #b89326 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
header {
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 8, 13, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 16px 0;
    background: rgba(6, 8, 13, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary-gold);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-gold);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, rgba(0,0,0,0) 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-badges {
    display: flex;
    gap: 32px;
}

.hero-badge {
    display: flex;
    flex-direction: column;
}

.hero-badge .num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-gold);
}

.hero-badge .label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Stunning Floating Image/Card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, rgba(0,0,0,0) 70%);
    filter: blur(40px);
    z-index: 1;
}

.visual-card {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, rgba(20, 30, 52, 0.6) 0%, rgba(8, 12, 22, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.visual-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 20px;
}

.card-tag {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--accent-teal);
    font-size: 12px;
    font-weight: 600;
}

.card-mid {
    margin: 40px 0;
}

.card-mid h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.card-mid p {
    color: var(--text-secondary);
    font-size: 14px;
}

.card-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.card-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.card-stat span:first-child {
    color: var(--text-muted);
}

.card-stat span:last-child {
    font-weight: 600;
}

/* ==========================================
   INTERACTIVE TAX CALCULATOR
   ========================================== */
.calculator-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.calculator-box:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.05);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.input-label-row label {
    font-weight: 500;
    font-size: 16px;
}

.val-display {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 18px;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 10px;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    box-shadow: 0 0 10px var(--gold-glow);
    transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent-teal);
    box-shadow: 0 0 15px var(--teal-glow);
}

.select-box {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.select-box:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.05);
}

/* Calculator Results Panel */
.calc-results {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, rgba(0, 242, 254, 0.03) 100%);
    border: 1px dashed rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.res-header {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.savings-num {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-teal);
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 0 20px var(--teal-glow);
}

.savings-lbl {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
}

.comparisons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-row:last-child {
    border: none;
}

.comp-lbl {
    font-size: 14px;
    color: var(--text-secondary);
}

.comp-val {
    font-weight: 600;
}

.comp-val.tax-high {
    color: var(--danger-red);
}

.comp-val.tax-low {
    color: var(--success-green);
}

/* ==========================================
   COMPARTMENTS: MAINLAND VS FREEZONE
   ========================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.comp-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.comp-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.03);
}

.comp-card-header {
    margin-bottom: 24px;
}

.comp-card-header h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.comp-card-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}

.features-list li svg {
    color: var(--primary-gold);
    flex-shrink: 0;
    margin-top: 4px;
}

/* ==========================================
   PROCESS STEPS (TIMELINE)
   ========================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 50%, transparent 100%);
    opacity: 0.3;
    z-index: 1;
}

.step-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    text-align: center;
}

.step-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--primary-gold);
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #b89326 100%);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 auto 24px auto;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================
   LEAD CAPTURE FORM (MULTI-STEP)
   ========================================== */
.form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Progress bar */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-50%);
    z-index: 1;
}

.progress-bar-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: var(--primary-gold);
    transform: translateY(-50%);
    z-index: 2;
    transition: var(--transition-smooth);
    width: 0%;
}

.progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: var(--transition-smooth);
}

.progress-step.active {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background: var(--bg-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

.progress-step.completed {
    border-color: var(--accent-teal);
    color: #000;
    background: var(--accent-teal);
    box-shadow: 0 0 10px var(--teal-glow);
}

/* Form Steps */
.form-step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step-content.active {
    display: block;
}

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

.form-step-content h3 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.form-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.form-inputs-grid.single-col {
    grid-template-columns: 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.05);
}

/* Radio & Card Inputs */
.option-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
}

.option-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.02);
}

.option-card.selected {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.option-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.option-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 14px;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--primary-gold);
}

/* Success State Screen */
.success-screen {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-green);
    color: var(--success-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px auto;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* ==========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-badges {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    .calculator-box {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px;
    }
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .steps-grid::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    .hero-content h1 {
        font-size: 42px;
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .option-cards {
        grid-template-columns: 1fr;
    }
    .form-inputs-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .nav-links {
        display: none; /* In production, add a mobile menu hamburger */
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .form-box {
        padding: 24px;
    }
}
