/* MelaTeck — corporate site
   Palette: cool off-white #F2F3F0, pine #0E5C43, ink #14181A.
   Headings: Bricolage Grotesque. Body: Inter. */

:root {
  --bg: #F2F3F0;
  --surface: #FAFBF8;
  --ink: #14181A;
  --muted: #59605B;
  --pine: #0E5C43;
  --pine-deep: #0A4634;
  --hairline: #DCE0DA;
  --tint: #E7EBE5;
  --navy: #0F1626;
  --navy-soft: #1A2438;
  --gold: #D4AF37;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-weight: 800; font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
h2 { font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.25; }

p { margin: 0 0 1em; }

a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { display: block; }

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

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 243, 240, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--pine);
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--pine);
}

.site-nav a[aria-current="page"] {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--pine);
  color: #F2F3F0;
}

.btn-primary:hover {
  background: var(--pine-deep);
}

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--pine);
}

.btn-ghost:hover {
  border-color: var(--pine);
  background: var(--tint);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #C6A22F;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0 clamp(64px, 9vw, 110px);
}

.hero h1 {
  max-width: 18ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--pine);
}

.hero-motif {
  position: absolute;
  right: -140px;
  top: 30px;
  width: 560px;
  height: 560px;
  color: var(--pine);
  opacity: 0.06;
  pointer-events: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section + .section {
  border-top: 1px solid var(--hairline);
}

.page-header {
  padding: clamp(64px, 10vw, 110px) 0 clamp(24px, 4vw, 40px);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
}

.card .num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--pine);
  letter-spacing: 0.08em;
}

.card h3 {
  margin: 10px 0 8px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.negari-card {
  background: linear-gradient(160deg, var(--navy-soft), var(--navy) 70%);
  border-radius: var(--radius);
  padding: 36px;
  color: #E8E4D8;
}

.negari-card .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.negari-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--gold);
  margin: 0 0 4px;
}

.negari-card .tagline {
  font-weight: 600;
  color: #F4F1E6;
  margin-bottom: 12px;
}

.negari-card p {
  color: #C9C5B8;
  font-size: 0.97rem;
}

.negari-card a:not(.btn) {
  color: var(--gold);
  font-weight: 600;
}

.negari-bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  display: grid;
  gap: 10px;
  color: #D9D5C8;
  font-size: 0.97rem;
}

.negari-bullets li {
  padding-left: 22px;
  position: relative;
}

.negari-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.dev-card {
  border: 1.5px dashed #C3CAC2;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dev-card h3 {
  color: var(--ink);
}

.dev-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

.dev-motif {
  width: 40px;
  height: 40px;
  color: var(--pine);
  opacity: 0.45;
  margin-bottom: 16px;
}

/* Products page feature panel */

.negari-feature {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.negari-feature-mark {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  color: var(--gold);
  text-align: center;
  line-height: 1.15;
}

.negari-feature-mark small {
  display: block;
  font-size: 0.45em;
  font-weight: 600;
  color: rgba(212, 175, 55, 0.7);
  letter-spacing: 0.04em;
}

/* ---------- Contact ---------- */

.contact-email {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
  word-break: break-all;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pine);
  color: #E9EEE9;
  margin-top: clamp(64px, 9vw, 110px);
  padding: 56px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .wordmark {
  color: #F2F3F0;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  color: rgba(242, 243, 240, 0.75);
  font-size: 0.92rem;
  max-width: 36ch;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: clamp(32px, 6vw, 72px);
}

.footer-links h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 243, 240, 0.6);
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #F2F3F0;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(242, 243, 240, 0.2);
  margin-top: 44px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(242, 243, 240, 0.7);
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .cards-3,
  .cards-2,
  .product-grid,
  .negari-feature {
    grid-template-columns: 1fr;
  }

  .negari-feature-mark {
    display: none;
  }

  .hero-motif {
    width: 380px;
    right: -160px;
  }
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 1.15rem;
  }

  .site-nav a {
    font-size: 0.88rem;
  }
}
