:root {
  color-scheme: dark;
  --bg: #041019;
  --panel: rgba(9, 30, 43, .88);
  --line: rgba(150, 220, 255, .13);
  --text: #f5fbff;
  --muted: #8da7b7;
  --ice: #69dbff;
  --blue: #0b82ef;
  --green: #55e39a;
  --warning: #ffb45d;
  --radius: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 0%, #0b344b 0, transparent 34%),
    linear-gradient(180deg, #061722, #030b11 78%);
}

button,
input {
  font: inherit;
}

button {
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(105, 219, 255, .28);
  outline-offset: 2px;
}

.ambient {
  position: fixed;
  width: 35vw;
  height: 35vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .09;
  pointer-events: none;
}

.ambient-a {
  background: #27c9ff;
  right: -10vw;
  top: 18vh;
}

.ambient-b {
  background: #006eff;
  left: -16vw;
  bottom: -12vw;
}

.topbar,
.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: 245px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy span {
  color: var(--muted);
  font-size: 13px;
}

.shell {
  padding: 0 0 28px;
}

.hero-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(7, 30, 44, .96), rgba(5, 18, 28, .9));
  box-shadow: 0 22px 64px rgba(0, 0, 0, .25);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-copy {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--ice);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .18em;
}

h1 {
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: .93;
  margin: 9px 0 14px;
  letter-spacing: -.058em;
}

h1 span {
  color: var(--ice);
  text-shadow: 0 0 28px rgba(88, 206, 255, .18);
}

.hero-copy p {
  max-width: 550px;
  margin: 0;
  color: #b8cbd7;
  font-size: 16px;
  line-height: 1.45;
}

.bottle-orbit {
  position: absolute;
  right: 38px;
  width: 230px;
  height: 210px;
  display: grid;
  place-items: center;
  z-index: 1;
}

.bottle-orbit img {
  width: 184px;
  height: 184px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .32));
  transform: rotate(-4deg);
}

.temp-pill {
  position: absolute;
  right: 0;
  top: 4px;
  border: 1px solid rgba(120, 221, 255, .25);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(5, 20, 30, .85);
  color: var(--ice);
  font-size: 11px;
  font-weight: 800;
}

.grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 14px;
  margin-top: 14px;
}

.panel,
.timer-card,
.info-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .18);
}

.panel {
  border-radius: var(--radius);
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.step {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(85, 203, 255, .12);
  color: var(--ice);
  font-size: 10px;
  font-weight: 900;
  border: 1px solid rgba(100, 210, 255, .13);
}

.ghost-button,
.text-button,
.danger-ghost {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ghost-button {
  color: var(--ice);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(8, 30, 43, .55);
}

.topbar .ghost-button {
  padding: 6px 10px;
  color: rgba(105, 219, 255, .76);
  border-color: rgba(150, 220, 255, .09);
  background: rgba(8, 30, 43, .3);
  font-size: 11px;
}

.topbar .ghost-button:hover {
  color: var(--ice);
  border-color: var(--line);
  background: rgba(8, 30, 43, .5);
}

a.ghost-button {
  text-decoration: none;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.text-button {
  min-height: 40px;
  padding: 6px 0 6px 10px;
  color: var(--muted);
  font-size: 12px;
}

.danger-ghost {
  min-height: 42px;
  color: #ffc1c8;
  border: 1px solid rgba(255, 98, 117, .24);
  border-radius: 13px;
  padding: 8px 12px;
}

.preset-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.preset {
  min-height: 40px;
  color: #c6d6e0;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}

.preset.active {
  background: rgba(44, 184, 255, .13);
  color: #eafaff;
  border-color: rgba(86, 206, 255, .35);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #a9bdca;
  font-size: 13px;
}

.input-wrap {
  height: 50px;
  display: flex;
  align-items: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(1, 10, 16, .5);
}

.input-wrap:focus-within {
  border-color: rgba(96, 211, 255, .5);
  box-shadow: 0 0 0 4px rgba(68, 191, 255, .07);
}

.input-wrap input {
  min-width: 0;
  flex: 1;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0 8px 0 14px;
  font-size: 18px;
  font-weight: 750;
}

.input-wrap b {
  color: #7f99aa;
  font-size: 11px;
  padding-right: 13px;
  white-space: nowrap;
}

.validation {
  min-height: 16px;
  margin: 8px 0 6px;
  color: #ff9aa7;
  font-size: 12px;
}

.primary-button,
.alarm-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  color: white;
  font-weight: 850;
}

.primary-button {
  min-height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #087dff, #16bde9);
  box-shadow: 0 12px 28px rgba(0, 127, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.primary-button:hover,
.alarm-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.result-panel {
  position: relative;
  overflow: hidden;
}

.status-dot {
  color: #95aeba;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.status-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.result-panel[data-state="invalid"] .status-dot i {
  background: var(--warning);
  box-shadow: 0 0 12px rgba(255, 180, 93, .65);
}

.result-panel[data-state="safe"] .status-dot i {
  background: var(--ice);
  box-shadow: 0 0 12px rgba(105, 219, 255, .55);
}

.result-main {
  text-align: center;
  padding: 2px 0 14px;
}

.result-label {
  color: #9eb6c5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.big-time {
  margin: 3px 0 0;
  font-size: clamp(58px, 7vw, 76px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.065em;
  background: linear-gradient(#fff, #89ddff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result-unit {
  color: #6f8a9c;
  font-size: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stat {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(1, 10, 16, .3);
  border-radius: 12px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat span {
  color: #7893a5;
  font-size: 11px;
}

.stat strong {
  overflow-wrap: anywhere;
}

.accent-stat {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.accent-stat strong {
  color: var(--ice);
}

.alarm-button {
  min-height: 58px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, #056fe8, #00a8db);
  box-shadow: 0 13px 30px rgba(0, 126, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.alarm-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
  filter: none;
}

.alarm-button span:not(.alarm-icon) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.alarm-button small {
  margin-top: 1px;
  opacity: .73;
  font-weight: 500;
}

.alarm-icon {
  font-size: 23px;
}

.timer-card {
  margin-top: 14px;
  border-radius: var(--radius);
  padding: 21px 24px;
}

.timer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.timer-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.countdown {
  margin: 17px 0 13px;
  font-size: clamp(52px, 8vw, 84px);
  line-height: 1;
  text-align: center;
  letter-spacing: -.05em;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
}

.progress-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10bfff, #76e8ff);
  transition: width .35s linear;
}

.timer-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #88a2b2;
  font-size: 12px;
}

.timer-meta b {
  color: #e2f8ff;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.info-card {
  min-height: 84px;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.info-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(63, 196, 255, .1);
}

.info-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.info-card p {
  margin: 0;
  color: #829baa;
  font-size: 12px;
  line-height: 1.4;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 4px 0;
  color: #607989;
  font-size: 11px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-meta nav {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

footer a {
  color: inherit;
  text-underline-offset: 3px;
}

footer a:hover {
  color: var(--ice);
}

.legal-shell {
  width: min(860px, calc(100% - 40px));
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(28px, 6vw, 56px);
  background: linear-gradient(145deg, rgba(9, 30, 43, .96), rgba(5, 18, 28, .94));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.legal-header {
  margin-bottom: 34px;
}

.legal-card h1 {
  margin: 10px 0 12px;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -.05em;
}

.legal-card h2 {
  margin: 0 0 12px;
  color: #eaf8ff;
  font-size: 20px;
}

.legal-card h3 {
  margin: 20px 0 8px;
  color: #dff6ff;
  font-size: 16px;
}

.legal-card p,
.legal-card li,
.legal-card address {
  color: #a9bdca;
  font-size: 15px;
  line-height: 1.72;
}

.legal-card p {
  margin: 0 0 12px;
}

.legal-card ul {
  margin: 10px 0 14px;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 7px;
}

.legal-card address {
  font-style: normal;
}

.legal-card section {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-card section + section {
  margin-top: 26px;
}

.legal-card a {
  color: var(--ice);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal-lead {
  max-width: 680px;
  color: #c2d6e2 !important;
  font-size: 17px !important;
}

.legal-updated {
  color: #6f8a9c !important;
  font-size: 12px !important;
}

.legal-note {
  margin-top: 18px !important;
  padding: 16px 18px;
  border: 1px solid rgba(105, 219, 255, .18);
  border-radius: 16px;
  background: rgba(40, 170, 225, .07);
}

.alarm-dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid rgba(120, 221, 255, .2);
  border-radius: 24px;
  padding: 30px;
  background: #0a1d29;
  color: white;
  text-align: center;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .65);
}

.alarm-dialog::backdrop {
  background: rgba(0, 6, 10, .78);
  backdrop-filter: blur(8px);
}

.alarm-dialog h2 {
  margin: 7px 0;
  font-size: 38px;
}

.alarm-dialog p {
  margin: 0 0 22px;
  color: #9eb4c3;
}

.alarm-pop {
  font-size: 58px;
}

@media (max-width: 860px) {
  .hero-copy {
    max-width: 68%;
  }

  .bottle-orbit {
    right: 18px;
    width: 205px;
  }

  .bottle-orbit img {
    width: 168px;
    height: 168px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .topbar,
  .shell,
  .legal-shell {
    width: calc(100% - 20px);
  }

  .topbar {
    min-height: 80px;
    padding-top: env(safe-area-inset-top);
    gap: 8px;
  }

  .brand-logo {
    width: min(210px, 61vw);
  }

  .brand-copy {
    display: none;
  }

  .topbar .ghost-button {
    flex: 0 0 auto;
    padding: 6px 9px;
    font-size: 10px;
  }

  .hero-card {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 6px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy p {
    display: none;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: .14em;
  }

  h1 {
    margin: 7px 0 0;
    font-size: clamp(34px, 10vw, 42px);
    line-height: .94;
  }

  .bottle-orbit {
    position: relative;
    inset: auto;
    width: 108px;
    height: 108px;
    justify-self: end;
  }

  .bottle-orbit img {
    width: 102px;
    height: 102px;
  }

  .temp-pill {
    right: -1px;
    top: -8px;
    padding: 5px 7px;
    font-size: 9px;
  }

  .grid,
  .info-grid,
  .timer-card {
    margin-top: 10px;
  }

  .grid,
  .info-grid {
    gap: 8px;
  }

  .panel {
    padding: 16px 14px;
  }

  .section-heading {
    margin-bottom: 13px;
  }

  .section-heading h2 {
    font-size: 17px;
  }

  .preset-row {
    flex-wrap: nowrap;
    margin-bottom: 13px;
  }

  .preset {
    min-width: 0;
    flex: 1;
    padding-inline: 6px;
  }

  .field-grid {
    gap: 9px;
  }

  .field {
    gap: 5px;
    font-size: 12px;
  }

  .input-wrap {
    height: 47px;
  }

  .input-wrap input {
    padding-left: 11px;
    padding-right: 5px;
    font-size: 17px;
  }

  .input-wrap b {
    padding-right: 9px;
    font-size: 10px;
  }

  .validation {
    margin-top: 6px;
  }

  .result-main {
    padding-bottom: 12px;
  }

  .big-time {
    font-size: 62px;
  }

  .timer-card {
    padding: 18px 15px;
  }

  .timer-head h2 {
    font-size: 18px;
  }

  .countdown {
    margin: 15px 0 12px;
    font-size: clamp(45px, 15vw, 66px);
  }

  .timer-meta {
    flex-wrap: wrap;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 0;
    padding: 12px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 7px;
  }

  .legal-card {
    border-radius: 22px;
  }
}

@media (max-width: 370px) {
  .brand-logo {
    width: min(188px, 58vw);
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr) 92px;
    padding: 16px;
  }

  h1 {
    font-size: 32px;
  }

  .bottle-orbit,
  .bottle-orbit img {
    width: 92px;
    height: 92px;
  }

  .section-heading {
    gap: 8px;
  }

  .section-heading h2 {
    font-size: 16px;
  }

  .status-dot {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


/* Language selection */
.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}.language-picker{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:3px 5px 3px 7px;border:1px solid rgba(150,220,255,.12);border-radius:999px;background:rgba(6,22,32,.48);color:var(--muted)}.language-icon{font-size:12px;line-height:1;opacity:.82}.language-picker select{width:116px;max-width:28vw;border:0;outline:0;background:transparent;color:var(--muted);font:inherit;font-size:11px;cursor:pointer}.language-picker select:focus-visible{outline:2px solid rgba(105,219,255,.28);outline-offset:2px;border-radius:6px}.language-picker option{color:#07151f;background:#f5fbff}h1 .hero-primary{color:inherit;text-shadow:none}html[dir="rtl"] .brand-logo{object-position:right center}html[dir="rtl"] .input-wrap input{padding-right:14px;padding-left:5px}@media(max-width:650px){.top-actions{flex-direction:column;align-items:flex-end;gap:4px}.language-picker{min-height:27px;padding:2px 4px}.language-icon{display:none}.language-picker select{width:88px;max-width:26vw;font-size:10px}}
