/* Global Resets & Typography */
:root {
    --bg-color: #090E17;
    --card-color: #121824;
    --card-light: #1B2333;
    --border-color: #1F2C3F;
    --border-light: #2C3E55;
    --primary-color: #00E575;
    --secondary-color: #7C4DFF;
    --accent-color: #FF9100;
    --text-primary: #FFFFFF;
    --text-secondary: #8F9CAE;
    --text-muted: #5C6C7F;
    --glass: rgba(18, 24, 36, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

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

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.25s ease;
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00c263 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 229, 117, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 229, 117, 0.4);
}

.btn-secondary {
    background-color: var(--card-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Main layouts and Views */
main {
    margin-top: 80px;
    flex-grow: 1;
}

.active-view {
    display: block;
}

#complianceView {
    display: none;
    margin-top: 40px;
    margin-bottom: 60px;
}

#complianceView.active-view {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--card-light);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

.trust-indicators {
    display: flex;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    width: 100%;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.indicator i {
    width: 18px;
    height: 18px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.mockup-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, rgba(0, 229, 117, 0.05) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
    filter: blur(20px);
}

.app-mockup {
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 6px solid var(--border-color);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: rgba(18, 24, 36, 0.3);
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-light);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.bg-primary-light {
    background-color: rgba(0, 229, 117, 0.1);
}

.bg-secondary-light {
    background-color: rgba(124, 77, 255, 0.1);
}

.bg-accent-light {
    background-color: rgba(255, 145, 0, 0.1);
}

.feature-icon i {
    width: 28px;
    height: 28px;
}

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

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Calculator Section */
.calculator-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.calc-text h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.calc-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.rate-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 600;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.calc-info-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.bullet i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.calc-widget-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.calc-widget-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrapper {
    display: flex;
    background-color: var(--card-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    align-items: center;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
}

.input-wrapper input {
    flex-grow: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    width: 60%;
}

.input-wrapper input:focus {
    outline: none;
}

.input-wrapper select {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
}

.input-wrapper select:focus {
    outline: none;
}

.swap-divider {
    display: flex;
    justify-content: center;
    margin: -8px 0;
    position: relative;
    z-index: 2;
}

.btn-swap-arrow {
    background-color: var(--secondary-color);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(124, 77, 255, 0.3);
    transition: transform 0.25s ease;
}

.btn-swap-arrow:hover {
    transform: rotate(180deg);
}

.calc-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

/* Download / App Store CTA */
.download-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--card-color) 100%);
    border-top: 1px solid var(--border-color);
}

.download-subtitle {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 16px auto 40px auto;
    font-size: 1.1rem;
    line-height: 1.5;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    min-width: 220px;
}

/* Compliance layout */
.compliance-container {
    padding-top: 40px;
}

.compliance-sidebar {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
}

.compliance-sidebar h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.compliance-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comp-menu-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.comp-menu-btn:hover {
    color: var(--text-primary);
    background-color: var(--card-light);
}

.comp-menu-btn.active {
    color: var(--primary-color);
    background-color: rgba(0, 229, 117, 0.08);
    font-weight: 600;
}

.compliance-content-area {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.tab-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.tab-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.tab-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tab-content li {
    margin-bottom: 8px;
}

.meta-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px !important;
}

.business-info-table {
    margin-top: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
}

.info-val {
    color: var(--text-secondary);
}

/* Footer Section */
.footer {
    background-color: #05080E;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    margin-top: auto;
}

.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;
    line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-link-item {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.footer-link-item:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Keyframes */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 229, 117, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 229, 117, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 229, 117, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .trust-indicators {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    #complianceView.active-view {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Can be toggled on mobile via js class */
    }
    
    .nav-menu.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        gap: 20px;
    }
    
    .btn-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .compliance-content-area {
        padding: 24px;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
}
