:root {
    --bg: #ffffff;
    --panel: #f8fafc;
    --panel-2: #eef2f7;
    --text: #0a0f1d;
    --muted: #475569;
    --primary: #2563eb; /* vibrant blue */
    --accent: #06b6d4;  /* cyan */
    --ok: #16a34a;
    --warn: #d97706;
    --danger: #e11d48
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    color: var(--text);
    background: #ffffff;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif
}

html[dir="rtl"] body {
    font-family: Cairo, Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif
}

body {
    background-image: none;
}

main,
footer {
    position: relative;
    z-index: 1;
}

main section:not(.hero) {
    padding: 10px;
}

a {
    color: inherit;
    text-decoration: none
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px;
    z-index: 1;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.06)
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .3px
}

.brand .logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    /* background: conic-gradient(from 180deg, var(--primary), var(--accent), var(--primary)); */
    box-shadow: 0 10px 30px rgba(109, 211, 255, .2), 0 0 0 2px rgba(167, 139, 250, .2)
}

.nav a {
    color: var(--muted)
}

.nav .links {
    display: flex;
    gap: 18px;
    align-items: center
}

.lang-switcher {
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(37, 99, 235, 0.15);
    cursor: pointer;
}

.lang-switcher:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

html[dir="rtl"] .nav .links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-grid {
    direction: rtl;
}

html[dir="rtl"] .feature-grid,
html[dir="rtl"] .price-grid,
html[dir="rtl"] .cta {
    direction: rtl;
}

html[dir="rtl"] .brand {
    flex-direction: row-reverse;
}

html[dir="rtl"] .floating {
    left: 18px;
    right: auto;
}

html[dir="rtl"] .panel h2::after,
html[dir="rtl"] .panel h3::after {
    margin-right: 0;
}

html[dir="rtl"] .price ul {
    text-align: right;
}

html[dir="rtl"] .badge,
html[dir="rtl"] .tag {
    direction: rtl;
}

html[dir="rtl"] .project-card .btn {
    margin-right: auto;
    margin-left: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0a0f1d;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .25), 0 0 0 1px rgba(6, 182, 212, .15) inset;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(37, 99, 235, .35), 0 0 0 1px rgba(6, 182, 212, .2) inset;
    filter: saturate(110%)
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 26px rgba(109, 211, 255, .25)
}

.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(233, 236, 241, .1)
}

.hero {
    position: relative;
    overflow: hidden
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center
}

.badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(233, 236, 241, .12);
    color: var(--muted);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
    margin: 20px 0 10px 0
}

.headline {
    font-size: 52px;
    line-height: 1.05;
    margin: 8px 0 14px 0;
    font-weight: 800;
    letter-spacing: -.02em
}

.subhead {
    font-size: 18px;
    color: var(--muted);
    max-width: 60ch
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px
}

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

.card {
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
    border: 1px solid rgba(233, 236, 241, .08);
    padding: 18px
}

.card h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: var(--muted);
    font-weight: 600
}

.metric {
    font-size: 28px;
    font-weight: 800
}

.screen {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid rgba(233, 236, 241, .08);
    padding: 14px
}

.screen .header {
    display: flex;
    gap: 8px;
    margin-bottom: 10px
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.dot.r {
    background: #ef4444
}

.dot.y {
    background: #f59e0b
}

.dot.g {
    background: #10b981
}

.code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    color: #cdd6f4;
    line-height: 1.5;
    white-space: pre-wrap
}

.marquee {
    position: absolute;
    inset: auto -40% 10% -40%;
    height: 200px;
    pointer-events: none;
    opacity: .08;
    filter: blur(1px)
}

.marquee .bar {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 18px 0;
    animation: scroll 6s linear infinite
}

@keyframes scroll {
    0% {
        transform: translateX(-30%)
    }

    100% {
        transform: translateX(30%)
    }
}

.features {
    padding: 28px 0
}

.pricing {
    padding: 28px 0
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.feature {
    padding: 22px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease
}

.icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(6, 182, 212, .18));
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(233, 236, 241, .08)
}

.feature h3 {
    margin: 12px 0 6px 0
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
    border-color: #dbe0e6
}

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

.panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.05)
}

/* Catchy gradient headings */
.panel h2,
.panel h3 {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

/* Accent underline for section headers */
.panel h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--primary), var(--accent))
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.price {
    padding: 22px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease
}

.amount {
    font-size: 34px;
    font-weight: 800
}

.strike {
    color: var(--muted);
    text-decoration: line-through
}

.tag {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(233, 236, 241, .12);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
    color: var(--primary);
    font-weight: 700
}

.footer {
    padding: 24px 0;
    color: var(--muted);
    text-align: center
}

.floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40
}

.pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ok), var(--primary));
    color: #0a0f1d;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(52, 211, 153, .25)
}

.pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(closest-side, rgba(109, 211, 255, .28), transparent 70%);
    filter: blur(14px);
    opacity: .6;
    animation: pulse 2.6s ease-in-out infinite
}

@keyframes pulse {

    0%,
    100% {
        opacity: .25;
        transform: scale(.98)
    }

    50% {
        opacity: .8;
        transform: scale(1.02)
    }
}

@media (max-width:960px) {
    .hero-grid {
        grid-template-columns: 1fr
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .grid-2 {
        grid-template-columns: 1fr
    }

    .price-grid {
        grid-template-columns: 1fr
    }

    .headline {
        font-size: 36px
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px
    }
    .container.nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
}

@media (max-width:640px) {
    .stats {
        grid-template-columns: 1fr 1fr
    }

    .headline {
        font-size: 30px
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(10px);
    transition: all .6s cubic-bezier(.2, .8, .2, 1)
}

.fade-up.show {
    opacity: 1;
    transform: none
}

.badge,
.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(233, 236, 241, .12);
    color: var(--muted);
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 20px 0 10px 0;
}

.feature {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
}

.price-grid {
    margin-top: 20px;
}

.price:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
    border-color: #dbe0e6
}

nav .btn {
    color: #EEE !important
}

.headline {
    color: #EEE !important
}

.subhead {
    color: #EEE !important
}

.btn i, .btn span {
    color: #EEE !important
}

.price-grid {
    overflow: auto;
    display: flex;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
        display: none;
    }
}

.price {
    flex: 0 0 auto;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
}

/* Section grouping utilities */
.section { padding: 40px 0; }
.bg-alt { background: linear-gradient(180deg, #f0f9ff, #ecfeff); }
.bg-dark { background: linear-gradient(180deg, #eef2ff, #cffafe); }
.bg-dark .muted { color: #64748b; }
.bg-dark .feature .icon { color: var(--primary); }

/* Expand bands to full container width even inside .container */
.section.band {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 18px;
    border: 1px solid rgba(233, 236, 241, .06);
}

@media (max-width: 800px) {
    .price {
        max-width: 100%;
        min-width: auto;
    }
    .container.nav-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .footer {
        font-size: .85rem;
        padding: 20px 16px;
    }
    .footer div {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .nav-inner {
        padding: 12px 16px;
    }
    
    .nav .links {
        gap: 10px;
    }
    
    .nav .links a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .lang-switcher {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .brand {
        font-size: 14px;
    }
    
    .headline {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .subhead {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta .btn {
        width: 100%;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .panel {
        padding: 20px;
    }
    
    .section {
        padding: 30px 16px;
    }
    
    main section:not(.hero) {
        padding: 16px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .feature .icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .feature h3 {
        font-size: 18px;
    }
    
    .price {
        padding: 20px;
    }
    
    .price h3 {
        font-size: 20px;
    }
    
    .price ul {
        font-size: 14px;
    }
    
    .badge, .tag {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .nav-inner {
        padding: 10px 12px;
    }
    
    .nav .links {
        gap: 8px;
        width: 100%;
        justify-content: space-between;
    }
    
    .nav .links a {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .brand {
        font-size: 13px;
    }
    
    .brand .logo {
        width: 40px;
        height: 40px;
    }
    
    .headline {
        font-size: 24px;
    }
    
    .subhead {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .panel {
        padding: 16px;
    }
    
    .section {
        padding: 20px 12px;
    }
    
    .feature {
        padding: 16px;
    }
    
    .price {
        padding: 16px;
    }
    
    .floating.pill {
        padding: 10px 14px;
        font-size: 12px;
        bottom: 12px;
        right: 12px;
    }
    
    .floating.pill span:not(.pulse) {
        display: none;
    }
    
    .footer {
        font-size: .75rem;
        padding: 16px 12px;
    }
    
    html[dir="rtl"] .floating.pill {
        left: 12px;
        right: auto;
    }
}

section div {
    margin-top: 10px;
    margin-bottom: 10px;
}

.floating.pill {
    color: #EEE !important
}

.tag, .badge {
    color: #EEE !important
}

#features {
    padding: 20px;
}

/* Language Selector Popup */
.lang-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.lang-popup {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    text-align: center;
}

.lang-popup h3 {
    margin: 0 0 32px 0;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.lang-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.lang-btn:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(6, 182, 212, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.lang-btn .lang-flag {
    font-size: 48px;
    line-height: 1;
}

html[dir="rtl"] .lang-popup {
    direction: rtl;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 640px) {
    .lang-popup {
        padding: 32px 24px;
    }
    
    .lang-popup h3 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .lang-popup-buttons {
        flex-direction: column;
    }
    
    .lang-btn {
        width: 100%;
    }
    #signupModal {
        padding-left: unset !important;
    }
}

/* Applies to Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  /* Scrollbar track */
  ::-webkit-scrollbar-track {
    background: transparent; /* or #f1f1f1 for light */
  }
  
  /* Scrollbar thumb (the draggable part) */
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #888, #555);
    border-radius: 8px;
    transition: background 0.3s ease;
  }
  
  /* Hover effect */
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #666, #333);
  }
  
  /* Optional: dark mode tweak */
  @media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, #444, #222);
    }
    ::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, #666, #444);
    }
    ::-webkit-scrollbar-track {
      background: transparent;
    }
  }
  
  /* Optional: make inside modals or tables smaller */
  .scrollable-element::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

