/* --- Global Reset & Variables --- */
:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --border-color: #333333;
    --font-family: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* --- Navigation --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(5, 5, 5, 0.8); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color); transition: background 0.3s ease;
}
.nav-solid { background: rgba(5, 5, 5, 0.95) !important; }

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    height: 80px; display: flex; justify-content: space-between; align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.logo span { color: var(--text-main); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }

/* --- Buttons --- */
.btn {
    padding: 0.6rem 1.5rem; border-radius: 50px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; display: inline-block; text-align: center;
}
.btn-primary { background-color: var(--primary); color: white; border: none; }
.btn-primary:hover { background-color: var(--primary-hover); box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); }
.btn-outline { background-color: transparent; border: 1px solid var(--text-muted); color: white; }
.btn-outline:hover { border-color: white; }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-full { width: 100%; padding: 1rem; font-size: 1.1rem; margin-top: 1rem; }

/* --- Hero Section --- */
.hero { position: relative; padding: 10rem 2rem 6rem; margin: 0 auto; overflow: hidden; }
.hero-bg-glow {
    position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px; background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(5,5,5,0) 70%); z-index: -1;
}
.hero-container { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text { text-align: left; }
.hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; letter-spacing: -2px; margin-bottom: 1.5rem; }
.text-gradient { background: linear-gradient(90deg, #60a5fa, #67e8f9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; }

/* Dashboard Image Styling */
.hero-image-wrapper { position: relative; perspective: 1000px; }
.hero-image {
    width: 100%; border-radius: 12px; border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
    transform: rotateY(-10deg) rotateX(5deg); transition: transform 0.5s ease;
}
.hero-image:hover { transform: rotateY(0deg) rotateX(0deg); }

/* --- Features Section --- */
.features { background-color: #000000; padding: 6rem 2rem; }
.features-header { text-align: center; margin-bottom: 4rem; }
.features-header h2 { font-size: 3rem; margin-bottom: 0.5rem; }
.features-header p { color: var(--text-muted); font-size: 1.2rem; }

.features-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; transition: transform 0.3s, border-color 0.3s; overflow: hidden; }
.card:hover { transform: translateY(-5px); border-color: rgba(37, 99, 235, 0.5); }

.card-image { width: 100%; height: 160px; object-fit: cover; border-bottom: 1px solid var(--border-color); opacity: 0.8; transition: opacity 0.3s; }
.card:hover .card-image { opacity: 1; }

.icon-wrapper { background: #000; width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 1.5rem 0 1rem 1.5rem; border: 1px solid var(--border-color); }
.card h3 { font-size: 1.25rem; margin: 0 1.5rem 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0 1.5rem 1.5rem; }

/* --- Form Box (Shared Demo, Trial, Sign In) --- */
.form-box { background: var(--bg-card); border: 1px solid var(--border-color); padding: 3rem; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.form-box h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: #d1d5db; }
input, select { width: 100%; padding: 0.75rem 1rem; background-color: #000; border: 1px solid var(--border-color); border-radius: 8px; color: white; font-family: var(--font-family); font-size: 1rem; transition: border-color 0.3s; }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2); }

/* Utilities */
.demo-section { padding: 8rem 2rem 4rem; min-height: 100vh; display: flex; justify-content: center; align-items: center; background: radial-gradient(circle at center, rgba(37,99,235,0.05) 0%, var(--bg-dark) 70%); }
.demo-container { width: 100%; max-width: 500px; }
.success-icon { width: 60px; height: 60px; background: rgba(74, 222, 128, 0.1); color: #4ade80; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.5rem; }
.divider { height: 1px; background: var(--border-color); margin: 2rem 0; }
.help-text { color: var(--text-muted); line-height: 1.5; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* --- Trial Page Specific --- */
.trial-body { background-color: var(--bg-dark); }
.trial-section { padding: 8rem 2rem 4rem; min-height: 100vh; display: flex; justify-content: center; align-items: center; }
.trial-grid { max-width: 1200px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.trial-info h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.trial-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 3rem; line-height: 1.6; }
.perk { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.perk-icon { font-size: 1.5rem; color: var(--primary); background: rgba(37, 99, 235, 0.1); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.perk-text h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.perk-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

.step-indicator { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.font-600 { font-weight: 600; color: white; margin-left: 0.5rem; }
.user-profile { display: flex; align-items: center; gap: 1rem; background: rgba(255, 255, 255, 0.05); padding: 1rem; border-radius: 8px; margin-bottom: 2rem; border: 1px solid var(--border-color); }
.avatar { width: 40px; height: 40px; background-color: #a855f7; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.user-name { font-weight: 600; font-size: 1rem; }
.user-email { color: var(--text-muted); font-size: 0.85rem; }

/* Custom Checkbox */
.terms-box { margin-top: 2rem; background: rgba(37, 99, 235, 0.05); padding: 1.5rem; border-radius: 8px; border: 1px solid rgba(37, 99, 235, 0.2); }
.checkbox-container { display: flex; position: relative; padding-left: 35px; cursor: pointer; font-size: 0.85rem; user-select: none; }
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 2px; left: 0; height: 20px; width: 20px; background-color: #000; border: 1px solid var(--border-color); border-radius: 4px; transition: all 0.2s; }
.checkbox-container input:checked ~ .checkmark { background-color: var(--primary); border-color: var(--primary); }
.checkmark:after { content: ""; position: absolute; display: none; }
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.checkbox-container .checkmark:after { left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.terms-text { color: var(--text-muted); line-height: 1.6; }
.terms-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* --- Scroll Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-text { text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-image { transform: none; }
    .trial-grid { grid-template-columns: 1fr; gap: 3rem; }
    .trial-info { text-align: center; }
    .perk { text-align: left; background: var(--bg-card); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color); }
}
@media (max-width: 768px) {
    .nav-links, .sign-in { display: none; }
    .hero h1 { font-size: 3rem; }
    .features-header h2 { font-size: 2rem; }
    .form-row { flex-direction: column; gap: 0; }
}