/* ===== Variables ===== */
:root {
  --color-primary: #2d5a4a;
  --color-primary-light: #3d7a64;
  --color-primary-dark: #1e3d32;
  --color-accent: #c9a227;
  --color-accent-light: #e8c547;
  --color-bg: #f7f4ef;
  --color-bg-alt: #efe9df;
  --color-bg-dark: #1a2e28;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-white: #fff;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(45, 90, 74, 0.12);
  --shadow-lg: 0 12px 48px rgba(45, 90, 74, 0.18);
  --header-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.hidden { display: none !important; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 90, 74, 0.08);
  transition: box-shadow 0.3s;
}

.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav a:hover, .nav a.active { color: var(--color-primary); }

.nav a.active {
  color: var(--color-primary);
  font-weight: 600;
  padding: 6px 14px;
  background: rgba(45, 90, 74, 0.1);
  border-radius: 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(45, 90, 74, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 90, 74, 0.4);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover { background: rgba(45, 90, 74, 0.08); }

.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 20px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45, 90, 74, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201, 162, 39, 0.1), transparent),
    linear-gradient(180deg, #e8e2d8 0%, var(--color-bg) 100%);
  z-index: -1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--color-bg));
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 8vw, 56px);
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-content .btn { margin: 0 6px 12px; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ===== Sections ===== */
.section {
  padding: 72px 0;
}

.section-alt { background: var(--color-bg-alt); }

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head.light .section-label { color: var(--color-accent-light); }
.section-head.light h2 { color: var(--color-white); }
.section-head.light p { color: rgba(255,255,255,0.7); }

.section-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 5vw, 36px);
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.section-head p {
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== Device ===== */
.device-showcase {
  display: grid;
  gap: 40px;
}

.device-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.device-mock {
  position: relative;
  z-index: 1;
}

.device-screen {
  width: 200px;
  height: 280px;
  background: linear-gradient(160deg, #1a2e28, #2d5a4a);
  border-radius: 24px;
  border: 4px solid #3d5a50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.pulse-line {
  width: 80%;
  height: 60px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 162, 39, 0.3) 20%,
    rgba(201, 162, 39, 0.8) 50%,
    rgba(201, 162, 39, 0.3) 80%,
    transparent 100%
  );
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cpath d='M0,30 Q25,10 50,30 T100,30 T150,30 T200,30' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60'%3E%3Cpath d='M0,30 Q25,10 50,30 T100,30 T150,30 T200,30' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scaleX(0.95); }
  50% { opacity: 1; transform: scaleX(1); }
}

.device-status {
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-accent-light);
}

.device-base {
  width: 240px;
  height: 16px;
  background: linear-gradient(180deg, #3d5a50, #2a4038);
  border-radius: 0 0 12px 12px;
  margin: -4px auto 0;
}

.device-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(45, 90, 74, 0.2), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.four-diagnosis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.diagnosis-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.diagnosis-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.diagnosis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.diagnosis-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.diagnosis-card h3 {
  font-size: 17px;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.diagnosis-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Advantages ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.advantage-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}

.advantage-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.advantage-num {
  font-size: 32px;
  font-weight: 700;
  color: rgba(45, 90, 74, 0.15);
  line-height: 1;
  margin-bottom: 8px;
}

.advantage-item h3 {
  font-size: 16px;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== Constitution Quiz ===== */
.constitution-section {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #3d6a58 100%);
  position: relative;
  overflow: hidden;
}

.constitution-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.quiz-intro {
  text-align: center;
  position: relative;
  z-index: 1;
}

.constitution-wheel {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 32px;
}

.wheel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-white);
  transform: rotate(calc(var(--i) * 40deg)) translateY(-110px) rotate(calc(var(--i) * -40deg));
  animation: wheelFloat 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.15s);
}

@keyframes wheelFloat {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; transform: rotate(calc(var(--i) * 40deg)) translateY(-115px) rotate(calc(var(--i) * -40deg)); }
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.3;
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.5);
}

.quiz-hint {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* Quiz panel */
.quiz-panel, .quiz-result {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.quiz-progress {
  margin-bottom: 28px;
}

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress, 11%);
  background: var(--color-accent);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.quiz-question {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: 1.5;
  min-height: 60px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: var(--color-white);
  font-size: 15px;
  transition: all 0.25s;
}

.quiz-option:hover, .quiz-option.selected {
  background: rgba(255,255,255,0.2);
  border-color: var(--color-accent);
  transform: translateX(4px);
}

/* Quiz result */
.quiz-result {
  text-align: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  backdrop-filter: blur(8px);
}

.result-badge {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary-dark);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.4);
}

.result-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-white);
  margin-bottom: 12px;
}

.result-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 20px;
}

.result-tips {
  text-align: left;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.result-tips h4 {
  font-size: 14px;
  color: var(--color-accent-light);
  margin-bottom: 8px;
}

.result-tips ul {
  list-style: none;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.result-tips li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.result-tips li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.quiz-result .btn { margin: 6px; }

/* ===== Products ===== */
.constitution-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-white);
  border: 1px solid rgba(45, 90, 74, 0.15);
  transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.product-card:hover { transform: translateY(-4px); }

.product-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--color-bg-alt), #e0d8cc);
}

.product-body { padding: 16px; }

.product-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--color-primary);
  background: rgba(45, 90, 74, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.product-body h4 {
  font-size: 15px;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.product-body p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent);
}

.product-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.products-note {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 24px;
}

.contact-info {
  text-align: center;
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(45, 90, 74, 0.08);
  border-radius: var(--radius);
}

.contact-info p {
  font-size: 14px;
  color: var(--color-primary-dark);
}

.contact-info strong {
  color: var(--color-accent);
}

/* ===== Open Platform ===== */
.api-cards {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.api-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.api-method {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.api-method.get { background: #2e7d52; color: #fff; }
.api-method.post { background: #1565a8; color: #fff; }

.api-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.api-path {
  display: block;
  font-size: 13px;
  color: var(--color-accent-light);
  background: rgba(0,0,0,0.2);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.api-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.api-status {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(201, 162, 39, 0.25);
  color: var(--color-accent-light);
  border-radius: 12px;
}

.api-cta {
  text-align: center;
  margin-bottom: 32px;
}

.api-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.api-doc-preview {
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.doc-header {
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.api-doc-preview pre {
  padding: 16px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
  color: #a8d4b8;
}

.api-doc-preview code { font-family: "Consolas", "Monaco", monospace; }

/* ===== Footer ===== */
.footer {
  padding: 40px 0 calc(24px + var(--safe-bottom));
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--color-white);
  font-weight: 600;
}

.footer-copy { font-size: 12px; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--color-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 24px calc(28px + var(--safe-bottom));
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  color: var(--color-text-muted);
  line-height: 1;
}

.modal-content h3 {
  font-size: 20px;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.modal-content > p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-success {
  text-align: center;
  color: var(--color-primary);
  font-weight: 500;
  padding: 20px;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .device-showcase {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }

  .four-diagnosis {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .api-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal {
    align-items: center;
    padding: 20px;
  }

  .modal-content {
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
  }

  .nav-highlight {
    background: none;
    padding: 14px 0;
  }
}
