:root {
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --primary: #8b5cf6;
    --primary-glow: #8b5cf680;
    --secondary: #06b6d4;
    --accent: #f43f5e;
    --text-main: #f8fafc;
    --text-soft: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.text-center {
    text-align: center;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --- NAV --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s;
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links a {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    margin-left: 32px;
}

.nav-links a:hover {
    color: #fff;
}

/* --- LOGO MARQUEE --- */
.trusted-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.4);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 80px;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 80px;
    min-width: 100%;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 80px));
    }
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    filter: grayscale(1) opacity(0.5);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    white-space: nowrap;
}

.logo-item:hover {
    filter: grayscale(0) opacity(1);
}

.logo-item i {
    font-size: 28px;
    color: var(--primary);
}

.logo-item span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
    color: #fff;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 800px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, rgba(2, 6, 23, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 13px;
    color: #c4b5fd;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.badge-new span {
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s 0.2s backwards;
    background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-soft);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s 0.4s backwards;
}

.hero-mockup {
    margin-top: 80px;
    position: relative;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeInUp 1s 0.6s backwards;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(2deg);
    transition: 0.5s;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.hero-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- FEATURES GRID --- */
.features {
    padding: 100px 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-head h2 {
    font-size: 42px;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-head p {
    font-size: 18px;
    color: var(--text-soft);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    grid-auto-rows: minmax(300px, auto);
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.bento-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(to bottom, #0f172a, #1e1b4b);
}

.bento-wide {
    grid-column: span 2;
}

.bi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
}

.bi-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.bi-desc {
    color: var(--text-soft);
    font-size: 15px;
}

/* Feature Specifics */
.ai-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ec4899, transparent);
    animation: scan 3s infinite linear;
    z-index: 10;
}

@keyframes scan {
    0% {
        top: 0
    }

    100% {
        top: 100%
    }
}

.ai-mini-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress {
    height: 100%;
    border-radius: 2px;
}

.micro-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-soft);
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* --- INTERACTIVE BENTO ELEMENTS --- */
.mini-cal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.mini-cal-day {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
    min-height: 110px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-cal-day::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    top: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
}

.mini-cal-day.drag-over {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mini-cal-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-appointment {
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: grab;
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    position: relative;
    transition: transform 0.2s;
}

.mini-appointment i {
    font-size: 14px;
    opacity: 0.9;
}

.mini-appointment:active {
    cursor: grabbing;
    transform: scale(0.96) rotate(-2deg);
}

.mini-finance-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.finance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s;
}

.finance-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.finance-item input {
    margin-right: 12px;
    accent-color: var(--primary);
    pointer-events: none;
}

.finance-item span:last-child {
    color: #10b981;
    font-weight: 700;
}

.finance-total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 18px;
    padding-top: 18px;
}

.total-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.finance-total-val {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.finance-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.finance-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 66%;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- SMS Interaction --- */
.sms-preview {
    margin-top: 24px;
    position: relative;
    height: 120px;
    perspective: 1000px;
}

.sms-bubble {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    position: absolute;
    width: 90%;
    left: 5%;
    transform-origin: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.02);
    animation: smsPremiumFlow 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.sms-bubble-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sms-app-icon {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
}

.sms-app-name {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.sms-time {
    font-size: 10px;
    color: var(--text-soft);
    margin-left: auto;
}

.sms-bubble-body {
    font-size: 11px;
    color: #e2e8f0;
    line-height: 1.5;
    font-weight: 500;
}

.sms-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-size: 10px;
    margin-top: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@keyframes smsPremiumFlow {
    0% {
        transform: translateY(40px) scale(0.9) rotateX(-10deg);
        opacity: 0;
    }

    10% {
        transform: translateY(0) scale(1) rotateX(0deg);
        opacity: 1;
    }

    85% {
        transform: translateY(0) scale(1) rotateX(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
}

/* --- ANALYTICS INTERACTION --- */
.mini-chart-container {
    margin-top: 20px;
    height: 80px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), #a78bfa);
    border-radius: 4px 4px 0 0;
    animation: barGrow 2s ease-in-out infinite alternate;
    opacity: 0.7;
}

@keyframes barGrow {
    from {
        height: 30%;
    }

    to {
        height: 100%;
    }
}

/* --- STAFF INTERACTION --- */
.mini-staff-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.staff-mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.staff-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
}

.staff-status-pulse {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* --- CLOUD INTERACTION --- */
.mini-cloud-sync {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list li.disabled {
    opacity: 0.5;
    text-decoration: line-through;
    color: var(--text-soft);
}

.check-list li.disabled i {
    color: #ef4444;
}

.sync-icon-wrap {
    font-size: 18px;
    color: var(--secondary);
    animation: rotateSync 3s linear infinite;
}

@keyframes rotateSync {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.encrypted-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-left: auto;
}

/* --- AI SHOWCASE --- */
.ai-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #020617, #0f0529);
    overflow: hidden;
}

.ai-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ai-visual-wrap {
    position: relative;
    height: 600px;
}

.ai-visual-card {
    position: absolute;
    border-radius: 24px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.card-1 {
    top: 0;
    left: 40px;
    width: 80%;
    z-index: 1;
}

.card-2 {
    top: 180px;
    right: 0;
    width: 60%;
    z-index: 2;
    border-color: rgba(236, 72, 153, 0.3);
}

/* --- PRICING --- */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 40px auto 0;
    align-items: stretch;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-active {
    background: linear-gradient(145deg, rgba(30, 27, 75, 0.5), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--primary-glow);
    box-shadow: 0 0 60px -20px var(--primary-glow);
    transform: scale(1.02);
    z-index: 10;
}

.badge-save {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-tag {
    font-size: 48px;
    font-weight: 800;
    margin: 24px 0;
    color: #fff;
}

.price-period {
    font-size: 16px;
    color: var(--text-soft);
    font-weight: 500;
    margin-left: 4px;
}

.check-list {
    text-align: left;
    margin: 32px 0;
    list-style: none;
}

.check-list li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
}

.check-list i {
    color: #10b981;
    font-size: 20px;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 40px;
    background: #020617;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media(max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large,
    .bento-wide {
        grid-column: span 2;
    }

    .ai-split {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 48px;
    }
}

@media(max-width: 768px) {

    /* Nav */
    .nav {
        padding: 10px 0;
        background: rgba(2, 6, 23, 0.95);
    }

    .nav .container {
        flex-wrap: nowrap;
        /* Keep on one line */
        justify-content: space-between;
        gap: 10px;
    }

    .nav-links {
        display: none;
    }

    .nav-logo {
        font-size: 18px;
        white-space: nowrap;
    }

    /* Resize Nav Buttons */
    .nav .btn {
        padding: 8px 14px;
        font-size: 12px;
        height: 36px;
        /* Fixed height for consistency */
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.1;
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .hero-mockup {
        transform: none !important;
        margin-top: 30px;
    }

    /* Mobile Hero Buttons - Fix "Tombul" look */
    .hero .d-flex {
        flex-direction: column;
        /* Stack them on mobile for better fit */
        width: 100%;
        gap: 12px;
    }

    .hero .btn {
        width: 100%;
        /* Full width for touch targets */
        padding: 12px 20px !important;
        /* Override inline styles */
        font-size: 14px !important;
        justify-content: center;
        max-width: 300px;
        /* Prevent being too wide on tablets */
        margin: 0 auto;
        /* Center align */
    }

    /* Bento Grid - Stack Single Column */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-wide,
    .bento-tall,
    .bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* AI Section */
    .ai-visual-wrap {
        height: 400px;
    }

    /* PRICING - STACK VERTICALLY */
    .pricing-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .pricing-card {
        width: 100%;
        max-width: 100%;
    }
}

.check-list li.disabled {
    opacity: 0.5;
    text-decoration: line-through;
    color: var(--text-soft);
}

.check-list li.disabled i {
    color: #ef4444;
}