:root {
  --page: #090d17;
  --panel: #111827;
  --panel-2: #151e30;
  --line: rgba(255, 255, 255, .1);
  --text: #f4f7fb;
  --muted: #96a2b7;
  --blue: #2d5bff;
  --green: #d9ff00;
  --pink: #fe457d;
  --ink: #111111;
  --card: rgba(249, 249, 250, .92);
  --card-blue: rgba(212, 247, 255, .94);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 16% -8%, rgba(45, 91, 255, .2), transparent 32rem),
    radial-gradient(circle at 88% 4%, rgba(254, 69, 125, .12), transparent 28rem),
    var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, select { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 54px;
}

.hero__eyebrow,
.section-kicker {
  color: #8aa4ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(217, 255, 0, .85);
}

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  max-width: 920px;
  margin: 20px 0 20px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero h1 em {
  color: transparent;
  background: linear-gradient(92deg, #f9fbff, #a9bcff 42%, #ff8cb0 85%);
  background-clip: text;
  -webkit-background-clip: text;
  font: inherit;
  font-style: normal;
}

.hero > p {
  max-width: 860px;
  margin-bottom: 28px;
  color: #b8c1d1;
  font-size: 16px;
  line-height: 1.8;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-row span {
  padding: 10px 13px;
  color: #97a5bb;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 26, 43, .8);
  font-size: 11px;
}

.proof-row b { color: #edf2ff; }

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(430px, 1.15fr);
  gap: 40px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(20, 29, 47, .96), rgba(10, 15, 27, .98));
  box-shadow: 0 40px 110px rgba(0, 0, 0, .38);
}

.control-card { min-width: 0; }

.control-card h2,
.gallery-section h2,
.anatomy h2 {
  margin: 8px 0 10px;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -.035em;
}

.section-copy,
.section-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

fieldset {
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

legend,
.select-row > span {
  display: block;
  margin-bottom: 9px;
  color: #78869d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.segmented {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(7, 12, 22, .75);
}

.segmented button {
  flex: 1;
  min-width: 0;
  padding: 9px 8px;
  color: #8f9bb0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: .18s ease;
}

.segmented button:hover { color: white; }

.segmented button.active {
  color: #101522;
  background: #f4f7ff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
}

.segmented button:disabled {
  opacity: .28;
  cursor: not-allowed;
}

.select-row {
  display: block;
  margin-top: 20px;
}

.select-row select {
  width: 100%;
  padding: 12px 38px 12px 13px;
  color: #eaf0fb;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 13px;
  outline: 0;
  background: #0b1220;
  font-size: 12px;
  cursor: pointer;
}

.select-row select:focus { border-color: #829eff; }

.rc-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rc-switch button {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 9px;
  align-items: center;
  padding: 10px 12px;
  color: #94a1b5;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: rgba(8, 14, 25, .75);
  cursor: pointer;
}

.rc-switch button b {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #aab7cc;
  border-radius: 9px;
  background: #202a3b;
}

.rc-switch button span { font-size: 11px; }

.rc-switch button.active {
  color: #dfe7f5;
  border-color: rgba(116, 147, 255, .62);
  background: rgba(45, 91, 255, .12);
}

.rc-switch button.active b {
  color: white;
  background: var(--blue);
}

.rc-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.rc-readout span {
  padding: 8px 5px;
  color: #74849a;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  background: rgba(8, 13, 24, .65);
  font-size: 8px;
  text-transform: uppercase;
}

.rc-readout b {
  display: block;
  margin-top: 3px;
  color: #dce5f4;
  font-size: 12px;
  text-transform: none;
}

.shuffle {
  width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  color: #0b1220;
  border: 0;
  border-radius: 13px;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(217, 255, 0, .13);
}

.shuffle span { margin-right: 5px; font-size: 16px; }

.preview-wrap {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.phone {
  position: relative;
  width: min(100%, 460px);
  min-height: 770px;
  padding: 22px 18px 55px;
  overflow: hidden;
  color: #111;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 46px;
  background: #cfd4d9;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .45), inset 0 0 0 5px rgba(255, 255, 255, .06);
}

.wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 58% 26%, rgba(0, 223, 174, .68), transparent 28%),
    radial-gradient(circle at 38% 64%, rgba(40, 122, 255, .66), transparent 33%),
    linear-gradient(140deg, #d8d7d6 8%, #ccd0d4 45%, #b3c1cf 100%);
  filter: saturate(.92);
}

.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(239, 242, 244, .34);
  backdrop-filter: blur(18px);
}

.status-row,
.date-row,
.notification-stage,
.shade-footer,
.home-pill { position: relative; z-index: 1; }

.status-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px 0;
  color: rgba(255, 255, 255, .95);
  font-size: 11px;
  font-weight: 800;
}

.date-row {
  display: flex;
  gap: 11px;
  align-items: baseline;
  padding: 24px 10px 20px;
  color: white;
}

.date-row b { font-size: 30px; letter-spacing: -.04em; }
.date-row span { font-size: 16px; font-weight: 750; }

.notification-stage {
  display: grid;
  align-content: start;
  min-height: 500px;
}

.notification-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 34px;
  background: var(--card);
  box-shadow: 0 13px 34px rgba(25, 36, 47, .16);
  transition: min-height .22s ease, background .22s ease;
}

.notification-card.type-ongoing { background: var(--card-blue); }

.notif-shell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 14px 14px 14px 16px;
}

.app-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
}

.chevron {
  position: relative;
  width: 24px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.chevron::before,
.chevron::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 11px;
  height: 3px;
  border-radius: 3px;
  background: #707174;
}

.chevron::before { left: 2px; transform: rotate(45deg); }
.chevron::after { right: 2px; transform: rotate(-45deg); }
.is-expanded .chevron::before { transform: rotate(-45deg); }
.is-expanded .chevron::after { transform: rotate(45deg); }

.normal-small {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 91px;
  gap: 12px;
  align-items: center;
}

.item-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}

.item-media img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.item-media.days {
  display: flex;
  flex-direction: column;
  color: #ff5a8b;
  font-weight: 900;
  line-height: .9;
}

.item-media.days b { font-size: 24px; }
.item-media.days span { margin-top: 4px; font-size: 15px; }

.item-title {
  display: -webkit-box;
  overflow: hidden;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 7px 8px;
  overflow: hidden;
  color: white;
  border-radius: 7px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.cta > span {
  position: relative;
  z-index: 1;
}

/* Android 9+ uses the APK's auto-start animated-image drawables here.
   These are the exact density-split GIFs: 20 frames / 1 second. */
.cta.blue { background-image: url("assets/btn_small_1.gif"); }
.cta.green { color: #111; background-image: url("assets/btn_small_2.gif"); }
.cta.pink { background-image: url("assets/btn_small_3.gif"); }

.normal-big .cta.blue,
.heads-content .cta.blue,
.ad-big .cta.blue,
.ongoing-big .cta.blue { background-image: url("assets/btn_big_1.gif"); }

.normal-big .cta.green,
.heads-content .cta.green,
.ad-big .cta.green,
.ongoing-big .cta.green { background-image: url("assets/btn_big_2.gif"); }

.normal-big .cta.pink,
.heads-content .cta.pink,
.ad-big .cta.pink,
.ongoing-big .cta.pink { background-image: url("assets/btn_big_3.gif"); }

.expanded-shell {
  min-height: 500px;
  padding: 15px 22px 26px;
}

.notif-header {
  display: grid;
  grid-template-columns: 30px 1fr 24px;
  gap: 9px;
  align-items: center;
  color: #222;
  font-size: 13px;
  font-weight: 760;
}

.notif-header .app-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.normal-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 415px;
  padding: 40px 12px 4px;
  text-align: center;
}

.normal-big .item-media {
  width: 86px;
  height: 86px;
}

.normal-big .item-media img {
  width: 78px;
  height: 78px;
}

.normal-big .item-media.days b { font-size: 58px; }
.normal-big .item-media.days span { margin-top: 12px; font-size: 25px; }

.normal-big .item-title {
  display: block;
  width: 100%;
  margin: 45px 0 0;
  font-size: 18px;
  line-height: 1.55;
  text-align: center;
}

.normal-big .cta {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  font-size: 16px;
}

.heads-shell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  gap: 12px;
  min-height: 150px;
  padding: 15px 14px 15px 16px;
}

.heads-shell > .app-icon { align-self: start; }

.heads-content {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 9px;
  align-content: start;
}

.heads-content .item-title { align-self: center; }
.heads-content .cta { grid-column: 1 / -1; margin-top: 10px; min-height: 40px; }

.ad-small {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 12px;
  align-items: center;
}

.ad-small .item-title { font-size: 12px; font-weight: 600; }
.ad-small .cta { min-height: 36px; }

.ad-big {
  display: flex;
  flex-direction: column;
  min-height: 225px;
  padding: 38px 12px 4px;
  text-align: center;
}

.ad-big .item-title {
  display: block;
  font-size: 16px;
  text-align: center;
}

.ad-big .cta { width: 100%; margin-top: auto; min-height: 44px; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  min-width: 0;
}

.quick-action {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 3px 4px;
  color: #111;
  border-right: 1px solid rgba(255, 255, 255, .9);
  font-size: 9px;
  font-weight: 700;
}

.quick-action:last-child { border-right: 0; }

.quick-action img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.quick-action .dot {
  position: absolute;
  top: 0;
  right: 12%;
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 50%;
  background: #f81c1c;
}

.ongoing-big {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 38px 4px 4px;
}

.ongoing-big .quick-action img { width: 34px; height: 34px; }
.ongoing-big .quick-action { font-size: 11px; }
.ongoing-big .cta { width: calc(100% - 18px); min-height: 44px; margin: auto 9px 0; }

.filter-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 82px;
  gap: 11px;
  align-items: center;
}

.filter-row > img { width: 44px; height: 44px; object-fit: contain; }

.filter-info { min-width: 0; }

.filter-title {
  color: #111;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.filter-title b { color: #ff5b03; }

.source-icons {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.source-icons span,
.source-icons img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.source-icons span {
  display: grid;
  place-items: center;
  color: #4769b3;
  background: #cfddff;
  font-size: 10px;
  font-weight: 900;
}

.filter-row .cta {
  min-height: 34px;
  color: #111;
  background-image: none;
  background: var(--green);
}

.shade-footer {
  position: absolute;
  right: 24px;
  bottom: 34px;
  left: 24px;
  display: flex;
  justify-content: space-between;
}

.shade-footer span {
  padding: 10px 17px;
  color: white;
  border-radius: 999px;
  background: rgba(103, 108, 117, .38);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.home-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: 116px;
  height: 5px;
  border-radius: 5px;
  background: rgba(45, 48, 52, .55);
  transform: translateX(-50%);
}

.preview-caption {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
  color: #dbe4f2;
}

.preview-caption .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 15px rgba(254, 69, 125, .85);
}

.preview-caption b,
.preview-caption small { display: block; }
.preview-caption b { font-size: 12px; }
.preview-caption small { margin-top: 3px; color: #74849a; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }

.source-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 94px;
}

.source-strip article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 38, .78);
}

.source-strip span,
.source-strip b,
.source-strip small { display: block; }
.source-strip span { color: #a9baff; font-size: 17px; font-weight: 900; }
.source-strip b { margin-top: 6px; font-size: 11px; }
.source-strip small { margin-top: 4px; color: #68778d; font: 8px ui-monospace, monospace; }

.gallery-section { margin-bottom: 96px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin: 8px 0 25px;
}

.section-heading h2 { margin-bottom: 7px; }
.section-heading p { margin-bottom: 0; }

.section-heading > span {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: #8390a5;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #131c2d, #0d1422);
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}

.gallery-head b { font-size: 13px; }
.gallery-head span { color: #6d7e95; font: 8px ui-monospace, monospace; }

.gallery-preview {
  min-height: 255px;
  padding: 18px;
  border-radius: 19px;
  background:
    radial-gradient(circle at 75% 20%, rgba(0, 210, 170, .45), transparent 40%),
    linear-gradient(145deg, #d6d8da, #a8b8c8);
}

.gallery-preview .notification-card { max-width: 470px; margin: auto; }
.gallery-preview .expanded-shell { min-height: 360px; }
.gallery-preview .normal-big { min-height: 290px; padding-top: 24px; }
.gallery-preview .normal-big .item-title { margin-top: 24px; }

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.gallery-meta span {
  padding: 5px 7px;
  color: #8493a9;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  font-size: 8px;
}

.anatomy { margin-bottom: 70px; }

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 25px;
}

.anatomy-grid article {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #101827;
}

.anatomy-grid .number {
  color: var(--green);
  font: 11px ui-monospace, monospace;
}

.anatomy-grid h3 { margin: 30px 0 10px; font-size: 17px; }

.anatomy-grid p {
  margin-bottom: 0;
  color: #8e9cb1;
  font-size: 11px;
  line-height: 1.75;
}

code {
  color: #a9bbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.limits {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 22px;
  color: #9aa7bb;
  border: 1px solid rgba(217, 255, 0, .2);
  border-left: 4px solid var(--green);
  border-radius: 17px;
  background: rgba(217, 255, 0, .04);
}

.limits b { color: #eaf0f9; font-size: 13px; }
.limits p { margin: 0; font-size: 11px; line-height: 1.75; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 80px auto 0;
  padding: 28px 0 40px;
  color: #5f6d82;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 12px;
  color: white;
  border-radius: 10px;
  background: #b2214d;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta.blue { background-color: var(--blue); background-image: none; }
  .cta.green { background-color: var(--green); background-image: none; }
  .cta.pink { background-color: var(--pink); background-image: none; }
}

@media (max-width: 960px) {
  .workbench { grid-template-columns: 1fr; }
  .control-card { max-width: 620px; margin: auto; }
  .anatomy-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero, main, footer { width: min(100% - 24px, 1180px); }
  .hero { padding-top: 48px; }
  .workbench { padding: 15px; border-radius: 25px; }
  .control-card { padding: 8px 4px 16px; }
  .phone { min-height: 690px; border-radius: 37px; }
  .normal-small { grid-template-columns: 42px minmax(0, 1fr) 78px; gap: 8px; }
  .item-media { width: 42px; height: 42px; }
  .item-media img { width: 41px; height: 41px; }
  .item-title { font-size: 13px; }
  .cta { font-size: 11px; }
  .source-strip { grid-template-columns: 1fr 1fr; margin-bottom: 72px; }
  .gallery { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > span { display: inline-block; margin-top: 12px; }
  .limits { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 470px) {
  .hero h1 { font-size: 43px; }
  .proof-row span { font-size: 9px; }
  .segmented { overflow-x: auto; }
  .segmented button { min-width: max-content; }
  .phone { padding-inline: 12px; min-height: 650px; }
  .notif-shell { grid-template-columns: 39px minmax(0, 1fr) 20px; gap: 8px; padding-inline: 12px 10px; }
  .app-icon { width: 39px; height: 39px; }
  .normal-small { grid-template-columns: 38px minmax(0, 1fr) 72px; gap: 7px; }
  .item-media { width: 38px; height: 38px; }
  .item-media img { width: 37px; height: 37px; }
  .item-title { font-size: 12px; }
  .cta { padding-inline: 4px; font-size: 10px; }
  .expanded-shell { min-height: 450px; }
  .normal-big { min-height: 360px; }
  .anatomy-grid { grid-template-columns: 1fr; }
  .source-strip { gap: 7px; }
  footer { display: grid; }
}
