:root {
    --bg-color: #0b0f19;
    --text-color: #f3f4f6;
    --primary-color: #00ffcc;
    --primary-rgb: 0, 255, 204;
    --secondary-color: #1e293b;
    --accent-color: #ff0055;
    --accent-blue-rgb: 0, 153, 255;
    --color-white: #ffffff;
    --white-rgb: 255, 255, 255;
    --color-black: #000000;
    --black-rgb: 0, 0, 0;
    --color-glow-end: #a5b4fc;
    --primary-gradient-end: #0099ff;
    --glass-bg: rgba(var(--white-rgb), 0.03);
    --glass-border: rgba(var(--white-rgb), 0.08);
    --gradient-text: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-gradient-end) 100%);
    --gradient-card: linear-gradient(135deg, rgba(var(--white-rgb), 0.05) 0%, rgba(var(--white-rgb), 0.01) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(var(--primary-rgb), 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(var(--accent-blue-rgb), 0.1) 0px, transparent 50%);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-icon {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.logo-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 400;
    transition: color 0.3s ease;
    opacity: 0.8;
}

nav a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-text);
    color: var(--color-black);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--color-white);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(var(--white-rgb), 0.05);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.glow-text {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-glow-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(var(--white-rgb), 0.1);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image-container {
    flex: 1.2;
    position: relative;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: rgba(var(--primary-rgb), 0.15);
    filter: blur(100px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    border-radius: 50%;
}

.hero-img {
    width: 100%;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary-color); /* Leftward border accent from Rails DS */
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: -10px 0 30px rgba(var(--black-rgb), 0.2) !important; /* Leftward shadow from Rails DS */
}

.glass-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    border-left-color: var(--accent-color); /* Dynamic hover on left border */
    box-shadow: -15px 0 40px rgba(var(--primary-rgb), 0.15) !important;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.feature-icon {
    font-size: 2.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    opacity: 0.6;
    font-size: 0.95rem;
}

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

.pricing-card {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--color-white);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.6;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 1rem 0;
}

.pricing-features li {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.contact-item {
    padding: 1rem;
}

.contact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    .hero-btns {
        justify-content: center;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    nav {
        display: none;
    }
}

/* Modal CSS */
.modal {
    display: none !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--black-rgb), 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000 !important;
}

.modal:target {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    animation: modalFadeIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 1;
}

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