/* --- 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;
}

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;
}

/* --- 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);
}

.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;
}

.nav-links a {
    color: rgba(199, 210, 254, 0.7);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover { color: #eef2ff; }

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* --- 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;
}

/* --- 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);
}

/* --- Pricing Section --- */
.pricing {
    padding: 6rem 0;
}

.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: 2rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card-featured .pricing-header h3 { color: var(--text-main); }

.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);
}

.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;
}

/* --- 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: 3rem 0;
    background: #1e1b4b; /* indigo-950 */
    border-top: 1px solid rgba(49, 46, 129, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(165, 180, 252, 0.6);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: #c4b5fd; }

.copyright {
    color: rgba(165, 180, 252, 0.6);
    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; }
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .card-featured { transform: translateY(-1rem); }
}

@media (max-width: 767px) {
    .hidden-mobile { display: none !important; }
    .hero { padding-top: 6rem; text-align: center; }
    .hero-text { align-items: center; }
    .button-group { justify-content: center; }
}