:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --panel: #ffffff;
  --ink: #162033;
  --muted: #667085;
  --line: #dde4ef;
  --brand: #3157ff;
  --brand-2: #7c3aed;
  --soft: #eef2ff;
  --good: #0f9f6e;
  --warn: #d97706;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(49, 87, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.13), transparent 30rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(246, 248, 252, 0.84);
  border-bottom: 1px solid rgba(221, 228, 239, 0.8);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(49, 87, 255, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--brand);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding-top: 58px;
}

.eyebrow {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.055em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(42px, 7vw, 78px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.lead {
  font-size: 19px;
  color: #475467;
}

.hero-card,
.card,
.tool-card,
.article,
.ad-box {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 228, 239, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.clock-large {
  font-variant-numeric: tabular-nums;
  font-size: clamp(44px, 6vw, 70px);
  font-weight: 950;
  letter-spacing: -0.06em;
  margin: 8px 0;
}

.date-line {
  font-weight: 800;
  color: #344054;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.tool-card {
  padding: 24px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(31, 41, 55, 0.14);
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--soft);
  color: var(--brand);
  font-weight: 950;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.button.secondary {
  background: var(--soft);
  color: var(--brand);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.section {
  margin-top: 46px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.card,
.article {
  padding: 26px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-weight: 800;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
}

.winner {
  color: var(--brand);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.mini {
  font-size: 13px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

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

.tools a {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--brand);
  text-decoration: none;
  font-weight: 850;
}

.chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-weight: 850;
  font-size: 13px;
}

.ad-box {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  min-height: 250px;
}

.ad-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #98a2b3;
  margin-bottom: 10px;
}

.ladder-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ladder-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.ladder-arrow {
  color: var(--brand);
  font-weight: 950;
}

.roulette-board {
  aspect-ratio: 1;
  max-width: 360px;
  margin: 18px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#3157ff, #7c3aed, #0f9f6e, #f59e0b, #ef4444, #3157ff);
  box-shadow: inset 0 0 0 14px rgba(255,255,255,0.8), var(--shadow);
}

.roulette-center {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  background: white;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.16);
}

.spin {
  animation: spin 900ms cubic-bezier(.2,.8,.2,1);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(720deg); }
}

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

.related a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  text-decoration: none;
  font-weight: 850;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 32px 20px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer a {
  color: var(--muted);
  margin-right: 12px;
}

@media (max-width: 900px) {
  .hero,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .container {
    padding: 34px 16px;
  }
}
