:root {
  --bg: #fffaf3;
  --bg-alt: #fff3e3;
  --card: #ffffff;
  --border: #f1e2cf;
  --text: #2a1d12;
  --muted: #7a6656;
  --accent: #ff8a00;
  --accent-2: #f04a12;
  --glow: #ffd24a;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.muted { color: var(--muted); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 243, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--accent-2); }
.lang-toggle {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent-2); }

/* Hero */
.hero {
  padding: 72px 0 80px;
  text-align: center;
  background:
    radial-gradient(700px 380px at 50% 0%, rgba(255, 210, 74, 0.35), transparent 70%),
    radial-gradient(500px 300px at 85% 15%, rgba(255, 138, 0, 0.14), transparent 70%),
    radial-gradient(500px 300px at 15% 25%, rgba(240, 74, 18, 0.08), transparent 70%);
}
.hero-logo {
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 10px 30px rgba(255, 138, 0, 0.35));
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.15;
  margin: 0 auto 20px;
  max-width: 820px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #2a1d12 35%, #c2410c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 640px; margin: 0 auto 36px; }

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s, box-shadow .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 26px rgba(240, 74, 18, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(240, 74, 18, 0.4); }
.btn-disabled {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: default;
}
.note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Device illustration */
.devices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 64px;
}
.screen {
  position: relative;
  background: linear-gradient(160deg, #ffffff, #fff1dc);
  border: 8px solid #2f2721;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(122, 72, 20, 0.18);
}
.monitor .screen { width: 320px; height: 190px; }
.monitor .stand { width: 90px; height: 28px; margin: 0 auto; background: #2f2721; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.ipad .screen { width: 230px; height: 166px; border-width: 10px; border-radius: 18px; }
.window { position: absolute; border-radius: 6px; background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(122, 72, 20, 0.08); }
.w1 { left: 8%; top: 12%; width: 50%; height: 55%; }
.w2 { left: 45%; top: 35%; width: 45%; height: 50%; background: rgba(255, 138, 0, 0.16); }
.w3 { left: 10%; top: 14%; width: 80%; height: 70%; background: rgba(255, 210, 74, 0.3); }
.link-wave { display: flex; gap: 8px; }
.link-wave span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s infinite ease-in-out;
}
.link-wave span:nth-child(2) { animation-delay: .2s; }
.link-wave span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(26px, 4vw, 36px); text-align: center; margin: 0 0 48px; letter-spacing: -0.01em; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(122, 72, 20, 0.04);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(255, 138, 0, 0.5); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(122, 72, 20, 0.1); }
.card .icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { text-align: center; padding: 12px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700; margin-bottom: 14px;
}
.steps h3 { margin: 0 0 8px; }
.steps p { margin: 0; color: var(--muted); }

.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.req { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.req h3 { margin: 0 0 12px; font-size: 17px; }
.req ul { margin: 0; padding-left: 18px; color: var(--muted); }
.req li::marker { color: var(--accent); }
.req li + li { margin-top: 6px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0; font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; }
.footer-inner > div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.footer p { margin: 0; }

@media (max-width: 720px) {
  .nav-links a { display: none; }
  .hero { padding: 48px 0 56px; }
  .hero-logo { width: 112px; height: 112px; }
  .devices { flex-direction: column; gap: 20px; }
  .monitor .screen { width: 260px; height: 156px; }
  .link-wave { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
