:root {
  --bg: #0B1026; --bg2: #1B1748; --surface: rgba(255, 255, 255, .06); --text: #EEF1FF; --muted: #B4BBDA;
  --accent: #A9C4FF; --accent-2: #F6C98E; --on-accent: #0B1026; --line: rgba(190, 205, 255, .16); --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); position: relative;
  background: radial-gradient(1200px 700px at 50% -10%, #3A2F86 0%, rgba(58, 47, 134, 0) 60%),
              radial-gradient(900px 500px at 85% 20%, rgba(246, 201, 142, .12), transparent 60%),
              linear-gradient(180deg, var(--bg2) 0%, var(--bg) 55%);
  background-attachment: fixed;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Helvetica Neue", sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; position: relative; z-index: 1; }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.bar { position: sticky; top: 0; z-index: 3; background: rgba(11, 16, 38, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { border-radius: 22.5%; }
nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }
.langs { position: relative; border: 0 !important; padding: 0 !important; }
.langs summary { list-style: none; cursor: pointer; color: var(--accent); font-weight: 500; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; font-size: 12px; }
.langs ul { position: absolute; right: 0; top: calc(100% + 12px); margin: 0; padding: 8px; list-style: none; min-width: 168px; max-height: 70vh; overflow: auto;
  background: #141A3A; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.langs li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); }
.langs li a:hover, .langs li a[aria-current] { background: rgba(169, 196, 255, .14); }

/* String lights hanging under the bar */
.lights { position: absolute; left: 0; right: 0; top: 100%; height: 22px; display: flex; justify-content: space-between; padding: 0 2%; pointer-events: none; overflow: hidden; }
.lights::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 14px; border-bottom: 1px solid rgba(190, 205, 255, .22); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.lights i { width: 6px; height: 9px; margin-top: 5px; border-radius: 50% 50% 45% 45%; background: var(--c); box-shadow: 0 0 8px 2px var(--c); transform-origin: 50% -6px; opacity: .9; }
.lights i:nth-child(4n+1) { --c: #FFCF7A; } .lights i:nth-child(4n+2) { --c: #FF7A8A; }
.lights i:nth-child(4n+3) { --c: #7AE0B8; } .lights i:nth-child(4n) { --c: #8AB4FF; }
.lights i:nth-child(odd) { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .lights i { animation: sway 4s ease-in-out infinite alternate, blink 3.2s ease-in-out infinite; }
  .lights i:nth-child(3n) { animation-delay: -1.3s, -.8s; } .lights i:nth-child(3n+1) { animation-delay: -2.1s, -2s; }
  html { scroll-behavior: smooth; }
}
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes blink { 0%, 100% { opacity: .95; } 50% { opacity: .45; } }

.hero { padding: 88px 0 56px; position: relative; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-icon { width: 148px; height: 148px; margin-bottom: 22px; border-radius: 22.5%; filter: drop-shadow(0 22px 40px rgba(106, 92, 255, .45)); }
.kicker { color: var(--muted); font-size: 15px; margin: 0 0 12px; letter-spacing: .02em; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 680;
  text-wrap: balance; word-break: auto-phrase;
  background: linear-gradient(180deg, #FFFFFF 30%, #C9D6FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 auto 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 16px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; background: rgba(255, 255, 255, .04); }
.btn:hover { border-color: rgba(190, 205, 255, .4); }
.btn.primary { background: #F4F6FF; color: var(--on-accent); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(169, 196, 255, .8); }
.btn.primary:hover { background: #FFFFFF; }
.ground { height: 40px; margin-top: 56px; background: radial-gradient(60% 100% at 50% 100%, rgba(240, 245, 255, .16), transparent 70%); }

h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 28px; font-weight: 650; }
.features { padding: 40px 0 32px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 26px; }
.grid .ico { font-size: 26px; line-height: 1; display: block; margin-bottom: 12px; }
.grid h3 { font-size: 19px; margin: 0 0 6px; }
.grid p { margin: 0; color: var(--muted); font-size: 16px; }

.weather { padding: 56px 0 24px; text-align: center; }
.presets { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.preset { border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); padding-bottom: 14px; }
.preset .sky { display: block; height: 92px; margin-bottom: 12px; position: relative; }
.preset .sky::after { content: ""; position: absolute; inset: 0; background-image: var(--fx, none); background-size: var(--fxs, 24px 24px); opacity: .9; }
.preset strong { display: block; font-size: 15px; padding: 0 8px; }
.preset em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; }
.p-light_snow em, .p-clear_night em { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.p-light_snow .sky { background: linear-gradient(#2B3A78, #5868A8); --fx: radial-gradient(circle, #fff 0 1.4px, transparent 2px); --fxs: 22px 26px; }
.p-clear_night .sky { background: radial-gradient(circle at 72% 32%, #FFF6D8 0 9px, rgba(255, 246, 216, .25) 10px, transparent 26px), linear-gradient(#0A0F2C, #2A2468);
  --fx: radial-gradient(circle, #fff 0 .8px, transparent 1.3px); --fxs: 31px 23px; }
.p-snowfall .sky { background: linear-gradient(#3A4A86, #7C8AC0); --fx: radial-gradient(circle, #fff 0 2px, transparent 2.6px); --fxs: 16px 18px; }
.p-blizzard .sky { background: linear-gradient(#5D6A9C, #A9B3D6); --fx: linear-gradient(160deg, transparent 45%, rgba(255,255,255,.9) 47%, transparent 52%); --fxs: 14px 12px; }
.p-drizzle .sky { background: linear-gradient(#26324F, #4D5B7E); --fx: linear-gradient(100deg, transparent 47%, rgba(200, 220, 255, .7) 49%, transparent 51%); --fxs: 12px 20px; }
.p-thunderstorm .sky { background: radial-gradient(ellipse at 50% 0%, rgba(210, 200, 255, .55), transparent 60%), linear-gradient(#141833, #34305E);
  --fx: linear-gradient(100deg, transparent 47%, rgba(200, 220, 255, .55) 49%, transparent 51%); --fxs: 10px 22px; }
.p-windy_autumn .sky { background: linear-gradient(#3B2E5C, #B9724B); --fx: radial-gradient(ellipse 4px 2px, #F2A65A 60%, transparent 70%); --fxs: 26px 22px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

.private { padding: 48px 0 88px; }
.panel { background: linear-gradient(135deg, rgba(169, 196, 255, .12), rgba(246, 201, 142, .08)); border: 1px solid var(--line); border-radius: 28px; padding: 36px 40px; }
.panel h2 { margin-bottom: 10px; }
.panel p { color: var(--muted); margin: 0 0 14px; max-width: 46em; }

.doc { max-width: 760px; padding: 64px 0 88px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p { margin: 0 0 12px; }
.doc .lead { margin: 0 0 20px; font-size: 19px; }
.sub { color: var(--muted); }
.contact { font-size: 19px; font-weight: 600; margin-bottom: 4px !important; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0 !important; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; position: relative; z-index: 1; background: rgba(11, 16, 38, .6); }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 960px) { .presets { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px) {
  .hero { padding-top: 56px; }
  .grid { grid-template-columns: 1fr; }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 28px 24px; }
  nav { gap: 14px; }
}
@media (max-width: 480px) { nav > a { display: none; } h1 { font-size: 34px; } .lead { font-size: 18px; } }
