/* --- Variables & Theme Configuration --- */
:root {
    /* Colors */
    --bg-main: #060e20;
    --surface-low: #091328;
    --surface: #0f1930;
    --surface-high: #141f38;
    --surface-highest: #192540;

    --primary: #bd9dff;
    --primary-dim: #8a4cfc;
    --primary-dark: #2e006c;
    --secondary: #9592ff;
    --tertiary: #ffa5d9;

    --text-main: #dee5ff;
    --text-muted: #a3aac4;
    --border-color: rgba(109, 117, 140, 0.2);

    /* Typography */
    --font-head: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Base Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-head);
}

a {
    text-decoration: none;
}

section[id] {
    scroll-margin-top: 5.5rem;
}

/* --- Material Icons Setup --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.fill-icon {
    font-variation-settings: 'FILL' 1;
}

/* --- Layout Containers --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-surface-low {
    background-color: var(--surface-low);
}

/* Grid Systems */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

/* --- Components & Utilities --- */
.text-gradient {
    color: var(--primary);
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.glass-card {
    background: rgba(25, 37, 64, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.w-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dim) 0%, var(--primary) 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(189, 157, 255, 0.2);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-glass {
    background: rgba(25, 37, 64, 0.4);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-glass:hover {
    background: rgba(25, 37, 64, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(189, 157, 255, 0.4);
    color: var(--primary);
}

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

.btn-text {
    background: transparent;
    border: none;
    color: #a78bfa;
    font-weight: 600;
    cursor: pointer;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    height: 5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #eef2ff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    height: 100%;
}

.nav-links a {
    color: rgba(199, 210, 254, 0.7);
    font-weight: 600;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a:hover {
    color: #eef2ff;
}

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

/* Mobile hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.25rem;
    align-items: center;
    justify-content: center;
}

.nav-toggle .material-symbols-outlined {
    font-size: 1.85rem;
}

/* Mobile nav panel */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(9, 15, 32, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 2rem 1.5rem;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: var(--text-main);
    font-weight: 600;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a.btn {
    border-bottom: none;
    text-align: center;
    margin-top: 1rem;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 900px;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem 0;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
}

.glow-1 {
    top: 25%;
    left: 25%;
    background: rgba(138, 76, 252, 0.1);
}

.glow-2 {
    bottom: 25%;
    right: 25%;
    background: rgba(149, 146, 255, 0.1);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 53, 167, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c0bdff;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
}

.image-glow {
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 1rem;
    filter: blur(10px);
    opacity: 0.2;
    transition: opacity 1s;
}

.hero-image-wrapper:hover .image-glow {
    opacity: 0.3;
}

.dashboard-preview {
    position: relative;
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-preview img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
}

/* Hero scrollable dashboard carousel */
.hero-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-carousel::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: #f4f6fb;
}

.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 5;
}

.carousel-arrow:hover {
    background: rgba(25, 37, 64, 0.9);
}

.carousel-arrow.prev {
    left: 0.75rem;
}

.carousel-arrow.next {
    right: 0.75rem;
}

.carousel-dots {
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(222, 229, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* --- General Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Features Section --- */
.features {
    padding: 6rem 0;
}

.feature-card {
    padding: 2.5rem;
    transition: border-color 0.5s;
}

.feature-card:hover {
    border-color: rgba(189, 157, 255, 0.3);
}

.icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.icon-primary {
    background: rgba(178, 140, 255, 0.2);
    color: var(--primary);
}

.icon-secondary {
    background: rgba(59, 53, 167, 0.2);
    color: var(--secondary);
}

.icon-tertiary {
    background: rgba(255, 142, 210, 0.2);
    color: var(--tertiary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* --- Offerings Section (What we Offer, full grid) --- */
.offerings {
    padding: 6rem 0;
}

.offer-group h3 {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-left: 0.25rem;
}

.offer-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.offer-card {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.offer-card .offer-num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    background: rgba(178, 140, 255, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-head);
    font-size: 0.85rem;
}

.offer-card.addon .offer-num {
    background: rgba(255, 142, 210, 0.15);
    color: var(--tertiary);
}

.offer-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

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

.addon-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tertiary);
    background: rgba(255, 142, 210, 0.12);
    border-radius: 9999px;
    padding: 0.1rem 0.6rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* --- Dashboard Showcase Section (Products) --- */
.dashboard-showcase {
    padding: 6rem 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

.showcase-card {
    overflow: hidden;
}

.showcase-card .showcase-media {
    background: #f4f6fb;
    border-bottom: 1px solid var(--border-color);
}

.showcase-card img {
    width: 100%;
    height: auto;
    display: block;
}

.showcase-caption {
    padding: 1.5rem 1.75rem;
}

.showcase-caption h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.showcase-caption p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Pricing Section --- */
.pricing {
    padding: 6rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 920px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--surface-high);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card-featured {
    background: var(--surface-highest);
    border: 2px solid rgba(189, 157, 255, 0.5);
    position: relative;
}

.badge-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-dim) 0%, var(--primary) 100%);
    color: var(--primary-dark);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card-featured .pricing-header h3 {
    color: var(--text-main);
}

.plan-select-group {
    margin-bottom: 1.5rem;
}

.plan-select-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    color: var(--text-muted);
}

.price span {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
}

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

.text-white {
    color: var(--text-main) !important;
}

.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    color: var(--text-muted);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-list .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.25rem;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* --- Target Clientele Section --- */
.clientele {
    padding: 6rem 0;
}

.clientele-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.clientele-card {
    padding: 2.25rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.clientele-card:hover {
    border-color: rgba(189, 157, 255, 0.3);
    transform: translateY(-4px);
}

.clientele-icon {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s;
}

.clientele-card:hover .clientele-icon {
    transform: scale(1.08);
}

.clientele-icon .material-symbols-outlined {
    font-size: 2.75rem;
}

.clientele-card h4 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

/* --- Form Section --- */
.lead-gen {
    padding: 6rem 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.form-bg-glow {
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 16rem;
    height: 16rem;
    background: rgba(189, 157, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.demo-form {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-left: 0.25rem;
}

input,
select {
    width: 100%;
    background: #000;
    /* surface-container-lowest */
    border: 1px solid rgba(109, 117, 140, 0.3);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: all 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: rgba(189, 157, 255, 0.5);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236d758c'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

/* --- Footer --- */
.footer {
    padding: 2.5rem 0;
    background: var(--surface-low);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- Media Queries (Responsiveness) --- */
@media (min-width: 768px) {

    .grid-2-col,
    .form-row {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .section-header h2 {
        font-size: 3rem;
    }

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

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

    .pricing-grid {
        grid-template-columns: 1.2fr 1fr;
        align-items: stretch;
    }
}

@media (min-width: 1024px) {
    .card-featured {
        transform: translateY(-0.5rem);
    }

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


@media (max-width: 767px) {
    .hidden-mobile {
        display: none !important;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 6rem;
        text-align: center;
    }

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

    .button-group {
        justify-content: center;
    }

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

/* Added for success message */
.hidden-message {
    display: none;
    text-align: center;
    color: var(--primary);
    font-weight: bold;
    margin-top: 1rem;
}
