/* ============================================================
   LUNARK PROJECTS — Shared Stylesheet
   Palette: Forest #1A3028 | Mid #2A5040 | Accent #3D8B6E | Mint #5DC49A | Off-White #F5F7F4
   Type: Playfair Display (display) | Inter (body)
   ============================================================ */

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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest:    #1A3028;
  --mid:       #2A5040;
  --accent:    #3D8B6E;
  --mint:      #5DC49A;
  --mint-light:#E8F7F1;
  --offwhite:  #F5F7F4;
  --white:     #FFFFFF;
  --text:      #1A1A1A;
  --muted:     #5A6B63;
  --border:    #D6E4DC;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(26,48,40,0.08);
  --shadow-lg: 0 8px 32px rgba(26,48,40,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; font-family: 'Inter', sans-serif; }

p { margin-bottom: 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  display: block;
  margin-bottom: 0.75rem;
}

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--forest);
  color: var(--white);
}
.section--dark p { color: rgba(255,255,255,0.72); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section--offwhite { background: var(--offwhite); }
.section--mid { background: var(--mid); color: var(--white); }
.section--mid p { color: rgba(255,255,255,0.72); }
.section--mid h2, .section--mid h3 { color: var(--white); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section__header h2 { margin-bottom: 1rem; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--mint);
  color: var(--forest);
  border-color: var(--mint);
}
.btn--primary:hover { background: #4ab889; border-color: #4ab889; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(93,196,154,0.3); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--outline-dark {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn--outline-dark:hover { background: var(--forest); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--mint);
  border-color: transparent;
  padding-left: 0;
}
.btn--ghost:hover { color: #4ab889; gap: 12px; }

/* ── Card ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card--dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: var(--white);
}
.card--dark:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--mint-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.card--dark .card__icon { background: rgba(93,196,154,0.15); }

.card h3 { margin-bottom: 0.6rem; color: var(--text); }
.card--dark h3 { color: var(--white); }
.card p { font-size: 0.92rem; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1160px;
  margin: 0 auto;
  height: 68px;
}

.nav__logo img { height: 36px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav__links a.active { color: var(--mint); }
.nav__links .nav__cta a {
  background: var(--mint);
  color: var(--forest);
  font-weight: 600;
  padding: 8px 16px;
}
.nav__links .nav__cta a:hover { background: #4ab889; }
.nav__links .nav__product a { color: var(--mint); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.25s;
}

/* ── HERO ── */
.hero {
  background: var(--forest);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(93,196,154,0.08) 0%, transparent 60%),
                    linear-gradient(135deg, transparent 0%, rgba(93,196,154,0.03) 100%);
  pointer-events: none;
}

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

.hero__content { position: relative; z-index: 1; }
.hero__content h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero__content p { font-size: 1.1rem; color: rgba(255,255,255,0.72); margin-bottom: 2rem; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual {
  position: relative;
  z-index: 1;
}

/* Dashboard mockup */
.dashboard-mock {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.dashboard-mock__bar {
  background: rgba(255,255,255,0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dashboard-mock__dot { width: 8px; height: 8px; border-radius: 50%; }
.dashboard-mock__dot:nth-child(1) { background: #FF5F57; }
.dashboard-mock__dot:nth-child(2) { background: #FEBC2E; }
.dashboard-mock__dot:nth-child(3) { background: #28C840; }
.dashboard-mock__title { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-left: 8px; font-weight: 500; }

.dashboard-mock__body { padding: 20px; }

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mock-header span { font-size: 0.8rem; color: rgba(255,255,255,0.6); font-weight: 600; }
.mock-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  background: rgba(93,196,154,0.2);
  color: var(--mint);
}

.mock-modules {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.mock-module {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.mock-module__icon { font-size: 1.1rem; margin-bottom: 4px; }
.mock-module__label { font-size: 0.62rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.mock-module--active { border-color: var(--mint); background: rgba(93,196,154,0.1); }
.mock-module--active .mock-module__label { color: var(--mint); }

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 6px;
}
.mock-row:last-child { margin-bottom: 0; }
.mock-row__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.mock-row__label { font-size: 0.72rem; color: rgba(255,255,255,0.65); flex: 1; }
.mock-row__status { font-size: 0.62rem; font-weight: 600; padding: 2px 7px; border-radius: 10px; }
.status--done { background: rgba(93,196,154,0.2); color: var(--mint); }
.status--pending { background: rgba(254,188,46,0.2); color: #FEBC2E; }
.status--redo { background: rgba(255,95,87,0.2); color: #FF5F57; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--forest);
  color: var(--white);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(93,196,154,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 580px; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--mid);
  padding: 36px 0;
}
.stats-bar__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.stat { text-align: center; }
.stat__number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label { font-size: 0.8rem; color: rgba(255,255,255,0.65); font-weight: 500; }

/* ── SERVICES GRID ── */
.service-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: var(--border);
}
.step { text-align: center; }
.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; }

/* ── ROLES TABLE ── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.role-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 20px;
}
.role-card__title {
  font-weight: 600;
  color: var(--mint);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.role-card__access {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ── CASE STUDY CARD ── */
.case-card { border-radius: 12px; overflow: hidden; }
.case-card__body { padding: 28px; }
.case-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--mint-light);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 14px;
}
.case-card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.case-card blockquote {
  border-left: 3px solid var(--mint);
  padding-left: 14px;
  margin-top: 16px;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── BLOG CARD ── */
.blog-card { display: flex; flex-direction: column; }
.blog-card__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}
.blog-card__tag {
  color: var(--accent);
  font-weight: 600;
}
.blog-card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.blog-card p { font-size: 0.9rem; flex: 1; }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* ── DEMO MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  line-height: 1;
}
.modal h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.modal p { font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── FOOTER ── */
.footer {
  background: var(--forest);
  color: var(--white);
  padding: 60px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand img { height: 34px; margin-bottom: 16px; }
.footer__brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: background 0.15s, color 0.15s;
}
.footer__social a:hover { background: var(--mint); color: var(--forest); }

.footer__col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer__col ul a:hover { color: var(--mint); }
.footer__col address {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}
.footer__col address a { transition: color 0.15s; }
.footer__col address a:hover { color: var(--mint); }

.footer__bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
}
.footer__bottom-links a:hover { color: var(--white); }

/* ── MISC ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.text-center { text-align: center; }
.text-mint { color: var(--mint); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.tag--mint { background: var(--mint-light); color: var(--accent); }
.tag--forest { background: var(--forest); color: var(--mint); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--mid) 0%, var(--forest) 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(93,196,154,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; position: relative; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── NOTIFICATION ── */
.notification {
  display: none;
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--forest);
  color: var(--white);
  border: 1px solid var(--mint);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
.notification.show { display: block; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .nav__links { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--forest); flex-direction: column; align-items: flex-start; padding: 24px; gap: 4px; overflow-y: auto; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 16px; width: 100%; font-size: 1rem; }
  .nav__toggle { display: flex; }
  .stats-bar__inner { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
