/* SuperPay Premium Design System */
/* Based on provided Tax Calculator Reference */

:root {
    --color-bg-dark: #0f172a;
    --color-bg-light: #1e293b;
    --color-primary: #0ea5e9;
    --color-primary-hover: #0284c7;
    --color-accent: #22d3ee;
    --color-text-main: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-glass-border: rgba(255, 255, 255, 0.1);
    --color-glass-bg: rgba(30, 41, 59, 0.7);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at top center, var(--color-bg-light), var(--color-bg-dark));
    color: var(--color-text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #bae6fd 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--color-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.6);
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    border-bottom: 1px solid var(--color-glass-border);
    height: 44px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.top-bar-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.top-bar-link:hover {
    color: white;
}

.arrows {
    display: inline-block;
    animation: pointRight 1.5s ease-in-out infinite;
    color: var(--color-primary);
}

@keyframes pointRight {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.6;
    }

    50% {
        transform: translateX(8px);
        opacity: 1;
    }
}

/* Header */
header {
    padding: 1.5rem 0;
    position: absolute;
    top: 44px;
    left: 0;
    width: 100%;
    z-index: 100;
}

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

/* Nav Dropdown */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.dropbtn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 250px;
    top: 100%;
    left: 0;
    z-index: 100;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: transparent;
}

.dropdown-content a {
    color: var(--color-text-main);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background: rgba(14, 165, 233, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.logo img {
    height: 60px;
    width: auto;
    border: 1px solid var(--color-glass-border);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 60px;
    position: relative;
}

.hero-sub-link {
    margin-bottom: 0.75rem;
}

.hero-sub-link a {
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.hero-sub-link a:hover {
    color: #fff;
    transform: translateX(5px);
}

.arrows {
    display: inline-block;
    animation: pointingRight 1.5s ease-in-out infinite;
    color: var(--color-primary);
}

@keyframes pointingRight {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.7;
    }

    50% {
        transform: translateX(10px);
        opacity: 1;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-glass-border);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features Grid */
.features {
    padding: 50px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* Main Content Split */
.split-section {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-section.reverse {
    direction: rtl;
    /* Simple way to swap, but better to use order or grid areas for text direction control */
}

.split-section.reverse>* {
    direction: ltr;
}

/* Pricing */
.pricing {
    padding: 60px 0;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    padding: 3rem 2rem;
    background: rgba(30, 41, 59, 0.4);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--color-primary);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

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

/* Contact */
.contact-section {
    padding: 60px 0;
    text-align: center;
}

.contact-image {
    max-width: 600px;
    margin: 2rem auto;
}

.contact-panel {
    padding: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-panel {
        padding: 2rem;
    }

    .contact-panel img {
        max-width: 80% !important;
        margin: 1rem auto !important;
        display: block !important;
        width: 250px;
    }

    .contact-panel h2 {
        font-size: 1.75rem;
    }
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--color-glass-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Menu Toggle default hidden */
.menu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {

    .hero-content,
    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu Styles */
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--color-text-main);
    }

    .nav-links {
        position: fixed;
        right: 0;
        transform: translateX(100%);
        top: 0;
        flex-direction: column;
        background: var(--color-bg-dark);
        width: 70%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding-top: 100px;
        z-index: 1000;
        gap: 2rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Make dropdowns static in drawer */
    .dropdown:hover .dropdown-content {
        display: none;
        /* Disable hover on mobile */
    }

    .dropdown-content {
        position: static;
        display: block;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 0;
        margin-top: 0;
    }

    .dropbtn {
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--color-accent);
    }
}

/* Utility Classes to replace inline styles */
.d-block {
    display: block !important;
}

.d-inline-block {
    display: inline-block !important;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-05 {
    margin-top: 0.5rem;
}

.m-0 {
    margin: 0;
}

.fw-400 {
    font-weight: 400;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fs-08 {
    font-size: 0.8rem;
}

.fs-09 {
    font-size: 0.9rem;
}

.fs-11 {
    font-size: 1.1rem;
}

.fs-15 {
    font-size: 1.5rem;
}

.fs-25 {
    font-size: 2.5rem;
}

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

.text-white {
    color: #fff;
}

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

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

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 1rem;
}

.gap-15 {
    gap: 1.5rem;
}

.gap-125 {
    gap: 1.25rem;
}

.gap-05 {
    gap: 0.5rem;
}

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

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.w-100 {
    width: 100%;
}

.max-w-300 {
    max-width: 300px;
}

.max-w-600 {
    max-width: 600px;
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.list-none {
    list-style: none;
}

.pos-abs {
    position: absolute;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.left-0 {
    left: 0;
}

.opacity-07 {
    opacity: 0.7;
}

.rounded-24 {
    border-radius: 24px;
}

.rounded-12 {
    border-radius: 12px;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.border-glass {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-glass {
    background: rgba(255, 255, 255, 0.1);
}

.bg-accent-light {
    background: rgba(34, 211, 238, 0.15);
}

.bg-white-light {
    background: rgba(255, 255, 255, 0.1);
}

.border-0 {
    border: 0;
}

.h-1 {
    height: 1px;
}

.bg-white-very-light {
    background: rgba(255, 255, 255, 0.1);
}

.h-full {
    height: 100%;
}

.w-6 {
    width: 6px;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.min-w-100 {
    min-width: 100px;
}

/* Specific components from inline styles */
.hero-announcement {
    display: block;
    margin: 1rem 0;
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1.1em;
}

.pricing-info-panel {
    max-width: 800px;
    margin: 3rem auto 0 auto;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.pricing-info-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-left-radius: 12px;
}

/* Floating Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-text-main);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
    border: 1px solid var(--color-glass-border);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
    transform: translateY(-5px) scale(1.1);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}