/* ═══════════════════════════════════════════════════════════
   HisaabKitaab — Main Stylesheet
   Path: /public_html/assets/css/main.css
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    --primary:          #6C63FF;
    --primary-dark:     #5A52D5;
    --primary-light:    #8B85FF;
    --secondary:        #00C9A7;
    --secondary-dark:   #00A88A;
    --accent:           #FF6B6B;
    --accent-dark:      #E85555;
    --bg-dark:          #0B0D17;
    --bg-darker:        #060810;
    --bg-card:          #12141F;
    --bg-card-hover:    #1A1D2E;
    --surface:          #1E2030;
    --text:             #E8E8F0;
    --text-muted:       #8B8CA0;
    --text-dim:         #5A5B6E;
    --border:           #2A2D3E;
    --border-light:     #353850;
    --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #00C9A7 100%);
    --gradient-hero:    linear-gradient(135deg, #0B0D17 0%, #141830 50%, #0B0D17 100%);
    --gradient-card:    linear-gradient(145deg, #12141F 0%, #1A1D2E 100%);
    --gradient-cta:     linear-gradient(135deg, #6C63FF 0%, #8B85FF 50%, #00C9A7 100%);
    --shadow-sm:        0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:        0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg:        0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow:      0 0 30px rgba(108,99,255,0.2);
    --radius-sm:        8px;
    --radius-md:        12px;
    --radius-lg:        20px;
    --radius-xl:        28px;
    --font-primary:     'Poppins', sans-serif;
    --font-body:        'Inter', sans-serif;
    --transition:       all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width:        1200px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ─── Utility Classes ─── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.25);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 16px;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.5);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border-light);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 10px 20px;
}

.btn-ghost:hover {
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.08);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 13, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Features Section ─── */
.features-section {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
}

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

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text);
}

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

/* ─── Plans / Pricing Section ─── */
.plans-section {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 48px;
}

.plan-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.plan-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.plan-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: 16px;
    right: -32px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 40px;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 20px 0;
}

.plan-price .currency {
    font-size: 1.4rem;
    vertical-align: top;
    color: var(--primary-light);
}

.plan-price .amount {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-price .period {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li .check {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.plan-features li .cross {
    color: var(--text-dim);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ─── How It Works Section ─── */
.how-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.12);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text);
}

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

/* Connector line between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(33.33% - 20px);
    right: calc(33.33% - 20px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.3;
}

/* ─── CTA Section ─── */
.cta-section {
    padding: 100px 0;
    background: var(--bg-darker);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Footer ─── */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

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

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ─── Animations ─── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ─── Selection ─── */
::selection {
    background: rgba(108, 99, 255, 0.3);
    color: #fff;
}