@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-light: #fdfcf8;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --primary: #526d50; /* Deep Sage */
    --primary-light: #8da18a;
    --accent: #e9edc9; /* Light Sage/Cream */
    --live-red: #e63946;
    --text-dark: #2d3436;
    --text-mid: #4a4a4a;
    --text-dim: #636e72;
    --shadow-soft: 0 10px 40px rgba(82, 109, 80, 0.08);
    --shadow-strong: 0 20px 60px rgba(82, 109, 80, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    word-wrap: break-word; /* Safety against long words */
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

/* Common Layout Elements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

section {
    padding: 100px 0;
}

/* Header */
header {
    background: rgba(253, 252, 248, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(82, 109, 80, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo-container {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo-text-top {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
}

.live-badge {
    color: var(--live-red);
    font-weight: 800;
    font-size: 0.85rem;
    padding-left: 15px;
    position: relative;
    text-transform: uppercase;
}

.live-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--live-red);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-mid);
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(82, 109, 80, 0.2);
}

.nav-cta:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Hero Section - Balanced Split Layout */
.hero {
    min-height: 100vh;
    padding: 140px 0 100px;
    background: linear-gradient(to bottom, #fdfcf8, #f5f4ef);
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    display: block;
    transition: 0.5s;
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* Stats */
.stats-section {
    padding: 40px 0;
    background: white;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 5px; }
.stat-item p { font-size: 0.9rem; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Grid Sections (Services / Concept) */
.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-dim);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 0;
    border-radius: 20px;
    border: 1px solid #efefef;
    transition: 0.3s;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.feature-img-wrapper {
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}

.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-body {
    padding: 30px;
}

.feature-card h3 { margin-bottom: 15px; color: var(--primary); }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }

/* Portal / Form Section */
.portal-section {
    background: #f5f4ef;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.portal-card {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--primary); font-size: 0.9rem; }
input {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}
input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(82, 109, 80, 0.1); }

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover { background: #445d42; transform: scale(1.02); }

/* Footer */
footer {
    padding: 80px 0 40px;
    background: #2d3436;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

footer h4 { color: white; margin-bottom: 20px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: #ccc; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .hero .container, .portal-grid, .footer-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero h1 { font-size: 3rem; }
    .feature-grid { grid-template-columns: 1fr; }
    header { height: auto; padding: 20px 0; }
    header .container { flex-direction: column; gap: 20px; }
    
    .footer-content { text-align: center; }
    .footer-info { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
    .stats-grid { flex-direction: column; gap: 30px; }
    nav ul { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .section-title h2 { font-size: 2.2rem; }
    .portal-card { padding: 30px; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 1.8rem; }
    .hero { padding-top: 100px; }
    .logo-text-top { font-size: 1.1rem; }
}