:root {
  --bg: #0b0c10;
  --card: #11131a;
  --fg: #e8edf2;
  --muted: #a7b1bb;
  --brand: #4da3ff;
  --accent: #7cf8a9;
  --border: #222634;
}

body[data-theme='light'] {
  --bg: #f5f7fb;
  --card: #ffffff;
  --fg: #111322;
  --muted: #4f5b68;
  --brand: #2f6bff;
  --accent: #1dc986;
  --border: #d8e0eb;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); background: rgba(11,12,16,0.6); border-bottom: 1px solid var(--border); }
.brand img.logo { display: block; height: 28px; width: auto; }
.brand .dot { width: 10px; height: 10px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 0 16px rgba(77,163,255,.5); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; }
.nav .links { display: flex; gap: 16px; align-items: center; }
.lang { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; background: var(--card); }
.lang a { color: var(--muted); padding: 2px 8px; border-radius: 6px; }
.lang a.active { color: var(--fg); background: #1a1f2b; }

.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--fg); cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; font-size: 20px; }
.theme-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.theme-toggle .icon { line-height: 1; }
.theme-toggle .icon.sun { display: none; }
.theme-toggle .icon.moon { display: inline; }
body[data-theme='light'] .theme-toggle { background: var(--card); }
body[data-theme='light'] .theme-toggle .icon.sun { display: inline; }
body[data-theme='light'] .theme-toggle .icon.moon { display: none; }
body[data-theme='light'] .theme-toggle:hover { background: rgba(0, 0, 0, 0.05); }

.hero { padding: 64px 16px 24px; text-align: center; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: clamp(16px, 2.6vw, 20px); margin: 0 auto; max-width: 820px; }
.cta { margin-top: 22px; display: inline-flex; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--fg); font-weight: 600; font-size: 16px; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #06131b; border: none; }
.btn span.kbd { font: 12px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; opacity: .9; }

/* Hero visual enhancements */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: -25% -10% -15% -10%;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(77,163,255,.35), transparent 70%),
    radial-gradient(50% 50% at 70% 40%, rgba(124,248,169,.28), transparent 70%),
    radial-gradient(40% 40% at 50% 80%, rgba(124,248,169,.22), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: floatGlow 22s ease-in-out infinite alternate;
}
@keyframes floatGlow {
  0% { transform: translateY(-10px) rotate(0deg); opacity: .45; }
  100% { transform: translateY(10px) rotate(8deg); opacity: .65; }
}

.title-gradient {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 18px rgba(77,163,255,.18);
}
.fuck-tap {
  appearance: none; -webkit-appearance: none; border: 2px solid rgba(77,163,255,.55);
  padding: 2px 10px; margin: 0 4px 0 0; border-radius: 10px;
  background: transparent;
  cursor: pointer; font: inherit; line-height: 1.1;
  box-shadow: 0 4px 20px rgba(77,163,255,.20);
}
.fuck-tap.title-gradient { background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fuck-tap:hover { box-shadow: 0 6px 24px rgba(77,163,255,.32); transform: translateY(-1px); }
.fuck-tap:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 6px; }
.fuck-tap.pop {
  animation: fuckPop .28s ease-out; filter: drop-shadow(0 8px 24px rgba(77,163,255,.35));
}
@keyframes fuckPop {
  0% { transform: scale(1); }
  55% { transform: scale(1.16) rotate(-1deg); }
  100% { transform: scale(1); }
}

/* Floating fucks layer */
.fuck-layer { position: fixed; inset: 0; pointer-events: none; z-index: 999; }
.fuck-splash {
  position: absolute; user-select: none; pointer-events: none;
  font-weight: 800; font-size: clamp(20px, 5vw, 48px);
  color: var(--fg); text-shadow: 0 10px 26px rgba(0,0,0,.35);
  opacity: 0; transform: translate3d(0,0,0) scale(.8);
  animation: splash 1.2s ease-out forwards;
}
@keyframes splash {
  0% { opacity: 0; transform: translate3d(0,0,0) scale(.8) rotate(0deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0px), var(--dy, -80px), 0) scale(1.05) rotate(var(--rot, 8deg)); }
}
.launch-note { margin-top: 10px; }
.badge {
  display: inline-block; padding: 6px 10px; border-radius: 999px;
  background: rgba(124,248,169,.12); color: var(--accent);
  border: 1px solid rgba(124,248,169,.28);
  font-size: 12px; letter-spacing: .3px;
}
.glow { box-shadow: 0 8px 28px rgba(77,163,255,.25), 0 2px 10px rgba(124,248,169,.18); }
.glow:hover { box-shadow: 0 12px 36px rgba(77,163,255,.35), 0 4px 14px rgba(124,248,169,.22); }

.contact-email { font-size: clamp(22px, 5vw, 36px); margin: 10px 0; }
.contact-email a { color: var(--fg); text-decoration: underline; }
/* Extra button style for the Fuck button */
.btn.danger { background: linear-gradient(135deg, #ff477e, #ff9c4d); color: #0b0c10; border: none; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 24px 16px 8px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

section { padding: 8px 16px; }
.section-title { margin: 24px 0 12px; font-size: 24px; }
ul { margin: 0; padding-left: 18px; }
li { margin: 6px 0; color: var(--fg); font-size: 16px; }
.muted { color: var(--muted); }

.form-embed { margin: 28px auto; max-width: 880px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.form-embed iframe { width: 100%; border: 0; background: #fff; }

footer { margin-top: 24px; padding: 24px 16px 60px; border-top: 1px solid var(--border); color: var(--muted); }

/* Highlight block for core claims */
.highlight { max-width: 960px; margin: 28px auto 8px; padding: 18px 18px 10px; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(26,31,43,.6), rgba(17,19,26,.6)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.highlight h2 { margin: 0 0 10px; font-size: 24px; }
.highlight ul { margin: 0; padding-left: 18px; }
.highlight li { margin: 8px 0; }
.lang-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background: var(--card); color: var(--fg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }

/* Compare tables */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }

/* FAQ expand/collapse */
#faq-list details { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
#faq-list summary { cursor: pointer; font-weight: 600; outline: none; }
#faq-list p { margin: 8px 0 0; color: var(--muted); }

body[data-theme='light'] header { background: rgba(245, 247, 251, 0.85); }
/* Do not override gradient buttons in light theme */
body[data-theme='light'] .btn:not(.primary):not(.danger) { background: var(--card); color: var(--fg); }
body[data-theme='light'] .btn.primary { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #06131b; }
body[data-theme='light'] .btn.danger { background: linear-gradient(135deg, #ff477e, #ff9c4d); color: #0b0c10; }
body[data-theme='light'] .lang { background: rgba(255, 255, 255, 0.9); border-color: rgba(216, 224, 235, 0.8); }
body[data-theme='light'] .lang a.active { background: rgba(47, 107, 255, 0.14); color: var(--brand); }
body[data-theme='light'] header { border-bottom: 1px solid rgba(216, 224, 235, 0.7); box-shadow: 0 6px 24px rgba(35, 55, 90, 0.08); }

body[data-theme='light'] .highlight {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 243, 255, 0.94));
  border-color: rgba(216, 224, 235, 0.8);
  box-shadow: 0 18px 40px rgba(36, 56, 96, 0.08);
}
body[data-theme='light'] .highlight h2 { color: var(--fg); }
body[data-theme='light'] .highlight .card {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(36, 56, 96, 0.06);
}
body[data-theme='light'] .highlight .card h3 { color: var(--fg); }
body[data-theme='light'] .highlight .card li { color: var(--muted); }

body[data-theme='light'] .form-embed { border-color: rgba(216, 224, 235, 0.9); box-shadow: 0 12px 32px rgba(29, 45, 78, 0.08); }
body[data-theme='dark'] .form-embed iframe {
  filter: invert(0.92) hue-rotate(180deg);
  transition: filter 0.2s ease;
}
body[data-theme='light'] .form-embed iframe { filter: none; }
