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

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    --bg-base: hsl(150, 42%, 6%);
    --bg-surface: hsl(150, 35%, 11%);
    --bg-surface-glass: rgba(12, 28, 20, 0.6);
    --bg-card: rgba(20, 40, 30, 0.45);
    
    --primary: hsl(150, 84%, 48%);       /* Field Neon Green */
    --secondary: hsl(195, 100%, 49%);    /* Tech Cyan-Blue */
    --accent: hsl(170, 95%, 44%);       /* Emerald Glow */
    
    --text-primary: hsl(0, 0%, 100%);
    --text-secondary: hsl(150, 15%, 78%);
    --text-muted: hsl(150, 10%, 55%);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(16, 185, 129, 0.2);
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.35);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* --- PREMIUM GRADIENTS & DECORATIONS --- */
.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 70%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.bg-blur-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.22;
    pointer-events: none;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: var(--primary);
    top: -100px;
    left: -150px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: 10%;
    right: -200px;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    top: 40%;
    left: 30%;
}

/* --- GLASSMORPHISM UTILITIES --- */
.glass-panel {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.6), 0 0 15px rgba(16, 185, 129, 0.1);
}

/* --- NAVIGATION BAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 5%;
    transition: var(--transition-smooth);
    background: rgba(12, 28, 20, 0.2);
}

.navbar.scrolled {
    background: rgba(12, 28, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
}

.logo-img {
    height: 38px;
    width: 38px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #030f0a;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.72rem 1.55rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 10rem 5% 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    min-height: 95vh;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-premium), 0 0 50px rgba(0, 0, 0, 0.4);
    animation: floatAnimation 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* --- SECTION GENERAL --- */
.section {
    padding: 7rem 5%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
}

.section-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* --- FEATURES SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.8rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.98rem;
    color: var(--text-secondary);
}

/* --- INTERACTIVE CALCULATOR --- */
.calc-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: stretch;
}

.calc-inputs {
    padding: 3rem;
}

.calc-form-group {
    margin-bottom: 2rem;
}

.calc-form-group label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.calc-form-group label span {
    color: var(--primary);
}

.slider-input {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 7px;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    outline: none;
    transition: background 0.3s;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    transition: transform 0.2s;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    border-color: rgba(16, 185, 129, 0.15);
}

.result-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-item .label {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.result-item .value {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
}

.result-item.net-profit .value {
    color: var(--primary);
}

.margin-circle-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6;
}

.progress-ring-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 226;
    stroke-dashoffset: 50;
    transition: stroke-dashoffset 0.35s;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.margin-description h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.margin-description p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* --- INTERACTIVE SYNC SIMULATOR --- */
.sync-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 3.5rem;
    border-color: rgba(0, 181, 248, 0.15);
}

.sync-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2rem;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 1.8s infinite;
}

.status-indicator.offline {
    background: hsl(15, 100%, 50%);
    box-shadow: 0 0 10px hsl(15, 100%, 50%);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.btn-toggle-connection {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-toggle-connection:hover {
    border-color: var(--secondary);
    background: rgba(0, 181, 248, 0.08);
}

.sync-demo-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.sync-actions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
}

.btn-action {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
}

.btn-action:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--primary);
    transform: scale(1.02);
}

.btn-action span.icon {
    font-size: 1.5rem;
}

.queue-panel {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.queue-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-badge {
    background: var(--secondary);
    color: #02090c;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.queue-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
    max-height: 240px;
}

.queue-empty-msg {
    margin: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.queue-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    animation: slideIn 0.3s ease-out;
}

.queue-item.synced {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.03);
}

.queue-item-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.queue-item-title {
    font-weight: 600;
    color: var(--text-primary);
}

.queue-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.queue-item-status {
    font-weight: 600;
    font-size: 0.8rem;
}

.queue-item-status.pending {
    color: hsl(40, 100%, 60%);
}

.queue-item-status.synced {
    color: var(--primary);
}

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

/* --- PRICING SECTION --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.12), var(--shadow-premium);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #030f0a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-header {
    margin-bottom: 2rem;
}

.tier-name {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price {
    font-size: 3.2rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 800;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-features {
    margin-bottom: 3rem;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.price-features li span.check {
    color: var(--primary);
    font-weight: bold;
}

.price-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.55;
}

.price-features li.disabled span.check {
    color: var(--text-muted);
}

.pricing-card button {
    width: 100%;
}

/* --- CONTACT SECTION --- */
.contact-container {
    max-width: 620px;
    margin: 0 auto;
}

.contact-form {
    padding: 3.5rem;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 140px;
}

.contact-form button {
    width: 100%;
}

/* --- FOOTER --- */
.footer {
    background: hsl(150, 38%, 4%);
    border-top: 1px solid var(--border-color);
    padding: 5rem 5% 2.5rem 5%;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.8fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info {
    max-width: 320px;
}

.footer-info p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 1.2rem 0 1.8rem 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-column a {
    font-size: 0.92rem;
    color: var(--text-muted);
}

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

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* --- DOCUMENT COMPLIANCE LAYOUTS (PRIVACY & TERMS) --- */
.doc-hero {
    position: relative;
    padding: 9rem 5% 4rem 5%;
    background: linear-gradient(to bottom, hsl(150, 42%, 4%), var(--bg-base));
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.doc-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.doc-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.doc-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 5%;
}

.doc-content section {
    margin-bottom: 3.5rem;
}

.doc-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-content p {
    font-size: 1.02rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.doc-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.doc-content li {
    margin-bottom: 0.6rem;
    font-size: 1.02rem;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 8rem;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .calc-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sync-demo-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(12, 28, 20, 0.95);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 2.5rem;
        gap: 1.8rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-premium);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .section-header h2 {
        font-size: 2.1rem;
    }
    
    .calc-inputs, .calc-results, .sync-container, .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .doc-hero h1 {
        font-size: 2.4rem;
    }
}
