/* ============================================================
   EIAAW SOLUTIONS — Official Design System v1.0
   Locked 2026-04-19. Source of truth: landing.html
   Do not modify tokens without updating eiaaw-design-system.md
   ============================================================ */

:root {
  --bg: #FAF7F2;
  --bg-warm: #F3EDE0;
  --surface: #FFFFFF;

  --ink: #0F1A1D;
  --ink-2: #2A3438;
  --mute: #6B7A7F;

  --line: #D9CFBC;
  --line-soft: #E8DFCC;

  --primary: #1FA896;
  --primary-dark: #11766A;
  --primary-tint: #E5F4F1;

  --danger: #B4412B;

  --gradient: linear-gradient(135deg, #22B8A5 0%, #11766A 55%, #0A4D47 100%);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --tracking-ui: -0.01em;
  --tracking-display: -0.035em;
  --tracking-eyebrow: 0.14em;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--bg); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11", "kern";
  letter-spacing: var(--tracking-ui);
}

/* Paper grain */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(15,26,29,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--primary-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.5; }

.display {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(44px, 8vw, 112px); line-height: 0.96;
  letter-spacing: var(--tracking-display); color: var(--ink);
}
.display em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--primary-dark); letter-spacing: -0.01em;
}

.section-h {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 64px); line-height: 1.02;
  letter-spacing: var(--tracking-display); color: var(--ink);
}
.section-h em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--primary-dark); letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(18px, 1.1vw + 14px, 22px);
  line-height: 1.5; color: var(--ink-2);
  max-width: 54ch;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative; z-index: 1;
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
}
.section-pad { padding: clamp(100px, 14vh, 180px) 0; }
.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  margin-bottom: clamp(64px, 10vh, 120px);
  align-items: end;
}
.section-head .label { grid-column: 1 / span 2; padding-top: 8px; }
.section-head .title { grid-column: 3 / span 8; }
.section-head .aside {
  grid-column: 11 / span 2; text-align: right;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--mute); text-transform: uppercase;
  padding-top: 12px;
}

section { position: relative; z-index: 1; }

/* ---------- Nav + lockup ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px clamp(20px, 4vw, 56px);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(250,247,242,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line-soft); background: rgba(250,247,242,0.88); }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav-logo-text strong {
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--primary-dark); text-transform: uppercase;
}
.nav-logo-text small {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  color: var(--mute); text-transform: uppercase;
  letter-spacing: 0.12em; margin-top: 2px;
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  position: relative; transition: color 0.25s var(--ease);
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--ink); transition: width 0.35s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: all 0.35s var(--ease);
  border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); padding: 13px 4px; border-radius: 0; }
.btn-ghost::after {
  content: ''; position: absolute; left: 4px; right: 4px; bottom: 10px;
  height: 1px; background: var(--ink); transform-origin: right; transform: scaleX(1);
  transition: transform 0.45s var(--ease);
}
.btn-ghost:hover::after { transform-origin: left; transform: scaleX(1); }
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 17px 28px; font-size: 15px; }

/* ---------- Floating-elegant imagery ---------- */
.elegant-thumb {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-warm);
  filter: saturate(0.9) contrast(1.02);
  box-shadow:
    0 1px 2px rgba(15,26,29,0.06),
    0 8px 20px -6px rgba(15,26,29,0.18),
    0 24px 48px -12px rgba(15,26,29,0.22);
  transition: transform 0.7s var(--ease), box-shadow 0.7s, filter 0.7s;
  position: relative;
  will-change: transform, box-shadow;
}
.elegant-thumb::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  pointer-events: none;
}
.elegant-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.elegant-thumb-parent:hover .elegant-thumb {
  transform: translateY(-4px) scale(1.02);
  filter: saturate(1.05) contrast(1.04);
  box-shadow:
    0 2px 4px rgba(15,26,29,0.08),
    0 16px 32px -8px rgba(15,26,29,0.22),
    0 40px 72px -16px rgba(15,26,29,0.28);
}

.elegant-figure {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-warm);
  position: relative;
  box-shadow:
    0 2px 4px rgba(15,26,29,0.05),
    0 16px 40px -12px rgba(15,26,29,0.18),
    0 48px 96px -24px rgba(15,26,29,0.28),
    0 80px 140px -40px rgba(15,26,29,0.22);
  transition: transform 0.9s var(--ease), box-shadow 0.9s;
  will-change: transform, box-shadow;
}
.elegant-figure::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
  background: linear-gradient(180deg, transparent 55%, rgba(15,26,29,0.18) 100%);
}
.elegant-figure img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 1.8s var(--ease), filter 0.9s var(--ease);
}
.elegant-figure:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 8px rgba(15,26,29,0.06),
    0 24px 56px -12px rgba(15,26,29,0.22),
    0 64px 120px -24px rgba(15,26,29,0.32),
    0 110px 180px -40px rgba(15,26,29,0.26);
}
.elegant-figure:hover img { transform: scale(1.035); filter: saturate(0.95) contrast(1.04); }

/* Receipt card — floating-elegant treatment for prose/data cards (no image overlay). */
.receipt-card {
  background: var(--surface, #FFFFFF);
  overflow: visible;
  animation: floatGently 6s var(--ease) infinite;
}
.receipt-card::after {
  background: none;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.receipt-card-inner {
  position: relative; z-index: 2;
  padding: 32px;
  border-radius: 20px;
}
.receipt-card:hover { animation-play-state: paused; }
@keyframes floatGently {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .receipt-card { animation: none; }
}

/* ---------- Footer ---------- */
footer {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  color: var(--ink);
  padding: clamp(80px, 10vh, 120px) 0 48px;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(15,26,29,0.08);
}
.footer-lockup-blk { grid-column: 1 / span 6; }
.footer-lockup-blk .lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.footer-lockup-blk .lockup img { width: 56px; height: 56px; object-fit: contain; }
.footer-lockup-blk .lockup .brand { display: flex; flex-direction: column; line-height: 1.1; }
.footer-lockup-blk .lockup .brand strong {
  font-size: 18px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--primary-dark); text-transform: uppercase;
}
.footer-lockup-blk .lockup .brand span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute); margin-top: 8px;
}
.footer-statement {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px); line-height: 1.18;
  color: var(--ink); max-width: 18ch; letter-spacing: -0.01em;
}
.footer-col { grid-column: span 2; }
.footer-col h4 {
  font-family: var(--mono); font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--mute); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--ink-2); text-decoration: none; font-size: 14px;
  transition: color 0.25s var(--ease);
  display: inline-block; position: relative;
}
.footer-col a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--primary-dark); transition: width 0.35s var(--ease);
}
.footer-col a:hover { color: var(--primary-dark); }
.footer-col a:hover::after { width: 100%; }
.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.08em; text-transform: uppercase;
  flex-wrap: wrap; gap: 16px;
}

/* ---------- Chatbot ---------- */
.chat-toggle {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 24px;
  box-shadow:
    0 2px 4px rgba(17,118,106,0.2),
    0 10px 24px -6px rgba(17,118,106,0.45),
    0 24px 48px -12px rgba(15,26,29,0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.chat-toggle::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  pointer-events: none;
}
.chat-toggle::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(31,168,150,0.4);
  opacity: 0;
  animation: chat-ring 2.8s var(--ease) infinite;
}
@keyframes chat-ring {
  0% { transform: scale(0.9); opacity: 0.55; }
  80% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.chat-toggle:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 8px rgba(17,118,106,0.25), 0 16px 32px -6px rgba(17,118,106,0.5), 0 32px 60px -12px rgba(15,26,29,0.35);
}
.chat-toggle #chatbot-icon { position: relative; z-index: 1; }

.chat-panel {
  position: fixed; bottom: 102px; right: 28px; z-index: 300;
  width: 380px; max-height: 500px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow:
    0 2px 4px rgba(15,26,29,0.05),
    0 16px 40px -12px rgba(15,26,29,0.18),
    0 48px 96px -24px rgba(15,26,29,0.28);
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line-soft);
}
.chat-header { background: var(--gradient); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-title { font-weight: 600; color: #fff; font-size: 14px; letter-spacing: 0.02em; }
.chat-sub { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.75); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.chat-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; opacity: 0.85; }
.chat-close:hover { opacity: 1; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; max-height: 340px; min-height: 200px; background: var(--bg); }
.chat-msg { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 14px; font-size: 13px; color: var(--ink); margin-bottom: 10px; max-width: 85%; line-height: 1.45; }
.chat-input-row { padding: 12px; border-top: 1px solid var(--line-soft); display: flex; gap: 8px; background: var(--surface); }
.chat-input { flex: 1; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px; color: var(--ink); font-size: 13px; font-family: var(--sans); outline: none; transition: border-color 0.2s; }
.chat-input:focus { border-color: var(--primary); }
.chat-send { padding: 10px 16px; font-size: 13px; }

/* ---------- Reveal + motion helpers ---------- */
.rvl { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rvl.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .label, .section-head .title, .section-head .aside { grid-column: 1 / -1; text-align: left; padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-lockup-blk { grid-column: 1 / -1; }
  .footer-col { grid-column: span 1; }
  .section-pad { padding: clamp(72px, 10vh, 120px) 0; }
}
@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .nav-logo img { width: 30px; height: 30px; }
  .nav-logo-text strong { font-size: 13px; letter-spacing: 0.06em; }
  .nav-logo-text small { font-size: 9px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { padding: 10px 16px; font-size: 13px; }

  /* Buttons tap-target min 44px per Apple HIG */
  .btn { min-height: 44px; padding: 12px 20px; }
  .btn-lg { padding: 14px 22px; font-size: 14px; }
  .btn-ghost { padding: 12px 2px; }

  /* Footer stacks */
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-lockup-blk, .footer-col { grid-column: 1 / -1; }
  .footer-lockup-blk .lockup { gap: 12px; margin-bottom: 20px; }
  .footer-lockup-blk .lockup img { width: 44px; height: 44px; }
  .footer-lockup-blk .lockup .brand strong { font-size: 14px; }
  .footer-statement { font-size: clamp(20px, 6vw, 26px); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 10px; padding-top: 24px; }

  /* Chatbot tighter */
  .chat-panel { right: 10px; left: 10px; width: auto; bottom: 84px; max-height: calc(100vh - 120px); }
  .chat-toggle { bottom: 16px; right: 16px; width: 54px; height: 54px; font-size: 20px; }

  /* Type scale softens */
  .display { font-size: clamp(36px, 12vw, 72px); line-height: 1.0; letter-spacing: -0.025em; }
  .section-h { font-size: clamp(28px, 9vw, 48px); }
  .lead { font-size: 16px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.12em; }
  .eyebrow::before { width: 20px; }

  /* Section spacing tighter */
  .section-pad { padding: clamp(56px, 8vh, 90px) 0; }
  .section-head { margin-bottom: clamp(36px, 6vh, 64px); }

  /* Floating shadow tones down on mobile (less expensive to composite) */
  .elegant-figure, .elegant-thumb {
    box-shadow:
      0 1px 2px rgba(15,26,29,0.06),
      0 8px 20px -6px rgba(15,26,29,0.18);
  }
  .elegant-figure:hover, .elegant-thumb-parent:hover .elegant-thumb {
    box-shadow:
      0 2px 4px rgba(15,26,29,0.08),
      0 12px 28px -8px rgba(15,26,29,0.24);
  }

  /* Modal full-screen on mobile */
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal-card { border-radius: 20px 20px 0 0; max-height: 92vh; }
}

/* Very narrow */
@media (max-width: 380px) {
  .nav-logo-text small { display: none; }
  .display { font-size: clamp(30px, 11vw, 56px); }
  .wrap { padding: 0 16px; }
}
