/* Date and Time: night navy with a sky that follows the visitor's real time of day; Geist and Geist Mono */
:root {
  --bg: #0b1020;
  --bg-2: #121a33;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --text: #f1f3fb;
  --muted: #a9b1cc;
  --line: rgba(255, 255, 255, .1);
  --accent: #ff8a65;
  --accent-2: #8b85ff;
  --on-accent: #1b1030;
  --ok: #6ee7b7;
  --grad: linear-gradient(100deg, #ffb26b, #ff6f91 45%, #8b85ff);
  --font-display: "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --radius: 24px;
  --sky1: #0b1026;
  --sky2: #1b2550;
  --sky3: #0b1020;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.04em; }
.brand { font-weight: 600; letter-spacing: -.03em; }
.brand b { color: var(--accent); font-weight: 600; }
.btn { background: var(--grad); color: #1b1030; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--text); }

/* Hero sky */
.dt-hero { text-align: center; place-items: center; }
.dt-sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky1), var(--sky2) 60%, var(--sky3)); transition: background 2s; }
.dt-stars { position: absolute; inset: 0; background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 42%, #fff, transparent), radial-gradient(1.4px 1.4px at 66% 12%, #fff, transparent), radial-gradient(1px 1px at 82% 34%, #fff, transparent), radial-gradient(1.2px 1.2px at 46% 26%, #fff, transparent), radial-gradient(1px 1px at 90% 8%, #fff, transparent), radial-gradient(1px 1px at 6% 48%, #fff, transparent), radial-gradient(1.3px 1.3px at 56% 52%, #fff, transparent), radial-gradient(1px 1px at 74% 58%, #fff, transparent), radial-gradient(1px 1px at 36% 8%, #fff, transparent); opacity: var(--stars, 1); transition: opacity 2s; animation: dt-twinkle 5s ease-in-out infinite alternate; }
@keyframes dt-twinkle { to { filter: brightness(.6); } }
.dt-arc { position: absolute; left: 50%; bottom: 14%; width: min(1100px, 130vw); transform: translateX(-50%); overflow: visible; }
.dt-glow { fill: var(--orb-glow, rgba(255, 210, 140, .25)); filter: blur(10px); }
.dt-orb { fill: var(--orb, #ffd28c); }
.dt-hills { top: auto; height: 34%; bottom: 0; }
.dt-hero-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; padding-bottom: 6vh; }
.dt-where { font: 500 13px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.dt-clock { font: 500 clamp(64px, 15vw, 196px)/1 var(--font-mono); letter-spacing: -.06em; color: #fff; text-shadow: 0 10px 60px rgba(0, 0, 0, .25); }
.dt-clock { display: flex; align-items: flex-start; justify-content: center; }
.dt-clock .sn-s { opacity: .55; padding-inline: .02em; }
.dt-ampm { font: 500 clamp(18px, 2.6vw, 34px)/1 var(--font-mono); letter-spacing: .04em; margin: .35em 0 0 .3em; opacity: .75; }
.dt-date { font-size: clamp(17px, 1.8vw, 21px); color: rgba(255, 255, 255, .85); }
.dt-h1 { margin-top: 14px; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.15; max-width: 22ch; }
.dt-h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dt-hero .btn-row { justify-content: center; margin-top: 8px; }
.dt-hero[data-phase="day"] .dt-h1 { text-shadow: 0 2px 30px rgba(10, 30, 80, .35); }

/* Sections */
.dt-sec { background: var(--bg); }
.dt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.dt-add { display: grid; gap: 8px; min-width: min(100%, 360px); }
.dt-add-row { display: flex; gap: 8px; }
.dt-add-row .input { flex: 1; min-width: 0; }
.dt-add select option { color: #111; }

/* World clocks */
.dt-clocks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.dt-c { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--c1, #1b2550), var(--c2, #0f1530)); animation: lp-pop .5s var(--ease-spring); }
.dt-c b { font-size: 17px; font-weight: 600; }
.dt-c .t { font: 500 44px/1 var(--font-mono); letter-spacing: -.05em; }
.dt-c .t small { font-size: 16px; letter-spacing: 0; margin-left: 6px; opacity: .8; }
.dt-c .m { font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.dt-c .ic { position: absolute; top: 18px; right: 18px; opacity: .9; }
.dt-c .x { position: absolute; bottom: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(0, 0, 0, .2); color: #fff; display: grid; place-items: center; opacity: .65; }
.dt-c .x:hover { opacity: 1; }
.dt-c .x .i { width: 16px; height: 16px; }
.dt-c.me { outline: 2px solid var(--accent); }

/* Planner */
.dt-plan { display: grid; gap: 14px; }
.dt-plan-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.dt-plan-top output { font: 600 20px var(--font-mono); color: var(--accent); margin-left: 8px; }
.dt-best { font-size: 14.5px; color: var(--ok); font-weight: 500; }
.dt-slider { accent-color: var(--accent); }
.dt-rows { display: grid; gap: 8px; }
.dt-row { display: grid; grid-template-columns: minmax(110px, 180px) 1fr 96px; gap: 12px; align-items: center; }
.dt-row b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-row b small { display: block; font: 400 12px var(--font-mono); color: var(--muted); }
.dt-strip { position: relative; display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 34px; }
.dt-strip i { border-radius: 4px; background: #1a2140; }
.dt-strip i.w { background: #1f6f5a; }
.dt-strip i.e { background: #6b5320; }
.dt-strip .cur { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px rgba(255, 138, 101, .55); transition: left .25s var(--ease-out); }
.dt-row .tm { font: 600 15px var(--font-mono); text-align: right; }
.dt-row .tm.w { color: var(--ok); }
.dt-row .tm.e { color: #fbbf24; }
.dt-row .tm.n { color: var(--muted); }

/* Date tools */
.dt-tool h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 18px; }
.dt-tool h3 .i { color: var(--accent); }
.dt-two { display: grid; grid-template-columns: 1fr; gap: 10px; }
.dt-two.add { grid-template-columns: minmax(0, 1fr) 96px; }
.dt-tool .input { color-scheme: dark; min-height: 48px; padding: 0 12px; }
.dt-out { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 6px; }
.dt-out b { font: 600 clamp(36px, 4vw, 52px)/1 var(--font-mono); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.dt-out span { color: var(--muted); }
.dt-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dt-cd div { display: grid; justify-items: center; padding: 14px 4px; border-radius: 16px; background: var(--surface-2); }
.dt-cd b { font: 600 clamp(26px, 3vw, 36px)/1 var(--font-mono); letter-spacing: -.04em; }
.dt-cd div > span { font-size: 12px; color: var(--muted); margin-top: 6px; }
.dt-count p { margin-top: 14px; }

/* App */
.dt-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dt-feats li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.dt-feats .i { color: var(--accent); flex: none; width: 24px; height: 24px; }
.dt-feats b { display: block; }
.dt-feats span { color: var(--muted); font-size: 15px; }

/* Join */
.dt-cta { background: linear-gradient(135deg, #2a1b4a, #5b2a6e 45%, #b8506e); border: 0; }
.dt-cta-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.dt-cta-grid > div { display: grid; gap: 18px; }
.dt-cta .lead { color: rgba(255, 255, 255, .85); }
.dt-cta .eyebrow { color: #ffd28c; }
.dt-cta .input { background: rgba(255, 255, 255, .1); }
.dt-cta .chip span { background: rgba(255, 255, 255, .08); }
.dt-fs { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }

@media (max-width: 860px) {
  .dt-cta-grid { grid-template-columns: 1fr; }
  .dt-row { grid-template-columns: 1fr 76px; }
  .dt-row .dt-strip { grid-column: span 2; order: 3; height: 26px; }
}
@media (max-width: 560px) {
  .dt-arc { bottom: 20%; }
  .dt-c .t { font-size: 38px; }
  .dt-two { grid-template-columns: 1fr; }
}
.dt-two > * { min-width: 0; } .dt-tool .input { min-width: 0; width: 100%; }
