/* ============================================
   EVERYDAY GOODS — Design System
   Phthalo Green + Mantis Green Dark Theme
   ============================================ */

:root {
    /* Backgrounds — Phthalo Green base */
    --bg: #10342C;
    --bg-card: #153D34;
    --bg-elevated: #1A463C;

    /* Borders */
    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.1);

    /* Text */
    --text: #F3F7F0;
    --text-secondary: #9FAEAB;
    --text-muted: #8A9E9A;

    /* Accent — Mantis Green */
    --accent: #89C92C;
    --accent-hover: #7BB825;
    --accent-subtle: rgba(137,201,44,0.08);
    --accent-border: rgba(137,201,44,0.2);

    /* Secondary accents */
    --accent-orange: #F64740;
    --accent-blue: #068CD1;

    /* Mantis Gradient */
    --gradient-mantis: linear-gradient(135deg, #89C92C 0%, #BDE529 100%);

    /* Utility */
    --white: #FFFFFF;

    /* Fonts — Lora (serif) for headings, Open Sans for body */
    --font-display: 'Lora', Georgia, serif;
    --font-body: 'Open Sans', system-ui, sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(16,52,44,0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 56px;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text);
    font-family: var(--font-display); font-weight: 700;
    font-size: 17px; letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
    color: var(--text-muted); text-decoration: none;
    font-size: 13px; font-weight: 500; transition: color 0.1s;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links .btn-primary { color: var(--bg); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }
.mobile-nav {
    display: none; position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    padding: 16px 24px; flex-direction: column; gap: 12px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    font-family: var(--font-body); transition: background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--gradient-mantis); color: var(--bg); border: none; }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.15); }
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--accent-blue); color: var(--white); }
.btn-accent { background: var(--gradient-mantis); color: var(--bg); font-weight: 700; border: none; }
.btn-accent:hover { opacity: 0.88; }
.btn-white { background: var(--white); color: var(--bg); }
.btn-white:hover { opacity: 0.85; }
.btn-lg { padding: 11px 24px; font-size: 14px; border-radius: 10px; }

/* Gradient text for accent highlights */
.text-gradient {
    background: var(--gradient-mantis);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- HERO ---- */
.hero {
    padding: 140px 24px 72px; text-align: center;
    border-bottom: 1px solid var(--border); position: relative;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 4px;
    font-size: 12px; font-weight: 600; margin-bottom: 20px;
    border: 1px solid var(--accent-border);
    background: var(--accent-subtle); color: var(--accent);
}
.hero h1 {
    font-family: var(--font-display); font-size: 54px; font-weight: 800;
    line-height: 1.04; letter-spacing: -0.04em;
    max-width: 620px; margin: 0 auto 18px;
}
.hero p {
    font-size: 16px; color: var(--text-secondary);
    max-width: 420px; margin: 0 auto 32px; line-height: 1.55;
}
.hero-buttons { display: flex; gap: 10px; justify-content: center; }
.hero-glow {
    position: absolute; top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 250px; border-radius: 50%;
    filter: blur(100px); opacity: 0.12;
    pointer-events: none; z-index: -1;
    background: var(--accent);
}

/* ---- LOGO BAR ---- */
.logo-bar { padding: 32px 24px; border-bottom: 1px solid var(--border); }
.logo-bar-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    gap: 36px; flex-wrap: wrap;
}
.logo-bar-inner span {
    font-family: var(--font-display); font-weight: 700;
    font-size: 14px; color: rgba(255,255,255,0.18);
    letter-spacing: -0.01em;
}

/* ---- SECTION UTILITIES ---- */
.section { padding: 80px 24px; }
.section-border { border-top: 1px solid var(--border); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
    font-size: 12px; font-weight: 650; text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 12px; color: var(--accent);
}
.section-header { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-header h2 {
    font-family: var(--font-display); font-size: 28px; font-weight: 800;
    letter-spacing: -0.035em; margin-bottom: 10px;
}
.section-header p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ---- BENTO GRID ---- */
.bento { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.bento-grid {
    display: grid; gap: 1px;
    background: var(--border-strong);
    border: 1px solid var(--border-strong);
    border-radius: 2px; overflow: hidden;
}
.bento-3 { grid-template-columns: repeat(3, 1fr); }
.bento-2 { grid-template-columns: 1fr 1fr; }
.bento-2-1 { grid-template-columns: 1.3fr 0.7fr; }
.bento-1-2 { grid-template-columns: 0.7fr 1.3fr; }
.bento-4 { grid-template-columns: repeat(4, 1fr); }
.bento-5 { grid-template-columns: repeat(5, 1fr); }
.bento-cell {
    background: var(--bg-card); padding: 32px;
    display: flex; flex-direction: column;
    min-height: 200px; position: relative; overflow: hidden;
}
.bento-cell.tall { min-height: 320px; }
.bento-cell.short { min-height: auto; }
.bento-cell.no-pad-bottom { padding-bottom: 0; }
.bento-cell.elevated { background: var(--bg-elevated); }
.bento-cell h2 {
    font-family: var(--font-display); font-size: 26px; font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 8px;
}
.bento-cell h3 {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 6px;
}
.bento-label {
    font-size: 12px; font-weight: 650; text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 12px; color: var(--accent);
}
.bento-cell .sub { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
/* Arrow links — general + bento-scoped */
.arrow { margin-top: auto; padding-top: 16px; }
.arrow a {
    color: var(--accent); text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 500; transition: color 0.15s, gap 0.15s;
}
.arrow a:hover { color: var(--text); gap: 8px; }
.bento-cell .arrow { margin-top: auto; padding-top: 16px; }
.bento-cell .arrow a { color: var(--text-muted); }
.bento-cell .arrow a:hover { color: var(--text); }

/* ---- SECTION SPACER ---- */
.section-spacer { height: 80px; display: flex; align-items: center; justify-content: center; }
.section-spacer h2 {
    font-family: var(--font-display); font-size: 28px; font-weight: 800;
    letter-spacing: -0.035em; text-align: center;
}
.section-spacer h2 span { color: var(--accent); }

/* ---- VISUAL COMPONENTS ---- */
.visual { flex: 1; display: flex; align-items: flex-end; justify-content: center; margin-top: 16px; position: relative; }

.pill-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
    padding: 5px 12px; border-radius: 4px;
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    font-size: 12px; font-weight: 600;
    color: var(--text-secondary); font-family: var(--font-body);
}
.pill.active { border-color: var(--accent-border); color: var(--accent); }

.flow-visual { display: flex; align-items: center; gap: 0; width: 100%; }
.flow-step {
    flex: 1; padding: 10px 12px;
    border: 1px solid var(--border-strong); border-radius: 2px;
    background: var(--bg-elevated); text-align: center;
    font-size: 11px; font-weight: 600;
    color: var(--text-secondary); font-family: var(--font-body);
}
.flow-step.active { border-color: var(--accent-border); color: var(--accent); }
.flow-arrow { padding: 0 6px; color: var(--text-muted); font-size: 14px; flex-shrink: 0; }

.terminal {
    width: 100%; border: 1px solid var(--border-strong);
    border-radius: 4px; background: var(--bg); overflow: hidden;
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 11px;
}
.terminal-bar { padding: 8px 12px; border-bottom: 1px solid var(--border); display: flex; gap: 5px; }
.terminal-dot { width: 8px; height: 8px; border-radius: 50%; }
.terminal-body { padding: 12px 14px; line-height: 1.7; color: var(--text-muted); }
.terminal-body .cmd { color: var(--text-secondary); }
.terminal-body .accent { color: var(--accent); }
.terminal-body .dim { color: var(--text-muted); }

.metric-cell .num {
    font-family: var(--font-display); font-size: 28px; font-weight: 800;
    letter-spacing: -0.03em; margin-bottom: 2px; color: var(--accent);
}
.metric-cell .label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.network-line { stroke: var(--accent); opacity: 0.3; }

.icon-box {
    width: 32px; height: 32px; border-radius: 4px;
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.icon-box svg { color: var(--text-muted); }

/* ---- CTA ---- */
.cta, .cta-section {
    padding: 80px 24px; text-align: center;
    border-top: 1px solid var(--border); position: relative;
}
.cta h2, .cta-section h2, .cta-inner h2 {
    font-family: var(--font-display); font-size: 32px; font-weight: 800;
    letter-spacing: -0.03em; margin-bottom: 10px;
}
.cta p, .cta-section p, .cta-inner p {
    font-size: 14px; color: var(--text-secondary); margin-bottom: 28px;
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.footer { padding: 48px 24px 24px; border-top: 1px solid var(--border); }
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: start;
    gap: 40px;
}
.footer-brand { flex-shrink: 0; max-width: 260px; }
.footer-brand .nav-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text);
    font-family: var(--font-display); font-weight: 700;
    font-size: 15px; margin-bottom: 12px;
}
.footer-brand p, .footer p {
    font-size: 13px; color: var(--text-muted);
    margin-top: 10px; max-width: 260px; line-height: 1.5;
}
/* Grid layout for footer columns */
.footer-grid {
    display: grid; grid-template-columns: repeat(3, auto); gap: 40px;
}
.footer-grid h4, .footer-col h4 {
    font-size: 12px; font-weight: 650; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 12px;
}
.footer-grid ul, .footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a, .footer-col a, .footer-links a {
    display: block; font-size: 13px; color: var(--text-muted);
    text-decoration: none; margin-bottom: 8px; transition: color 0.1s;
}
.footer-grid a:hover, .footer-col a:hover, .footer-links a:hover { color: var(--text); }
/* Vertical list for footer link columns */
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
    max-width: 1100px; margin: 28px auto 0;
    padding-top: 20px; border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-muted);
    display: flex; justify-content: space-between;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero p { max-width: 100%; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .bento-3, .bento-2, .bento-2-1, .bento-1-2 { grid-template-columns: 1fr; }
    .bento-4 { grid-template-columns: 1fr 1fr; }
    .bento-5 { grid-template-columns: 1fr 1fr; }
    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .footer-links { gap: 20px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .section-spacer h2 { font-size: 22px; }
    .cta-buttons { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .bento-4, .bento-5 { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
}
