/* Root Variables for Premium Palette and System Settings */
:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(26, 36, 56, 0.85);
    --primary: #10b981; /* Emerald Green */
    --primary-glow: rgba(16, 185, 129, 0.15);
    --primary-hover: #059669;
    --accent: #34d399; /* Mint Green */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(16, 185, 129, 0.3);
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Custom Grid Utility */
.grid {
    display: grid;
    gap: 2.5rem;
}

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

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-accent {
    color: var(--primary);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-btn {
    text-decoration: none;
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.bg-alt {
    background-color: #0d1321;
}

.section-header {
    margin-bottom: 4rem;
}

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

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1.25rem auto 0;
    border-radius: 2px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.1);
}

/* Domain Explanation Section Details */
.domain-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.domain-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.card-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.domain-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.domain-explanation {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

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

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Elwareco Showcase Section Details */
.subsection-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.elwareco-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.features-list li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.25rem;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text {
    font-size: 1rem;
    color: var(--text-muted);
}

.feature-text strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
}

/* Visual Plant Container Styling */
.elwareco-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 60%);
    animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.plant-preview-card {
    position: relative;
    z-index: 2;
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2rem;
    border-radius: 12px;
    max-width: 80%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.plant-badge {
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
}

.plant-content h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.plant-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Call to Action (CTA) Section */
.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-top: 1px solid var(--border-color);
}

.cta-container {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-buttons {
    margin-bottom: 2rem;
}

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

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--primary);
    transition: var(--transition-smooth);
}

.text-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Footer Section */
.main-footer {
    background-color: #060911;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

@media (max-width: 640px) {
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary);
}

.separator {
    color: rgba(255, 255, 255, 0.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
