/* =============== 9Sikki landing — hi-fi =============== */
:root {
  --stone:    #8B7D6B;
  --clay:     #CD853F;
  --gold:     #FFD700;
  --gold-dk:  #d4a92a;
  --beige:    #F5F0E8;
  --beige-2:  #ebe3d4;
  --beige-3:  #ddd0b8;
  --cave:     #3E3A34;
  --cave-2:   #2a2722;
  --ink:      #2C2416;
  --ink-soft: #6b6353;
  --paper:    #faf6ee;
  --line:     rgba(44,36,22,0.12);
  --shadow-1: 0 1px 2px rgba(44,36,22,0.06), 0 4px 12px rgba(44,36,22,0.05);
  --shadow-2: 0 4px 8px rgba(44,36,22,0.08), 0 16px 32px rgba(44,36,22,0.10);
  --shadow-3: 0 8px 16px rgba(44,36,22,0.12), 0 24px 48px rgba(44,36,22,0.16);
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px;
  --tablet-bg: linear-gradient(135deg, #CD853F 0%, #b0703a 60%, #8B7D6B 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--beige);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* type */
.t-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.t-num  { font-family: 'Lexend', 'Pretendard', sans-serif; font-feature-settings: 'tnum'; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(38px, 5.5vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.3; }
p  { margin: 0; }

.kicker {
  font-family: 'Lexend', 'Pretendard', sans-serif;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500;
}
.muted { color: var(--ink-soft); }

/* layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section { padding: 110px 0; position: relative; }
section + section { border-top: 1px solid var(--line); }
.center { text-align: center; }
.eyebrow { display: inline-block; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(245, 240, 232, 0.7);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.nav.is-scrolled {
  background: rgba(245, 240, 232, 0.92);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand-mark {
  width: 30px; height: 30px;
  background: var(--tablet-bg);
  border-radius: 7px 9px 8px 7px;
  display: grid; place-items: center;
  font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15) inset, var(--shadow-1);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--ink); opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dk); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(250,246,238,0.5); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: var(--cave); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* =============== Hero =============== */
.hero {
  padding: 160px 0 110px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(205,133,63,0.10) 0%, transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(139,125,107,0.10) 0%, transparent 60%),
    var(--beige);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(44,36,22,0.04) 0 1.5px, transparent 2px),
    radial-gradient(circle at 72% 58%, rgba(44,36,22,0.03) 0 1.5px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(44,36,22,0.025) 0 1.5px, transparent 2px);
  background-size: 38px 38px, 53px 53px, 71px 71px;
  pointer-events: none; opacity: 0.8;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 60px; align-items: center; position: relative; }

.hero-copy h1 .accent { color: var(--clay); }
.hero-sub { margin-top: 22px; font-size: 19px; color: var(--ink-soft); max-width: 460px; }
.hero-ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { margin-top: 26px; display: flex; gap: 18px; align-items: center; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.hero-proof > span { white-space: nowrap; }
.hero-proof b { color: var(--ink); font-weight: 600; }
.hero-proof .dot { width: 4px; height: 4px; background: var(--ink-soft); border-radius: 50%; opacity: 0.4; }
.hero-proof .stars { color: var(--clay); letter-spacing: 1px; }

/* tablet wrapping the phone */
.tablet-frame {
  position: relative; padding: 28px 30px 36px;
  background: var(--tablet-bg);
  border-radius: 28px 34px 30px 26px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -3px 0 rgba(0,0,0,0.10),
    var(--shadow-3);
  width: fit-content;
  margin-left: auto;
  transform: rotate(-2.4deg);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.tablet-frame:hover { transform: rotate(-1deg) translateY(-4px); }
.tablet-frame::before {
  content: ""; position: absolute; inset: 8px;
  border: 1.5px dashed rgba(250,246,238,0.25);
  border-radius: 22px 26px 24px 20px;
  pointer-events: none;
}
.tablet-frame::after {
  content: "9SIKKI · STONE TABLET v9";
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  font-family: 'Lexend', sans-serif; font-size: 9.5px; letter-spacing: 0.2em;
  color: rgba(250,246,238,0.7);
}
.tablet-chip { position: absolute; bottom: 8px; left: 16px; font-family: 'Lexend', sans-serif; font-size: 9px; letter-spacing: 0.15em; color: rgba(250,246,238,0.55); }

/* phone */
.phone {
  width: 280px;
  background: #1a1612;
  padding: 8px;
  border-radius: 36px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.25), 0 2px 0 rgba(255,255,255,0.08) inset, 0 18px 40px rgba(0,0,0,0.25);
  position: relative;
}
.phone-side-btn { position: absolute; right: -2px; top: 100px; width: 3px; height: 50px; background: #0c0a08; border-radius: 0 2px 2px 0; }
.phone-screen {
  position: relative;
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  height: 540px;
  display: flex; flex-direction: column;
}
.phone-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px 6px;
  font-family: 'Lexend', sans-serif; font-size: 12px; font-weight: 600; color: var(--ink);
}
.phone-status .glyphs { display: flex; gap: 4px; align-items: center; }
.phone-notch-pill { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; background: #1a1612; border-radius: 999px; z-index: 10; }

/* shared in-phone screen surfaces */
.scr { flex: 1; overflow: hidden; position: relative; }

/* sections */
.section-head { margin-bottom: 56px; }
.section-head h2 { margin-top: 8px; max-width: 720px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); max-width: 560px; font-size: 17px; }

/* problem */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.p-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-2); border-color: rgba(205,133,63,0.3); }
.p-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--beige-2); display: grid; place-items: center;
  font-size: 22px; margin-bottom: 18px;
  border: 1px solid var(--line);
}
.p-card h3 { font-size: 19px; margin-bottom: 6px; }
.p-card p { color: var(--ink-soft); font-size: 15px; }

/* solution */
.solution {
  background: var(--cave);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.solution::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,215,0,0.05) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 70%, rgba(205,133,63,0.06) 0 2px, transparent 3px);
  background-size: 60px 60px, 80px 80px;
  pointer-events: none;
}
.solution .kicker { color: rgba(245,240,232,0.5); }
.solution h2 { color: var(--paper); }
.solution .section-head p { color: rgba(245,240,232,0.65); }
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 30px;
  position: relative;
}
.flow-step {
  background: rgba(245,240,232,0.04);
  border: 1px solid rgba(245,240,232,0.1);
  border-radius: var(--r-md);
  padding: 28px 22px;
  position: relative;
  z-index: 1;
}
.flow-step.final { background: var(--gold); color: var(--ink); border-color: var(--gold-dk); }
.flow-step.final .step-label { color: var(--ink); }
.flow-step.final .step-sub { color: rgba(44,36,22,0.65); }
.flow + .flow { margin-top: 0; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 50%; width: 28px; height: 28px;
  background: var(--cave); border-radius: 50%;
  background-image:
    linear-gradient(45deg, transparent 45%, var(--paper) 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--paper) 45% 55%, transparent 55%);
  background-size: 8px 2px, 8px 2px;
  background-repeat: no-repeat;
  background-position: 12px 15px, 12px 11px;
  transform: translateY(-50%);
  z-index: 2;
  display: grid; place-items: center;
  font-family: 'Lexend', sans-serif; font-weight: 600; color: var(--paper);
}
.flow-step:not(:last-child)::after { content: "→"; background: var(--cave); font-size: 14px; }
.step-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(245,240,232,0.08);
  display: grid; place-items: center;
  font-size: 20px; margin-bottom: 14px;
  border: 1px solid rgba(245,240,232,0.12);
}
.flow-step.final .step-icon { background: rgba(44,36,22,0.12); border-color: rgba(44,36,22,0.15); }
.step-num {
  font-family: 'Lexend', sans-serif; font-size: 11px; letter-spacing: 0.15em;
  color: rgba(245,240,232,0.5); margin-bottom: 8px;
}
.flow-step.final .step-num { color: rgba(44,36,22,0.5); }
.step-label { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--paper); }
.step-sub { font-size: 13px; color: rgba(245,240,232,0.6); }

/* features */
.features { background: var(--beige); }
.features-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 60px; align-items: center; }
.features-phone { display: grid; place-items: center; }

.tab-list { display: flex; flex-direction: column; gap: 14px; }
.tab-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: var(--r-md);
  text-align: left;
  width: 100%;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
}
.tab-card:hover { transform: translateX(4px); border-color: rgba(205,133,63,0.4); }
.tab-card.active {
  background: var(--paper);
  border-left-color: var(--gold);
  box-shadow: var(--shadow-2);
  transform: translateX(6px);
}
.tab-card.active::after {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--clay) 100%);
  border-radius: 4px 0 0 4px;
}
.tab-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--beige-2); display: grid; place-items: center;
  font-size: 19px; flex: 0 0 40px;
  border: 1px solid var(--line);
}
.tab-card.active .tab-icon { background: var(--gold); border-color: var(--gold-dk); }
.tab-text h4 { font-size: 17px; margin-bottom: 2px; }
.tab-text p { font-size: 14px; color: var(--ink-soft); }
.tab-key { font-family: 'Lexend', sans-serif; font-size: 10px; letter-spacing: 0.15em; color: var(--ink-soft); margin-left: auto; padding-top: 4px; }

/* gamification */
.gamification {
  background:
    linear-gradient(180deg, var(--beige) 0%, var(--beige-2) 100%);
}
.ranks {
  display: grid; grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: stretch; gap: 0;
  max-width: 980px; margin: 50px auto 0;
}
.rank-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.rank-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.rank-card.chief {
  background: linear-gradient(180deg, var(--gold) 0%, #f3c411 100%);
  border-color: var(--gold-dk);
}
.rank-avatar {
  width: 88px; height: 88px; margin: 0 auto 16px;
  background: var(--beige-2);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 42px;
  border: 2px solid var(--line);
}
.rank-card.chief .rank-avatar { background: rgba(255,255,255,0.4); border-color: rgba(44,36,22,0.18); }
.rank-card.hunter .rank-avatar { background: rgba(205,133,63,0.15); border-color: rgba(205,133,63,0.3); }
.rank-title { font-size: 22px; font-weight: 700; }
.rank-req { font-family: 'Lexend', sans-serif; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.rank-card.chief .rank-req { color: rgba(44,36,22,0.7); }
.rank-perks { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-soft); }
.rank-card.chief .rank-perks { border-color: rgba(44,36,22,0.2); color: rgba(44,36,22,0.75); }
.rank-arrow {
  display: grid; place-items: center;
  font-family: 'Lexend', sans-serif; font-size: 24px; color: var(--ink-soft); opacity: 0.5;
}

/* CTA */
.cta {
  background: var(--gold);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(44,36,22,0.05) 0 3px, transparent 4px),
    radial-gradient(circle at 80% 75%, rgba(44,36,22,0.06) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 50%, rgba(44,36,22,0.03) 0 2px, transparent 3px);
  background-size: 80px 80px, 90px 90px, 60px 60px;
  pointer-events: none;
}
.cta .wrap { position: relative; text-align: center; }
.cta h2 { font-size: clamp(34px, 4.5vw, 56px); }
.cta-sub { margin-top: 14px; color: rgba(44,36,22,0.75); font-size: 18px; }
.cta-row {
  margin-top: 44px;
  display: flex; gap: 36px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.qr-card {
  background: var(--paper);
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(44,36,22,0.15);
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.qr-card .qr {
  width: 140px; height: 140px;
  border: 1px solid rgba(44,36,22,0.15);
  border-radius: 4px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.qr-label { font-family: 'Lexend', sans-serif; font-size: 11px; letter-spacing: 0.15em; color: var(--ink-soft); }
.cta-info { text-align: left; max-width: 320px; }
.cta-info p { font-size: 15px; color: rgba(44,36,22,0.75); margin-bottom: 16px; }
.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* footer */
.footer {
  background: var(--cave);
  color: rgba(245,240,232,0.75);
  padding: 70px 0 30px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { color: var(--paper); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; white-space: nowrap; }
.footer p { color: rgba(245,240,232,0.55); }
.footer h5 { color: var(--paper); font-size: 13px; letter-spacing: 0.05em; margin: 0 0 14px; text-transform: uppercase; font-family: 'Lexend', sans-serif; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: rgba(245,240,232,0.65); transition: color 0.2s; }
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 60px; padding-top: 22px;
  border-top: 1px solid rgba(245,240,232,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Lexend', sans-serif; font-size: 12px; color: rgba(245,240,232,0.4);
}
.footer-admin { font-size: 11px; opacity: 0.4; }
.footer-admin:hover { opacity: 0.8; }

/* scroll entrance */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.48s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.60s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.72s; }

/* tablet hero entry */
.hero-tablet-wrap { opacity: 0; transform: rotate(-6deg) translateY(20px); transition: opacity 0.8s ease, transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: 0.15s; }
.hero-tablet-wrap.in { opacity: 1; transform: rotate(0deg) translateY(0); }
.hero-tablet-wrap.in .tablet-frame { animation: tablet-settle 0.9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: 1.05s; }
@keyframes tablet-settle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-2.4deg); }
}

/* tab crossfade */
.tab-screen { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.32s ease; display: flex; flex-direction: column; }
.tab-screen.active { opacity: 1; pointer-events: auto; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper);
  padding: 12px 22px; border-radius: 999px;
  box-shadow: var(--shadow-3);
  opacity: 0; transition: opacity 0.25s, transform 0.3s cubic-bezier(.2,.7,.2,1);
  z-index: 200; font-size: 14px; font-weight: 500;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 960px) {
  section { padding: 80px 0; }
  .hero { padding: 130px 0 80px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 50px; }
  .tablet-frame { margin: 0 auto; transform: rotate(-1.5deg); }
  .features-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-phone { order: -1; }
  .problem-grid { grid-template-columns: 1fr; gap: 14px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 16px; }
  .flow-step:not(:last-child)::after { display: none; }
  .ranks { grid-template-columns: 1fr; }
  .rank-arrow { transform: rotate(90deg); padding: 10px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 20px; }
  .flow { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .cta-info { text-align: center; }
  .qr-card { display: none; } /* QR hidden on mobile */
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  .modal-content { width: 90%; max-width: 400px; }
}

/* =============== Mobile Navigation =============== */
.nav-mobile-toggle {
  display: none;
  flex-direction: column; justify-content: space-around;
  width: 32px; height: 24px;
  background: none; border: none;
  padding: 4px 0; cursor: pointer;
}
.nav-mobile-toggle span {
  width: 100%; height: 2px;
  background: var(--ink); border-radius: 1px;
  transition: all 0.3s ease;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

.nav-mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 20px 0; display: none; flex-direction: column; gap: 0;
}
.nav-mobile-menu:not([hidden]) {
  display: flex;
}
.nav-mobile-menu a {
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-size: 15px; transition: background 0.2s;
}
.nav-mobile-menu a:hover {
  background: rgba(44,36,22,0.05);
}

/* =============== Forms =============== */
.newsletter, .newsletter-form {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}
.newsletter {
  padding: 70px 0; text-align: center;
}
.newsletter h3 { font-size: 28px; margin-bottom: 8px; }
.newsletter p { color: rgba(44,36,22,0.65); margin-bottom: 20px; }
.newsletter-form {
  flex-direction: row; gap: 10px; max-width: 420px;
  width: 100%;
}
.newsletter-form input {
  flex: 1; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px;
}
.newsletter-form input:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}
.form-message {
  font-size: 14px; padding: 12px 16px; border-radius: var(--r-sm);
  text-align: center; min-height: 20px; transition: all 0.3s;
}
.form-message.success {
  color: #2d5016; background: rgba(45,80,22,0.1); border: 1px solid rgba(45,80,22,0.2);
}
.form-message.error {
  color: #8b0000; background: rgba(139,0,0,0.1); border: 1px solid rgba(139,0,0,0.2);
}

/* =============== Modal =============== */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal.active {
  opacity: 1; pointer-events: auto;
}
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4); cursor: pointer;
}
.modal-content {
  position: relative; z-index: 1;
  background: var(--paper); border-radius: var(--r-lg);
  padding: 40px 32px; max-width: 500px; width: 90%;
  box-shadow: var(--shadow-3);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border: none;
  background: none; font-size: 28px; color: var(--ink);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.modal-close:hover {
  transform: scale(1.15);
}
.modal-content h3 {
  margin-bottom: 24px; font-size: 24px;
}
.modal-content form {
  display: flex; flex-direction: column; gap: 14px;
}
.modal-content input,
.modal-content textarea {
  padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 14px;
  font-family: inherit; transition: border-color 0.2s;
}
.modal-content input:focus,
.modal-content textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}
.modal-content textarea {
  resize: vertical; min-height: 120px;
}
.modal-content .btn {
  margin-top: 8px; align-self: stretch;
}
