/* DINO Mail — A Little Mail, A Big World */

:root {
  --bg: #F6F3EA;            /* warm paper, matches image haze */
  --ink: #22343B;           /* deep sea ink */
  --ink-soft: #5A6B70;
  --accent: #4E9455;        /* dino green */
  --accent-deep: #3C7A45;
  --sky: #BFDCEA;
  --sunset: #E8A56B;
  --card: #FFFFFF;
  --line: rgba(34, 52, 59, .12);
  --radius: 18px;
}

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

/* Fluid base scale: on big/hi-dpi screens everything (rem-based text & spacing)
   grows smoothly instead of looking tiny — removes the "needs 150% zoom" feel */
html {
  font-size: clamp(15px, 0.48rem + 0.52vw, 21px);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* headings: Fraunces soft serif (EN); CJK falls through to Han stack */
h1, h2, h3, .headline, .sec-title, .join-title, .kicker, .brand-name, .foot-brand, .spirit-quote, .addr {
  font-family: "Fraunces", "Georgia", "PingFang SC", "Microsoft YaHei", serif;
}

section[id] { scroll-margin-top: 76px; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(20px, 5vw, 56px);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.topbar.scrolled {
  background: rgba(246, 243, 234, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; }
.brand-mark {
  width: 34px; height: 34px;
  box-shadow: 0 2px 6px rgba(20,40,50,.25);
}
.brand-name { font-size: 1.02rem; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .92rem; }
.nav a { opacity: .85; }
.nav a:hover { opacity: 1; }
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: 4px; }
.lang-btn {
  font: inherit; font-size: .85rem; cursor: pointer;
  background: rgba(255,255,255,.55); color: inherit;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
  transition: background .2s;
}
.topbar.scrolled .lang-btn { background: transparent; }
.lang-btn:hover { background: rgba(255,255,255,.85); }
.cta-mini {
  font-size: .85rem; font-weight: 600; color: #fff;
  background: var(--accent-deep); border-radius: 999px; padding: 6px 16px;
  transition: background .2s;
}
.cta-mini:hover { background: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: url("img/dino.webp") center / cover no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(246,243,234,0) 30%, rgba(246,243,234,.38) 55%, rgba(246,243,234,.78) 78%, rgba(246,243,234,.92) 100%);
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 160px;
  background: linear-gradient(180deg, rgba(246,243,234,0), var(--bg));
}
.hero-inner {
  position: relative; width: 100%;
  padding: 110px clamp(20px, 5vw, 56px) 90px;
  display: flex; justify-content: flex-end;
}
.hero-copy { max-width: 40rem; text-align: left; }
.kicker {
  font-size: .82rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 14px;
}
.headline {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.08; font-weight: 750; letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.sub {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--ink-soft); max-width: 30em; margin-bottom: 22px;
}
.addr { font-size: 1.05rem; margin-bottom: 32px; letter-spacing: .01em; }
.addr-dim { color: var(--ink-soft); }
.addr-strong { font-weight: 750; color: var(--accent-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 650; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent-deep); color: #fff; box-shadow: 0 6px 18px rgba(60,122,69,.28); }
.btn-solid:hover { background: var(--accent); }
.btn-ghost { background: rgba(255,255,255,.6); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--accent-deep); }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.section-alt { background: #EFEAE0; }

.sec-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 720; letter-spacing: -0.01em; margin-bottom: 12px;
}
.sec-sub { color: var(--ink-soft); margin-bottom: 44px; font-size: 1.05rem; }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 2.2rem, 40px) clamp(22px, 2rem, 36px);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(34,52,59,.08); }
.card-accent { background: var(--accent-deep); color: #fff; border-color: transparent; }
.card-accent .card-ico { color: #DFF3E2; }
.card-ico { width: 44px; height: 44px; color: var(--accent-deep); margin-bottom: 18px; }
.card-ico svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card-accent p { color: rgba(255,255,255,.85); }

/* ---------- spirit ---------- */
.spirit-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.spirit-copy p { margin-bottom: 16px; color: var(--ink-soft); max-width: 34em; }
.spirit-quote {
  font-size: 1.2rem; font-weight: 700; color: var(--ink) !important;
  border-left: 3px solid var(--accent); padding-left: 16px;
}
.spirit-fig {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(34,52,59,.14);
}
.spirit-fig img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- join ---------- */
.section-join {
  position: relative; color: #fff; text-align: center;
  background: url("img/dino-sky.webp") center 38% / cover no-repeat;
}
.section-join::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(246,243,234,.0) 0%, rgba(38,58,66,.55) 60%, rgba(30,48,56,.7) 100%);
}
.join-inner { position: relative; }
.join-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; margin-bottom: 12px; }
.join-sub { color: rgba(255,255,255,.88); margin-bottom: 32px; font-size: 1.05rem; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 54px 20px 40px; color: var(--ink-soft); }
.foot-brand { font-weight: 750; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.foot-line { font-size: .95rem; margin-bottom: 10px; }
.foot-note { font-size: .82rem; opacity: .75; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .cards { grid-template-columns: 1fr; }
  .spirit-grid { grid-template-columns: 1fr; }
  .spirit-fig { order: -1; }
}
@media (max-width: 640px) {
  .hero { background-position: 30% center; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(246,243,234,.15) 30%, rgba(246,243,234,.55) 55%, rgba(246,243,234,.94) 82%);
  }
  .hero-inner { justify-content: flex-start; align-items: flex-end; min-height: 100svh; padding-bottom: 64px; }
  .hero-copy { max-width: 100%; }
  .addr { margin-bottom: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { text-align: center; padding: 12px 22px; }
  .hero-copy { padding-left: 8px; }
}
