/* DocPlant — Modern Redesign */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #fefdfb;
    --bg-alt: #f8f5f0;
    --surface: #ffffff;
    --surface-hover: #f5f2ed;
    --border: #e5dfd6;
    --text: #2a2520;
    --text-muted: #6b6058;
    --text-dim: #9a9088;
    --green: #7ab52e;
    --green-light: #8ec73d;
    --green-dark: #5f8f20;
    --orange: #f08c00;
    --orange-light: #ff9d01;
    --accent-glow: rgba(142, 199, 61, 0.10);
    --orange-glow: rgba(255, 157, 1, 0.10);
    --gradient-1: #5f8f20;
    --gradient-2: #8ec73d;
    --gradient-3: #a8d85e;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { color: var(--green-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }

/* --- Navigation --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}
.nav.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
}
.logo-img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
    letter-spacing: 0.02em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: linear-gradient(135deg, var(--green), var(--green-dark)) !important;
    color: #fff !important; padding: 10px 24px; border-radius: 8px;
    font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; color: #fff !important; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s; border-radius: 1px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding: 120px 24px 80px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(142,199,61,0.08), transparent 70%),
                radial-gradient(ellipse 60% 50% at 70% 60%, rgba(255,157,1,0.05), transparent 60%);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(142,199,61,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(142,199,61,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-badge {
    display: inline-block; padding: 8px 20px; border-radius: 100px;
    background: rgba(142,199,61,0.08); border: 1px solid rgba(142,199,61,0.25);
    color: var(--green-dark); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 32px;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800;
    line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--green), var(--orange));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem; line-height: 1.7; color: var(--text-muted);
    max-width: 640px; margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 10px; font-weight: 600;
    font-size: 0.95rem; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff; box-shadow: 0 4px 24px rgba(142,199,61,0.25);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(142,199,61,0.35); transform: translateY(-1px); color: #fff; }
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--green); color: var(--green-light); }
.btn-full { width: 100%; justify-content: center; }

.hero-stats { display: flex; justify-content: center; gap: 48px; }
.stat { text-align: center; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--green-dark); display: block; }
.stat-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* --- Sections --- */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--green);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
    line-height: 1.15; letter-spacing: -0.02em;
}
.section-desc {
    max-width: 600px; margin: 20px auto 0; color: var(--text-muted);
    font-size: 1.05rem; line-height: 1.7;
}

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-lead { font-size: 1.1rem; line-height: 1.8; color: var(--text); margin-bottom: 16px; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.about-image {
    margin-top: 24px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border);
}
.about-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.timeline-item {
    display: flex; align-items: baseline; gap: 24px; padding: 16px 20px;
    border-left: 2px solid var(--border); margin-left: 8px;
    transition: all 0.3s;
}
.timeline-item:hover, .timeline-item.active {
    border-left-color: var(--green); background: var(--accent-glow); border-radius: 0 8px 8px 0;
}
.timeline-year {
    font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; font-weight: 600;
    color: var(--green); min-width: 40px;
}
.timeline-text { font-size: 0.9rem; color: var(--text-muted); }

/* --- Products --- */
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 36px 28px;
    transition: all 0.4s ease;
}
.product-card:hover {
    border-color: rgba(142,199,61,0.4);
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}
.product-card.featured {
    border-color: rgba(142,199,61,0.2);
    background: linear-gradient(135deg, rgba(142,199,61,0.04), rgba(255,157,1,0.02));
}
.product-icon {
    width: 48px; height: 48px; margin-bottom: 20px;
    color: var(--green-light);
}
.product-icon svg { width: 100%; height: 100%; }
.product-badge {
    display: inline-block; padding: 4px 12px; border-radius: 6px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; margin-bottom: 12px;
    background: rgba(142,199,61,0.10); color: var(--green-dark);
    border: 1px solid rgba(142,199,61,0.2);
}
.product-card h3 {
    font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em;
}
.product-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.product-features {
    list-style: none; margin-top: 20px; padding-top: 20px;
    border-top: 1px solid var(--border);
}
.product-features li {
    font-size: 0.82rem; color: var(--text-muted); padding: 6px 0;
    padding-left: 20px; position: relative;
}
.product-features li::before {
    content: ''; position: absolute; left: 0; top: 14px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}

/* --- Services --- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 36px 28px;
    transition: all 0.4s ease;
}
.service-card:hover {
    border-color: rgba(142,199,61,0.3);
    transform: translateY(-2px);
}
.service-number {
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
    font-weight: 700; color: var(--green); margin-bottom: 16px;
}
.service-card h3 {
    font-size: 1.15rem; font-weight: 700; margin-bottom: 12px;
}
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* --- Ventures / Co-founded --- */
.ventures-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.ventures-grid.ventures-single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.venture-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 40px 32px;
    transition: all 0.4s ease;
}
.venture-card:hover {
    border-color: rgba(255,157,1,0.3);
    box-shadow: 0 8px 40px rgba(255,157,1,0.06);
}
.venture-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.venture-card .venture-role {
    font-size: 0.8rem; color: var(--orange); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.venture-card .venture-role a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.venture-card .venture-role a:hover { color: var(--green); }
.venture-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.venture-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; font-weight: 600; color: var(--orange);
}
.venture-link:hover { color: var(--orange-light); }

/* --- Markers/Insights --- */
.markers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.marker-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    transition: all 0.4s ease;
}
.marker-card:hover {
    border-color: rgba(255,157,1,0.3);
    transform: translateY(-2px);
}
a.marker-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.marker-img {
    height: 160px; background-size: cover; background-position: center;
    border-bottom: 1px solid var(--border);
}
.marker-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.marker-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.marker-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.marker-link {
    margin-top: auto; padding-top: 16px;
    font-size: 0.8rem; font-weight: 600; color: var(--orange);
    transition: color 0.2s;
}
a.marker-card:hover .marker-link { color: var(--orange-light); }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-dim);
}
.contact-item a, .contact-item span { color: var(--text-muted); font-size: 0.95rem; }
.contact-item a:hover { color: var(--green-light); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 18px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); font-size: 0.9rem; font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--green);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }

/* --- Footer --- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-content {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand p { color: var(--text-dim); font-size: 0.8rem; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--text-dim); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy p { color: var(--text-dim); font-size: 0.8rem; }

/* --- Article Page --- */
.article-hero {
    padding: 140px 24px 60px; text-align: center;
    background: var(--bg-alt); position: relative; overflow: hidden;
}
.article-hero-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.15;
}
.article-hero .container { position: relative; z-index: 1; }
.article-hero .section-tag { margin-bottom: 16px; }
.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
    line-height: 1.2; letter-spacing: -0.02em; max-width: 700px; margin: 0 auto;
}
.article-content {
    max-width: 720px; margin: 0 auto; padding: 60px 24px 100px;
}
.article-content p {
    color: var(--text-muted); font-size: 1.05rem; line-height: 1.85;
    margin-bottom: 20px;
}
.article-content p:first-child {
    font-size: 1.15rem; color: var(--text);
}
.article-content h3 {
    font-size: 1.2rem; font-weight: 700; color: var(--text);
    margin: 36px 0 16px;
}
.article-content ul, .article-content ol {
    color: var(--text-muted); font-size: 1rem; line-height: 1.85;
    margin: 16px 0 20px 24px;
}
.article-content li { margin-bottom: 8px; }
.article-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; font-weight: 600; color: var(--green);
    margin-bottom: 40px;
}
.article-back:hover { color: var(--green-light); }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .markers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(254, 253, 251, 0.98); flex-direction: column;
        align-items: center; justify-content: center; gap: 32px;
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }
    .hero { padding: 100px 20px 60px; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.8rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .products-grid, .services-grid, .markers-grid, .ventures-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
