/* Esemesky landing page — "Snug Simple" direction.
   Brand tokens copied from sms-bot-electron/src/index.css (Buttercream Minimal, light mode). */

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

:root {
  --font:            "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display:    "Plus Jakarta Sans", "Avenir Next", -apple-system, sans-serif;
  --radius-sm:       8px;
  --radius-md:       14px;
  --radius-lg:       20px;
  --radius-xl:       28px;

  --bg:              #fffaf0;
  --sidebar-bg:      #fff4d6;
  --card-bg:         #fffdf8;
  --surface-subtle:  #f6f1e5;
  --border:          #e5decf;
  --border-mid:      #d6cebd;
  --accent:          #ffe8a3;
  --accent-hover:    #f6d875;
  --brand-highlight: #f2d266;
  --primary:         #344e41;
  --primary-hover:   #273d32;
  --on-primary:      #ffffff;
  --text:            #2f3a33;
  --text-muted:      #6e776f;
  --text-dim:        #9aa097;
  --card-shadow:     0 10px 30px rgba(66, 54, 31, 0.06);
  --card-shadow-lg:  0 22px 60px rgba(66, 54, 31, 0.10);
  --primary-shadow:  0 6px 18px rgba(52, 78, 65, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soft butter/green gradient blobs behind the hero */
.bg-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.7;
}

.blob-1 {
  width: 460px;
  height: 460px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle at 30% 30%, #ffe8a3, transparent 70%);
  animation: float 16s ease-in-out infinite;
}

.blob-2 {
  width: 380px;
  height: 380px;
  top: 320px;
  left: -120px;
  background: radial-gradient(circle at 50% 50%, rgba(52, 78, 65, 0.18), transparent 70%);
  animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(20px, 30px); }
}

/* Everything sits above the decor + grain */
main,
.site-footer {
  position: relative;
  z-index: 2;
}

/* ---------- Header (full-width sticky bar) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.82);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-island {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px clamp(20px, 5vw, 40px);
}

.wordmark {
  text-decoration: none;
  line-height: 1;
}

/* Same highlighter-swash wordmark as the app (.brand-name in the Electron UI). */
.brand-name {
  position: relative;
  isolation: isolate;
  display: inline-block;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.9px;
  color: var(--primary);
  text-shadow: 0 1px 0 color-mix(in srgb, var(--card-bg) 72%, transparent);
}

.brand-name::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -5px;
  right: -7px;
  bottom: 0;
  height: 11px;
  border-radius: 6px 8px 5px 7px;
  background: var(--brand-highlight);
  opacity: 0.94;
  box-shadow: 0 2px 0 rgba(188, 151, 49, 0.10);
}

.brand-name.small { font-size: 18px; }

.lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-toggle button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle button:hover { color: var(--text); }

.lang-toggle button.active {
  color: var(--primary);
  background: var(--accent);
}

/* ---------- Layout ---------- */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.section-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

/* Highlighter swash under the key word, echoing the wordmark */
.hl {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}

.hl::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -4px;
  right: -6px;
  bottom: 0.08em;
  height: 0.32em;
  border-radius: 6px 8px 5px 7px;
  background: var(--brand-highlight);
  opacity: 0.9;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.trust-line {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  transition: background 0.25s, transform 0.08s, border-color 0.25s, box-shadow 0.25s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  color: var(--on-primary);
  background: var(--primary);
  box-shadow: var(--primary-shadow);
}

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

.btn-ghost {
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--border-mid);
}

.btn-ghost:hover {
  background: var(--card-bg);
  border-color: var(--primary);
}

/* ---------- Value ---------- */
.value-wrap { padding: clamp(48px, 8vw, 96px) 0; }

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

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-lg);
}

.value-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--primary);
  margin-bottom: 18px;
}

.value-icon svg { width: 24px; height: 24px; }

.value-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  background: var(--sidebar-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: clamp(48px, 8vw, 84px) clamp(24px, 5vw, 48px);
  margin-bottom: clamp(48px, 8vw, 88px);
  box-shadow: var(--card-shadow);
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 34px;
}

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 32px);
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.person-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  padding-left: 2px;
  margin-bottom: 6px;
}

.person-role {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--accent);
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Show Dominik (2nd in the DOM) on the left */
.people .person:first-child { order: 2; }

.channel {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.channel:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-lg);
  border-color: var(--border-mid);
}

.channel-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-subtle);
  color: var(--primary);
}

.channel-icon svg { width: 22px; height: 22px; }

.channel-primary { background: var(--primary); border-color: var(--primary); }
.channel-primary .channel-text strong,
.channel-primary .channel-text small { color: var(--on-primary); }
.channel-primary .channel-icon { background: rgba(255, 255, 255, 0.16); color: var(--on-primary); }
.channel-primary:hover { background: var(--primary-hover); }

.channel-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.channel-text strong { font-size: 15px; }
.channel-text small { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 0 20px 44px;
}

.foot-note { color: var(--text-muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding-top: clamp(28px, 8vw, 56px); }
}

@media (max-width: 720px) {
  .value { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .channel { justify-content: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  html { scroll-behavior: auto; }
}
