/* Hello Albanian: Lakeglass. Glass windows over a lake whose sky follows the time of day. One dark look on purpose. */
:root {
  color-scheme: dark;
  --t1: #fff;
  --t2: rgba(255, 255, 255, 0.82);
  --t3: rgba(255, 255, 255, 0.62);
  --t4: rgba(255, 255, 255, 0.42);
  --glass: rgba(108, 116, 132, 0.26);
  --glass2: rgba(124, 132, 148, 0.36);
  --edge: rgba(255, 255, 255, 0.16);
  --well: rgba(0, 0, 0, 0.2);
  --line: rgba(255, 255, 255, 0.1);
  --aqua: #64d2ff;
  --indigo: #5e5ce6;
  --green: #30d158;
  --amber: #ff9f0a;
  --red: #ff453a;
  --yellow: #ffd60a;
  --pink: #ff6482;
  --blur: blur(36px) saturate(1.6);
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --base: #150f28; --sky1: #1b1640; --sky2: #6b3a78; --sky3: #f08a5d; --sun: #ffb36b; --w1: #2b2048; --w2: #0e0a1e;
}
html[data-sky='dawn'] { --base: #15132a; --sky1: #2a2550; --sky2: #9a6a92; --sky3: #f2b28a; --sun: #ffd2ad; --w1: #2c2c55; --w2: #121230; }
html[data-sky='day'] { --base: #0c1a30; --sky1: #174a8a; --sky2: #3f86c6; --sky3: #9fcdee; --sun: #fff3c4; --w1: #22547e; --w2: #0b2440; }
html[data-sky='night'] { --base: #03060f; --sky1: #02040c; --sky2: #0a1430; --sky3: #1b2b55; --sun: #cfd8ff; --w1: #0b1630; --w2: #02040b; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--base); color: var(--t1); }
body { font: 16px/1.47 var(--text); -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: inherit; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
.eyebrow { font: 600 11px/1.3 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--t3); }
.muted { color: var(--t3); }
.small { font-size: 14px; }

/* The lake environment */
.env { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--base); pointer-events: none; }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 42%, var(--sky3) 64%); transition: background 2s; }
.sun { position: absolute; left: 66%; top: 56%; width: 46vmax; height: 46vmax; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0%, transparent 58%); opacity: 0.55; filter: blur(6px); }
html[data-sky='night'] .sun { left: 78%; top: 18%; width: 18vmax; height: 18vmax; opacity: 0.35; }
.hills { position: absolute; left: 0; right: 0; bottom: 30%; height: 18%;
  background: radial-gradient(120% 100% at 20% 100%, var(--w1) 0 60%, transparent 61%), radial-gradient(90% 90% at 80% 100%, var(--w1) 0 55%, transparent 56%); opacity: 0.85; }
.lake { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, var(--w1), var(--w2)); }
.lake::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 9px); }
.stars { position: absolute; inset: 0 0 40% 0; opacity: 0; transition: opacity 2s;
  background-image: radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 25%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 44% 40%, #fff 50%, transparent 51%); }
html[data-sky='night'] .stars, html[data-sky='dusk'] .stars { opacity: 0.8; }

/* Layout */
.app { position: relative; z-index: 1; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .app.with-rail { grid-template-columns: 248px 1fr; } }
main { padding: max(20px, env(safe-area-inset-top)) 20px 120px; max-width: 1180px; width: 100%; margin: 0 auto; }
@media (min-width: 700px) { main { padding: 32px 36px 140px; } }

.glass { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--edge); border-radius: 28px; }
.card { padding: 22px; }
@media (min-width: 700px) { .card { padding: 28px; } }
.row { display: flex; align-items: center; gap: 12px; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 18px; }
.grid2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1.2fr 1fr; } }

/* Rail (laptop) and tab bar (iPad, phone) */
.rail { display: none; }
@media (min-width: 1100px) {
  .rail { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; padding: 26px 16px; }
  .rail .glass { padding: 14px; height: 100%; display: flex; flex-direction: column; gap: 6px; }
  .tabbar { display: none !important; }
}
.brandmark { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; font: 700 17px/1.2 var(--display); }
.brandmark .mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #ff6b4a, #c4161c); font-size: 19px; box-shadow: 0 6px 18px rgba(196, 22, 28, 0.4); }
.navbtn { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 14px; color: var(--t2); transition: background 0.2s, color 0.2s; }
.navbtn:hover { background: rgba(255, 255, 255, 0.08); color: var(--t1); }
.navbtn[aria-current='page'] { background: rgba(255, 255, 255, 0.14); color: var(--t1); }
.navbtn .ic { width: 22px; text-align: center; }
.rail .foot { margin-top: auto; font-size: 13px; color: var(--t3); padding: 8px 12px; }

.tabbar { position: fixed; z-index: 20; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(40, 44, 56, 0.5); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--edge); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
.tabbar .navbtn { flex-direction: column; gap: 2px; min-width: 72px; min-height: 52px; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; justify-content: center; }
.tabbar .navbtn .ic { font-size: 20px; }
.tabbar .navbtn[aria-current='page'] { color: var(--aqua); background: rgba(255, 255, 255, 0.12); }

/* Hello */
.hello { padding: 8px 4px 22px; }
.hello h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 700; line-height: 1.04; }
.hello .en { font-size: clamp(17px, 2.4vw, 21px); color: var(--t2); margin-top: 6px; }
.hello .tag { margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.1); font-size: 13px; color: var(--t2); }

/* Eagle card */
.eagle { display: flex; gap: 20px; align-items: center; }
.eagle .orb { position: relative; width: 112px; height: 112px; flex: none; display: grid; place-items: center; font-size: 58px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0.06) 60%), var(--glass2); box-shadow: inset 0 0 0 1px var(--edge), 0 0 40px rgba(100, 210, 255, 0.25); }
.eagle .orb svg { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); }
.eagle .orb .track { stroke: rgba(255,255,255,0.12); }
.eagle .orb .fill { stroke: var(--aqua); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); }
.eagle h2 { font-size: 26px; }
.stat { display: inline-flex; flex-direction: column; padding: 10px 14px; border-radius: 16px; background: var(--well); min-width: 84px; }
.stat b { font: 700 22px/1.1 var(--display); }
.stat span { font-size: 12px; color: var(--t3); }

/* Level path */
.path { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.lv { scroll-snap-align: start; min-height: 132px; padding: 16px; border-radius: 22px; background: var(--well); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: transform 0.25s cubic-bezier(.2,.8,.2,1), background 0.2s; }
.lv .em { font-size: 30px; }
.lv b { font: 700 18px/1.2 var(--display); }
.lv small { color: var(--t3); }
.lv.open { background: rgba(100, 210, 255, 0.14); border-color: rgba(100, 210, 255, 0.4); }
.lv.open:hover { transform: translateY(-3px); }
.lv.passed { background: rgba(48, 209, 88, 0.14); border-color: rgba(48, 209, 88, 0.4); }
.lv.locked { opacity: 0.55; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 650; background: rgba(255,255,255,0.14); border: 1px solid var(--edge); transition: transform 0.15s, background 0.2s; }
.btn:hover { background: rgba(255,255,255,0.2); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(180deg, #7fdcff, #3fb6f0); color: #04111e; border: 0; box-shadow: 0 8px 26px rgba(100, 210, 255, 0.35); }
.btn.big { min-height: 58px; padding: 16px 30px; font-size: 18px; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* Word tiles */
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wt { padding: 14px; border-radius: 20px; background: var(--well); border: 1px solid var(--line); min-height: 116px; display: flex; flex-direction: column; gap: 2px; transition: transform 0.2s, background 0.2s; }
.wt:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
.wt .p { font-size: 30px; }
.wt b { font: 650 18px/1.2 var(--display); }
.wt small { color: var(--t3); }
.wt.learned { border-color: rgba(48, 209, 88, 0.45); }

/* Lesson card */
.lesson { max-width: 640px; margin: 0 auto; text-align: center; }
.lesson .pic { font-size: 110px; line-height: 1.1; margin: 8px 0 6px; }
.lesson .sq { font: 750 clamp(40px, 8vw, 64px)/1.05 var(--display); }
.lesson .std { margin-top: 6px; font-size: 15px; color: var(--t3); }
.lesson .en { margin-top: 10px; font-size: 22px; color: var(--t2); }
.lesson .say { margin-top: 8px; font: 500 15px/1.4 var(--mono); color: var(--aqua); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.1); font-size: 13px; color: var(--t2); }
.dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.dots i.on { background: var(--aqua); }
.dots i.ok { background: var(--green); }
.dots i.no { background: var(--red); }

/* Check */
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.choice { min-height: 132px; border-radius: 24px; background: var(--well); border: 2px solid var(--line); display: grid; place-items: center; font-size: 64px; transition: transform 0.15s, border-color 0.2s, background 0.2s; }
.choice:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.3); }
.choice.right { border-color: var(--green); background: rgba(48, 209, 88, 0.18); }
.choice.wrong { border-color: var(--red); background: rgba(255, 69, 58, 0.16); animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.prompt { font: 750 clamp(36px, 7vw, 56px)/1.1 var(--display); }

/* Family */
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.person .face { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 20px var(--display); background: linear-gradient(135deg, var(--indigo), var(--aqua)); }

/* Sign-in */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; z-index: 1; }
.gate .glass { max-width: 460px; width: 100%; padding: 34px; text-align: center; }
.gate h1 { font-size: 40px; margin-top: 12px; }
.gate .mark { width: 76px; height: 76px; margin: 0 auto; border-radius: 24px; display: grid; place-items: center; font-size: 42px; background: linear-gradient(135deg, #ff6b4a, #c4161c); box-shadow: 0 14px 40px rgba(196, 22, 28, 0.45); }
.gbtn { margin-top: 26px; width: 100%; }

/* Version chip and What's new */
.ver { position: fixed; right: 14px; bottom: 14px; z-index: 15; font: 600 12px var(--mono); padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,0.35); color: var(--t3); }
@media (max-width: 1099px) { .ver { bottom: auto; top: max(10px, env(safe-area-inset-top)); } }
.sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,0.4); }
.sheet .glass { max-width: 560px; width: 100%; max-height: 82dvh; overflow: auto; padding: 28px; background: rgba(40, 44, 58, 0.72); }
.sheet ul { padding-left: 20px; margin: 12px 0 0; }
.sheet li + li { margin-top: 6px; }

/* Celebration */
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.burst i { position: absolute; top: 40%; left: 50%; width: 10px; height: 14px; border-radius: 3px; animation: fly 1.4s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes fly { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* Opening */
.opening { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5, 8, 20, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fadeout 0.5s 1.7s forwards; }
.opening .egg { font-size: 96px; animation: rise 1.6s cubic-bezier(.2,.8,.2,1) both; text-align: center; }
.opening .egg div { font: 700 28px var(--display); margin-top: 10px; }
@keyframes rise { from { transform: translateY(30px) scale(0.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

.demo-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; gap: 8px; justify-content: center; align-items: center; padding: 6px; font-size: 12px; background: rgba(255, 159, 10, 0.18); color: var(--amber); }
.demo-bar button { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.1); color: var(--t1); font-size: 12px; }
.demo-bar button[aria-pressed='true'] { background: var(--amber); color: #1b1300; }

/* Demo bar sits on top; push the page down so it never covers the greeting */
.demo-bar ~ .app main { padding-top: 64px; }
.demo-bar ~ .app .rail { padding-top: 48px; }

/* ---------- The website (helloalbanian.com) ---------- */
.site { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 18px 20px 60px; }
.site a { color: inherit; text-decoration: none; }
.site-top { position: sticky; top: 12px; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 16px; border-radius: 999px; }
.site-top .brandmark { padding: 0; }
.site-nav { display: none; gap: 22px; margin-left: auto; color: var(--t2); font-size: 15px; }
.site-nav a:hover { color: var(--t1); }
.site-top .btn { margin-left: auto; min-height: 42px; padding: 10px 18px; }
@media (min-width: 860px) { .site-nav { display: flex; } .site-top .btn { margin-left: 8px; } }
.site-hero { display: grid; gap: 28px; align-items: center; padding: 64px 0 40px; }
@media (min-width: 960px) { .site-hero { grid-template-columns: 1.15fr 0.85fr; padding: 96px 0 64px; } }
.site-hero h1 { font-size: clamp(48px, 9vw, 92px); font-weight: 800; line-height: 0.98; margin-top: 14px; }
.hero-tag { font: 650 clamp(22px, 3.4vw, 32px)/1.2 var(--display); margin-top: 12px; background: linear-gradient(90deg, #e9fbff, #64d2ff 48%, #ffd2ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 16px; font-size: 19px; color: var(--t2); max-width: 560px; }
.hero-demo { padding: 26px; }
.hd-hello { font: 750 38px/1.1 var(--display); margin-top: 6px; }
.hd-card { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--well); }
.hd-card b { display: block; font: 650 20px var(--display); }
.hd-card small { color: var(--t3); }
.hd-pic { font-size: 34px; }
.hd-egg { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 40px; }
.hd-egg span { font-size: 15px; color: var(--t2); }
.site-sec { padding: 48px 0 8px; }
.site-sec h2 { font-size: clamp(30px, 5vw, 44px); margin-top: 8px; }
.tiles3 { display: grid; gap: 16px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .tiles3 { grid-template-columns: repeat(3, 1fr); } }
.tiles3 h3, .grid2 h3 { font-size: 22px; margin-top: 8px; }
.tiles3 p { margin-top: 8px; }
.big-em { font-size: 40px; }
.road { display: grid; gap: 12px; margin-top: 22px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.road-step { padding: 20px; display: flex; flex-direction: column; gap: 4px; border-radius: 24px; }
.road-step b { font: 700 20px var(--display); }
.road-step small { color: var(--t3); }
.private { display: grid; gap: 18px; }
@media (min-width: 860px) { .private { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.private ul { margin: 0; padding-left: 20px; color: var(--t2); }
.private li + li { margin-top: 8px; }
.site-cta { text-align: center; padding: 72px 0 40px; }
.site-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 26px 4px 0; border-top: 1px solid var(--line); margin-top: 30px; font-size: 14px; color: var(--t2); }
