/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --primary: rgb(24, 160, 0);
    --primary-dark: rgb(24, 160, 0);
    --primary-light: rgb(152, 210, 142);
    --secondary: #34B7F1;
    --text-main:white;
    --text-light: white;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-dark: #111827;
    --border: #e5e7eb;

    /* Spacing */
    --container: 1200px;
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 5rem;
    /* 80px */

    /* Typography */
    --font-main: 'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
    --text-main: #f9fafb;
    --text-light: #9ca3af;
    --bg-white: #1f2937;
    --bg-gray: #111827;
    --bg-dark: #000000;
    --border: #374151;

    /* Specific overrides */
    --secondary: #34B7F1;
    /* Keep or adjust */
}

/* Fix for dark mode header blur */
[data-theme="dark"] .header {
    background: rgba(31, 41, 55, 0.9);
}

[data-theme="dark"] .header.scrolled {
    background: #1f2937;
}

/* Fix for dark mode inputs/mockups */
[data-theme="dark"] .phone-mockup {
    border-color: #374151;
    background: #111827;
}

/* Transitions for theming */
body,
.header,
.card,
.feature-card,
.accordion-header,
.btn-secondary,
.pricing-card,
.module-card,
.step-item {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. GLOBAL UTILITIES & COMPONENTS
   ========================================= */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--bg-gray);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
}

.icon-btn {
    gap: 0.5rem;
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-light {
    background:rgb(7, 49, 59);
}

.section-gray {
    background: rgb(4.8, 32.8, 39.6);
}

.section-dark {
    background: rgb(4.8, 32.8, 39.6);
    color: white;
}

.section-cta {
    background: var(--primary);
    color: white;
}

.section-header {
    margin-bottom: 3rem;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

.section-dark .subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Text Utils */
.text-center {
    text-align: center;
}

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

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

/* =========================================
   3. HEADER & NAV
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background:rgb(4.8, 32.8, 39.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle,
.nav-close,
.theme-toggle {
    display: none;
    font-size: 1.5rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-main);
    margin-right: 0.5rem;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: var(--bg-gray);
}

.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
    background: linear-gradient(to bottom, rgb(7, 49, 59), rgb(7, 49, 59));
}

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

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dcfce7;
    color: #15803d;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.trust-item i {
    color: var(--primary);
    margin-right: 0.3rem;
}

/* Hero Visual (Mockup) */
.hero-visual {
    position: relative;
}

.phone-mockup {
    width: 300px;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 8px solid #f3f4f6;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.phone-header {
    background: #075E54;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.phone-avatar {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    color: #075E54;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.phone-info {
    display: flex;
    flex-direction: column;
}

.phone-info .name {
    font-size: 0.9rem;
    font-weight: 600;
}

.phone-info .status {
    font-size: 0.7rem;
    opacity: 0.8;
}

.phone-screen {
    background: #e5ddd5;
    height: 380px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.message {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.msg-received {
    background: white;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.msg-sent {
    background: #dcf8c6;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.time {
    display: block;
    font-size: 0.65rem;
    color: #999;
    text-align: right;
    margin-top: 0.2rem;
}

.phone-input-bar {
    background: #f0f0f0;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fake-input {
    background: white;
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #aaa;
}

.send-btn {
    width: 36px;
    height: 36px;
    background: #075E54;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    z-index: 0;
}

.blob-1 {
    width: 200px;
    height: 200px;
    background: #bbf7d0;
    top: -20px;
    right: -20px;
    background: #bbf7d0;
    animation: float 6s ease-in-out infinite;
}

.blob-2 {
    width: 150px;
    height: 150px;
    background: #bfdbfe;
    bottom: 20px;
    left: -20px;
    animation: float 8s ease-in-out infinite reverse;
}

/* =========================================
   5. FEATURES & CARDS
   ========================================= */
.card {
    background: rgb(4.8, 32.8, 39.6);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgb(4.8, 32.8, 39.6);
    transition: 0.3s;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.icon-red {
    background: #fee2e2;
    color: #ef4444;
}

.icon-orange {
    background: #ffedd5;
    color: #f97316;
}

.icon-purple {
    background: #f3e8ff;
    color: #a855f7;
}

.feature-card {
    background: rgb(7, 49, 59);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    transition: 0.3s;
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.color-green {
    color: var(--primary);
}

.color-blue {
    color: #3b82f6;
}

.color-yellow {
    color: #eab308;
}

.color-purple {
    color: #a855f7;
}

.color-pink {
    color: #ec4899;
}

.color-indigo {
    color: #6366f1;
}

.bg-green-light {
    background: #dcfce7;
    color: #16a34a;
}

.bg-blue-light {
    background: #dbeafe;
    color: #2563eb;
}

.bg-purple-light {
    background: #f3e8ff;
    color: #9333ea;
}

/* =========================================
   6. STEPS & TABS
   ========================================= */
.steps-container {
    position: relative;
    padding: 2rem 0;
}

.step-line {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgb(7, 49, 59);
    z-index: 0;
}

.step-item {
    position: relative;
    background: transparent;
    padding: 0 1rem;
}

.step-number {
    width: 48px;
    height: 48px;
    background: rgb(7, 49, 59);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 0 8px rgb(24, 160, 0);
    /* Fake spacing around line */
}

/* Tabs */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content-wrapper {
    min-height: 400px;
}

.tab-pane {
    animation: fadeIn 0.5s ease;
}

.split-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.split-content {
    flex: 1;
}

.split-media {
    flex: 1;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.check-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
}

.demo-box {
    aspect-ratio: 16/9;
    background: #1f2937;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid #374151;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: 0.3s;
}

.demo-box:hover {
    background: #374151;
}

.play-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* =========================================
   7. PRICING
   ========================================= */
.pricing-container {
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card.main-pricing {
    display: flex;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgb(24, 160, 0);
    border: none;
    flex-direction: column;
}

.pricing-details {
    padding: 3rem;
    flex: 2;
}

.pricing-action {
    background: #111827;
    color: white;
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.credit-list {
    margin-top: 2rem;
}

.credit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.credit-item:last-child {
    border-bottom: none;
}

.credit-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.credit-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.credit-info strong {
    font-size: 0.95rem;
}

.credit-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.credit-cost {
    font-weight: bold;
    color: var(--primary);
}

.pricing-action .price {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    margin: 0.5rem 0;
}

.pricing-action .sub-price {
    opacity: 0.7;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.pricing-action .label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: bold;
}

.secure-text {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.module-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    text-align: center;
}

.module-icon {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* =========================================
   8. TESTIMONIALS & FAQ & FOOTER
   ========================================= */
.testimonial-card {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card p {
    font-style: italic;
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
}

.avatar.h-1 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.avatar.h-2 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.avatar.h-3 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Accordion */
.accordion {
    border-radius: 1rem;
    overflow: hidden;
    background: rgb(7, 49, 59);
    border: 1px solid rgb(7, 49, 59);
}

.accordion-item {
    border-bottom: 1px solid rgb(7, 49, 59);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(7, 49, 59);
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.2s;
    color: white;
}

.accordion-header:hover {
    background: rgb(7, 49, 59);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body .inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: white;
}

.accordion-item.active .accordion-header {
    color: white;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background: rgb(7, 49, 59);
    color: white;
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer h4 {
    color: white;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 2rem;
    font-size: 0.8rem;
}

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
    }

    .header-actions .btn {
        display: none;
    }

    .nav-toggle,
    .theme-toggle {
        display: block;
    }

    .nav-toggle {
        display: block;
    }

    .nav-close {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgb(7, 49, 59)!important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        transition: 0.3s;
        display: flex;
        flex-direction: column;
        z-index: 101;
    }

    .nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.5rem;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
        display: flex;
        justify-content: center;
    }

    .grid-3,
    .grid-4,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .split-layout {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .check-list li {
        justify-content: center;
    }

    .pricing-card.main-pricing {
        flex-direction: column;
    }

    .pricing-details {
        border-bottom: 1px solid var(--border);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .pricing-card.main-pricing {
        flex-direction: row;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes float {

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}
