/* ==========================================================================
   Terramail — Landing Page Styles
   Földi ("Terra") színvilág: krém háttér, erdőzöld, terrakotta, agyagzöld
   ========================================================================== */

:root {
  --color-bg: #f5f1e8;
  --color-bg-soft: #efe9db;
  --color-surface: #fffdf8;
  --color-border: #e3dbc8;

  --color-forest: #2f4a3d;
  --color-forest-soft: #3d5c4d;
  --color-clay: #c1694f;
  --color-clay-soft: #e2a891;
  --color-teal: #4a7c6f;
  --color-ochre: #8a6d3b;
  --color-slate: #6b8f9e;

  --color-text: #2b2621;
  --color-text-muted: #6b6153;
  --color-text-soft: #8c8272;

  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(47, 74, 61, 0.06);
  --shadow-md: 0 12px 30px rgba(47, 74, 61, 0.10);
  --shadow-lg: 0 24px 60px rgba(47, 74, 61, 0.14);

  --wrap: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-forest);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------------------------- Background decor ---------------------------------- */

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

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

.blob-a {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--color-clay-soft), transparent 70%);
}

.blob-b {
  width: 420px;
  height: 420px;
  top: 30%;
  left: -180px;
  background: radial-gradient(circle at 50% 50%, var(--color-teal), transparent 70%);
  opacity: 0.18;
}

.blob-c {
  width: 380px;
  height: 380px;
  bottom: -140px;
  right: 10%;
  background: radial-gradient(circle at 50% 50%, var(--color-ochre), transparent 70%);
  opacity: 0.14;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-forest);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 8px;
  flex: 1;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--color-forest);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.domain-pill {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-teal);
  background: rgba(74, 124, 111, 0.1);
  border: 1px solid rgba(74, 124, 111, 0.25);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ---------------------------------- Eyebrow / section head ---------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-clay);
  background: rgba(193, 105, 79, 0.1);
  border: 1px solid rgba(193, 105, 79, 0.22);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.eyebrow-alt {
  color: var(--color-teal);
  background: rgba(74, 124, 111, 0.1);
  border-color: rgba(74, 124, 111, 0.22);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 480px;
}

.hero-lead strong {
  color: var(--color-forest);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.browser-mock {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.5deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.dot-red { background: #d98a76; }
.dot-amber { background: #d9b676; }
.dot-green { background: #93b58a; }

.browser-url {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.browser-body {
  padding: 10px 14px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border);
}

.mini-row:last-child {
  border-bottom: none;
}

.mini-row.is-muted .mini-title,
.mini-row.is-muted .mini-sub {
  color: var(--color-text-soft);
  font-weight: 400;
}

.mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--av, var(--color-teal));
  flex: none;
}

.mini-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.mini-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text);
}

.mini-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-time {
  font-size: 0.72rem;
  color: var(--color-text-soft);
  flex: none;
}

.leaf-accent {
  position: absolute;
  border-radius: 50% 0 50% 50%;
  opacity: 0.85;
}

.leaf-1 {
  width: 46px;
  height: 46px;
  background: var(--color-clay);
  top: -18px;
  right: 24px;
  transform: rotate(20deg);
}

.leaf-2 {
  width: 30px;
  height: 30px;
  background: var(--color-teal);
  bottom: 12px;
  left: -6px;
  transform: rotate(-30deg);
  opacity: 0.7;
}

/* ---------------------------------- Stats ---------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 32px 96px;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--color-forest);
  background: rgba(47, 74, 61, 0.08);
  margin-bottom: 14px;
}

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

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-forest);
}

.stat-label {
  display: block;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ---------------------------------- Features ---------------------------------- */

.features {
  padding: 40px 32px 100px;
}

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

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(193, 105, 79, 0.3);
}

.feature-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--fi, var(--color-clay));
  background: color-mix(in srgb, var(--fi, var(--color-clay)) 12%, transparent);
  margin-bottom: 18px;
}

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

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---------------------------------- Product mockup ---------------------------------- */

.product {
  padding: 40px 32px 100px;
}

.app-mock {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
}

.app-sidebar {
  background: var(--color-bg-soft);
  border-right: 1px solid var(--color-border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
  padding: 0 12px 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.sidebar-item svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.sidebar-item.is-active {
  background: rgba(74, 124, 111, 0.14);
  color: var(--color-forest);
}

.tag-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--td, var(--color-clay));
  flex: none;
}

.app-list {
  display: flex;
  flex-direction: column;
}

.app-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
}

.app-row:last-child {
  border-bottom: none;
}

.app-row.is-read {
  background: rgba(239, 233, 219, 0.4);
}

.app-row.is-read .app-sender,
.app-row.is-read .app-subject {
  font-weight: 500;
  color: var(--color-text-muted);
}

.app-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--av, var(--color-teal));
  flex: none;
}

.app-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.app-sender {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text);
}

.app-time {
  font-size: 0.76rem;
  color: var(--color-text-soft);
  flex: none;
}

.app-subject {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-forest-soft);
}

.app-snippet {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-row > .tag-dot {
  margin-top: 6px;
}

/* ---------------------------------- Story / Why us ---------------------------------- */

.story {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 64px;
  padding: 40px 32px 120px;
}

.story-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 280px;
  margin: 0 auto;
  color: var(--color-teal);
}

.story-ring {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.story-leaf {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  color: var(--color-clay);
}

.story-copy h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.story-copy p {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 620px;
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  max-width: 320px;
  margin: 16px 0 20px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-row a svg {
  width: 16px;
  height: 16px;
}

.social-row a:hover {
  color: var(--color-clay);
  border-color: var(--color-clay);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-forest);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-clay);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding: 22px 32px;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.footer-domain {
  font-weight: 600;
  color: var(--color-teal);
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    margin-top: 24px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .story-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }

  .wrap {
    padding: 0 20px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 64px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .app-mock {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .browser-mock {
    transform: none;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
