@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #070b0a;
  --panel: #101715;
  --panel-soft: #0c1210;
  --text: #f4f5f1;
  --muted: #9aaba4;
  --mint: #6fffd0;
  --line: rgba(207, 241, 226, .13);
  --display: 'Manrope', 'DM Sans', sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(4, 8, 11, .16), rgba(4, 8, 11, .06) 48%, rgba(4, 8, 11, .18)),
    linear-gradient(180deg, rgba(4, 8, 11, .04), rgba(4, 8, 11, .20)),
    url('assets/background-galaxy-girl.webp') center 32% / cover fixed,
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

.site-shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 19px var(--display); letter-spacing: -.8px; }
.brand-light { font-weight: 400; }
.brand small { display: block; margin-top: 2px; color: #82948b; font: 600 8px var(--body); letter-spacing: 2px; }
.brand-mark {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 2px solid var(--mint);
  border-radius: 50%;
}
.brand-mark i { width: 3px; height: 9px; border-radius: 4px; background: var(--mint); }
.brand-mark i:nth-child(2) { height: 15px; }
.brand-mark i:nth-child(3) { height: 11px; }
nav { display: flex; align-items: center; gap: 33px; color: #c2cec8; font-size: 13px; }
nav a { transition: color .18s ease; }
nav a:hover { color: var(--mint); }
.nav-cta { padding: 11px 17px; border-radius: 24px; background: #f1f4ef; color: #111!important; font-weight: 600; }
.nav-cta span { margin-left: 10px; }

.snapshots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 44px; }
.widget-card {
  min-width: 0;
  min-height: 223px;
  position: relative;
  overflow: hidden;
  padding: 23px 25px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 30, 26, .22), rgba(11, 16, 14, .16));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
}
.widget-card::after { content: ''; position: absolute; width: 190px; height: 135px; right: -85px; bottom: -95px; border-radius: 50%; background: rgba(56, 221, 165, .22); filter: blur(50px); pointer-events: none; }
.weather-card::after { background: rgba(101, 169, 204, .20); }
.widget-topline, .widget-heading { display: flex; align-items: center; }
.widget-topline { justify-content: space-between; gap: 12px; }
.widget-heading { min-width: 0; gap: 12px; }
.widget-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--mint);
  background: rgba(255, 255, 255, .025);
}
.bitcoin-icon { font-size: 20px; font-weight: 600; }
.weather-icon { color: #a9d7f1; font-size: 23px; }
.widget-label { margin: 0 0 4px; color: #83958d; font-size: 8px; font-weight: 700; letter-spacing: 1.7px; }
.widget-card h1, .widget-card h2 { margin: 0; font: 600 16px var(--display); letter-spacing: -.35px; }
.refresh-button {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #9eafa7;
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.refresh-button:hover { color: var(--mint); border-color: rgba(111, 255, 208, .55); }
.refresh-button:disabled { cursor: wait; opacity: .55; }
.refresh-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.refresh-button.is-loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.widget-main { position: relative; z-index: 1; margin-top: 23px; }
.btc-price { display: flex; align-items: baseline; gap: 8px; margin: 0; font: 600 clamp(37px, 4.4vw, 53px)/1 var(--display); letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.btc-currency { color: var(--mint); font-size: .48em; letter-spacing: -.02em; }
.widget-status { min-height: 18px; margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.widget-status[data-state="error"] { color: #ff9f9f; }
.widget-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(207, 241, 226, .09);
  color: #788980;
  font-size: 9px;
}
.widget-footer a { color: #b7c7bf; }
.widget-footer a:hover { color: var(--mint); }
.widget-footer a span { color: var(--mint); margin-left: 2px; }
.weather-main { display: flex; align-items: center; gap: 15px; margin-top: 16px; }
.weather-temperature { margin: 0; font: 600 43px/.95 var(--display); letter-spacing: -.07em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.weather-temperature span { color: #a9d7f1; font-size: .56em; vertical-align: top; margin-left: 2px; }
.weather-summary { min-width: 0; }
.weather-summary p { margin: 0 0 5px; font-size: 16px; font-weight: 600; }
.weather-summary span { color: #a0b0a8; font-size: 13px; }
.weather-details { display: flex; gap: clamp(17px, 4vw, 38px); margin-top: 17px; }
.weather-details span { display: grid; gap: 4px; }
.weather-details small { color: #aab8b1; font-size: 9px; letter-spacing: 1.15px; }
.weather-details b { color: #f0f5f2; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.weather-card .widget-footer { margin-top: 12px; }

.services { padding: 62px 0 82px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.eyebrow { margin: 0; color: var(--mint); font-size: 9px; font-weight: 700; letter-spacing: 1.8px; }
.section-heading h2 { margin: 8px 0 0; font: 600 34px/1.1 var(--display); letter-spacing: -1.8px; }
.section-heading > p { margin: 0 3px 2px; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: right; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-card {
  min-height: 184px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(12, 20, 20, .12), rgba(6, 11, 12, .08));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.service-card::after { content: ''; position: absolute; width: 150px; height: 105px; right: -65px; bottom: -77px; border-radius: 50%; background: var(--card-glow, rgba(32, 189, 139, .34)); filter: blur(42px); pointer-events: none; }
.service-card:hover { transform: translateY(-3px); border-color: rgba(111, 255, 208, .4); background: linear-gradient(135deg, rgba(21, 32, 27, .24), rgba(12, 18, 16, .18)); }
.radio-card { --card-glow: rgba(85, 117, 232, .35); }
.ytdl-card { --card-glow: rgba(215, 173, 77, .27); }
.qb-card { --card-glow: rgba(85, 185, 127, .27); }
.service-icon { width: min(100%, 142px); height: 142px; object-fit: contain; filter: drop-shadow(0 9px 18px rgba(0, 0, 0, .38)); transition: transform .22s ease; }
.service-card:hover .service-icon { transform: scale(1.07); }
.equalizer { display: flex; align-items: center; justify-content: center; gap: 2px; }
.equalizer i { width: 2px; height: 7px; border-radius: 2px; background: var(--mint); }
.equalizer i:nth-child(2) { height: 14px; }
.equalizer i:nth-child(3) { height: 10px; }
.equalizer i:nth-child(4) { height: 5px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 0 24px; border-top: 1px solid var(--line); color: #85938c; font-size: 10px; }
.footer-brand { color: var(--text); font-size: 14px; }
.footer-brand .brand-mark { width: 23px; height: 23px; }
.footer-brand .brand-mark i { height: 7px; }
.footer-brand .brand-mark i:nth-child(2) { height: 12px; }
.footer-brand .brand-mark i:nth-child(3) { height: 9px; }

@media (min-width: 1000px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-card { min-height: 210px; }
}
@media (max-width: 700px) {
  .site-shell { width: min(100% - 40px, 540px); }
  .topbar { min-height: 75px; }
  nav { gap: 16px; font-size: 11px; }
  nav > a:first-child { display: none; }
  .nav-cta { padding: 10px 12px; }
  .nav-cta span { margin-left: 5px; }
  .snapshots { grid-template-columns: 1fr; gap: 12px; padding-top: 26px; }
  .widget-card { min-height: 210px; padding: 20px 20px 16px; }
  .weather-card { min-height: 228px; }
  .btc-price { font-size: 45px; }
  .weather-temperature { font-size: 40px; }
  .services { padding: 47px 0 56px; }
  .section-heading h2 { font-size: 30px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .service-card { min-height: 160px; padding: 14px; }
  .service-icon { width: min(100%, 126px); height: 126px; }
  footer { flex-wrap: wrap; }
  footer > span:nth-child(2) { order: 3; width: 100%; }
}
@media (max-width: 410px) {
  .site-shell { width: calc(100% - 32px); }
  .brand { gap: 8px; font-size: 16px; }
  .brand small { font-size: 7px; }
  nav { gap: 10px; }
  nav > a:nth-child(2) { display: none; }
  .widget-card { padding-inline: 16px; }
  .widget-heading { gap: 9px; }
  .widget-label { font-size: 7px; letter-spacing: 1.2px; }
  .widget-card h1, .widget-card h2 { font-size: 15px; }
  .widget-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .btc-price { font-size: 40px; }
  .weather-details { justify-content: space-between; gap: 8px; }
  .weather-details small { font-size: 8px; letter-spacing: .8px; }
  .widget-footer { font-size: 8px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 140px; }
  .service-icon { width: min(100%, 108px); height: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
