/* PictoClass website: a dark showcase with a live demo, in the extension's colours (blue bubble, orange accent). */
:root {
  --bg: #0E1117; --surface: #161A23; --surface-2: #1D2230; --line: #262C3B;
  --text: #F4F5F7; --muted: #9BA3B4; --accent: #FF8A3D; --accent-ink: #1A1206; --blue: #2563EB;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 "Nunito", "Segoe UI", system-ui, sans-serif; }
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; line-height: 1.12; max-width: 760px; }
.section-sub { color: var(--muted); font-size: 19px; margin: 14px 0 0; max-width: 640px; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 900; text-decoration: none;
  padding: 14px 22px; border-radius: 12px; transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 9px 15px; font-size: 15px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(14, 17, 23, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 76px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 900; line-height: 1.05; max-width: 900px; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 20px; color: var(--muted); max-width: 720px; margin: 20px auto 30px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; margin: 40px 0 46px; }
.meta div { display: flex; flex-direction: column; align-items: center; }
.meta b { font-size: 34px; font-weight: 900; }
.meta span { color: var(--muted); font-size: 14px; font-weight: 700; }

/* Demo stage */
.stage { position: relative; max-width: 1040px; margin: 0 auto; text-align: left; }
.glow { position: absolute; inset: 10% 8% -4%; background: radial-gradient(closest-side, rgba(37, 99, 235, .55), transparent); filter: blur(40px); }
.frame { position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.titlebar { height: 38px; background: #ECEFF4; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #CBD2DD; }
.titlebar i:nth-child(1) { background: #F87171; } .titlebar i:nth-child(2) { background: #FBBF24; } .titlebar i:nth-child(3) { background: #34D399; }
.url { margin-left: 14px; background: #fff; border-radius: 7px; padding: 3px 14px; font-size: 13px; color: #6B7280; font-weight: 600; }
.canvas { position: relative; height: 560px; background: #E8EEF6; color: #0F172A; overflow: hidden; }
.slide { position: absolute; inset: 22px; background: #fff; border-radius: 12px; padding: 40px 44px; }
.slide h3 { font-size: 44px; font-weight: 900; }
.slide p { font-size: 20px; color: #475569; max-width: 380px; margin: 12px 0 18px; }
.slide ul { font-size: 20px; color: #334155; line-height: 1.8; padding-left: 24px; margin: 0; }
.sky { position: absolute; right: 44px; bottom: 44px; width: 330px; height: 250px; border-radius: 14px; background: linear-gradient(#BAE6FD, #E0F2FE); overflow: hidden; }
.sun { position: absolute; right: 40px; top: 36px; width: 84px; height: 84px; border-radius: 50%; background: #FACC15; }
.cloud { position: absolute; left: 60px; top: 100px; width: 180px; height: 70px; border-radius: 40px; background: #fff; box-shadow: 40px -30px 0 10px #fff, 100px -10px 0 0 #fff; }
.try { position: absolute; right: 100px; bottom: 44px; background: #111827; color: #fff; font-weight: 800; font-size: 15px; padding: 10px 14px; border-radius: 12px; animation: nudge 1.6s ease-in-out infinite; }
.try::after { content: ''; position: absolute; right: -18px; top: calc(50% - 9px); border: 9px solid transparent; border-left-color: #111827; }
@keyframes nudge { 50% { transform: translateX(-6px); } }

/* Demo bubble, panel and card (same look as the extension) */
.d-bubble { all: unset; position: absolute; right: 26px; bottom: 30px; width: 58px; height: 58px; border-radius: 50%; background: var(--blue); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.95); z-index: 6; }
.d-bubble svg { width: 32px; height: 32px; }
.d-panel { position: absolute; right: 96px; bottom: 26px; width: 330px; background: #fff; border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.3); padding: 12px; z-index: 5;
  display: none; font-size: 13px; color: #111827; }
.d-panel.open { display: block; }
.d-panel .ph { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 8px; }
.d-panel .ph span { color: #9CA3AF; font-weight: 600; }
.d-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.d-tile { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; border-radius: 8px; font-size: 11px; font-weight: 700; text-align: center; }
.d-tile:hover { background: #F3F4F6; }
.d-tile .ic { width: 42px; height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.d-tile .ic svg { width: 28px; height: 28px; }
.d-langs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #E5E7EB; }
.chip { all: unset; cursor: pointer; padding: 4px 10px; border-radius: 999px; box-shadow: 0 0 0 1px #E5E7EB; font-weight: 700; font-size: 12px; }
.chip.on { background: var(--blue); color: #fff; box-shadow: none; }

.d-card { position: absolute; left: 520px; top: 40px; width: 320px; background: #fff; border-radius: 18px; overflow: hidden; color: #111827; z-index: 4;
  box-shadow: 0 16px 40px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.06); cursor: grab; touch-action: none; user-select: none; animation: pop .2s ease-out; }
.d-card.drag { cursor: grabbing; }
@keyframes pop { from { transform: scale(.88); opacity: 0; } }
.d-card .ic { height: 150px; display: flex; align-items: center; justify-content: center; }
.d-card .ic svg { width: 110px; height: 110px; }
.d-card .title { font-size: 34px; font-weight: 900; text-align: center; padding: 10px 10px 8px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.d-row { margin: 0 14px 14px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 8px; background: #F3F4F6; border-radius: 12px; padding: 8px 10px; }
.d-half { display: flex; align-items: center; gap: 6px; min-width: 0; }
.d-half.nlh { border-left: 2px solid #D1D5DB; padding-left: 10px; }
.d-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.d-txt small { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #6B7280; }
.d-txt span { font-size: 19px; font-weight: 700; unicode-bidi: plaintext; }
.d-half.nlh .d-txt span { font-weight: 600; color: #374151; }
.play { all: unset; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.play svg { width: 12px; height: 12px; }
.pair { all: unset; cursor: pointer; height: 28px; padding: 0 7px; border-radius: 14px; background: #111827; display: flex; align-items: center; }
.pair svg { width: 11px; height: 11px; }
.play.on, .pair.on { animation: pulse .7s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }

/* Why */
.why { padding: 110px 0 60px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.why-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.why-grid h3 { font-size: 20px; font-weight: 900; margin: 16px 0 8px; }
.why-grid p { color: var(--muted); margin: 0; }
.ico { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; }
.ico-blue { background: rgba(37, 99, 235, .18); color: #7FA8FF; }
.ico-orange { background: rgba(255, 138, 61, .16); color: var(--accent); }
.ico-green { background: rgba(22, 163, 74, .18); color: #4ADE80; }
.ico-purple { background: rgba(124, 58, 237, .2); color: #C4B5FD; }

/* Showcase */
.showcase { padding: 60px 0 90px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 40px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); border-color: #3A4256; }
.tile .ic { width: 76px; height: 76px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.tile .ic svg { width: 50px; height: 50px; }
.tile b { font-size: 16px; font-weight: 800; }

/* Install */
.install { padding: 90px 0; background: linear-gradient(180deg, transparent, rgba(37, 99, 235, .12)); border-top: 1px solid var(--line); }
.install-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 19px; }
.steps b { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--accent); flex: none; }
.browsers { color: var(--muted); margin: 14px 0 0; font-size: 15px; }
.install-shot { border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); border: 1px solid var(--line); }

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
.foot-inner { display: flex; gap: 22px; align-items: center; }
.foot-inner span { margin-right: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Smaller screens: demo scales down, grids stack */
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .install-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner .btn-sm { margin-left: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .meta { gap: 22px; }
  .canvas { height: 620px; }
  .slide { padding: 24px; }
  .slide h3 { font-size: 30px; }
  .slide p, .slide ul { font-size: 16px; }
  .sky { display: none; }
  .d-card { left: 16px; top: 190px; width: calc(100% - 32px); max-width: 320px; }
  .d-panel { right: 12px; left: 12px; width: auto; bottom: 100px; }
  .try { right: 96px; bottom: 40px; font-size: 13px; }
}

/* Why-card icons are real pictograms (site.js) */
.ico svg { width: 30px; height: 30px; }
.btn .short { display: none; }
@media (max-width: 760px) { .btn .long { display: none; } .btn .short { display: inline; } }
