:root {
  --bg: #dff3ff;
  --bg-deep: #a3cfff;
  --panel: rgba(255, 255, 255, 0.52);
  --panel-strong: rgba(255, 255, 255, 0.72);
  --text: #12324b;
  --muted: #4f6e7f;
  --line: rgba(18, 50, 75, 0.1);
  --blue: #73b8ff;
  --blue-deep: #4d74ff;
  --mint: #9ef3d1;
  --mint-deep: #38d39f;
  --gold: #ffd36d;
  --gold-deep: #ffb22e;
  --shadow: 0 24px 80px rgba(79, 126, 173, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #dff3ff 0%, #d7f6ee 48%, #eff7ff 100%);
}

.snap-wrapper {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.screen {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  padding: 24px;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-blue {
  width: 340px;
  height: 340px;
  top: 8%;
  left: -4%;
  background: radial-gradient(circle, rgba(115, 184, 255, 0.9), rgba(115, 184, 255, 0));
}

.orb-mint {
  width: 300px;
  height: 300px;
  right: 6%;
  top: 18%;
  background: radial-gradient(circle, rgba(158, 243, 209, 0.92), rgba(158, 243, 209, 0));
  animation-delay: 1.6s;
}

.orb-gold {
  width: 260px;
  height: 260px;
  left: 50%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(255, 211, 109, 0.7), rgba(255, 211, 109, 0));
  animation-delay: 0.8s;
}

.hero-screen,
.tools-screen {
  z-index: 1;
}

.topbar,
.hero-center,
.tools-header,
.tools-grid {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.brand-mini,
.clock-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(79, 126, 173, 0.08);
}

.brand-mini {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.clocks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.clock-chip {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clock-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.clock-chip strong {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.clock-chip small {
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.hero-center {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-kicker,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-logo {
  margin: 0;
  font-size: clamp(4.5rem, 12vw, 8.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
  background:
    linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 26%, var(--mint-deep) 54%, var(--gold) 77%, #ff8a70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 30px rgba(115, 184, 255, 0.18);
}

.hero-subtitle,
.section-text {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.search-shell {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.search-shell input {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.04rem;
  color: var(--text);
  padding: 10px 18px;
}

.search-shell input::placeholder {
  color: #7791a0;
}

.search-shell button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  color: #12324b;
  background: linear-gradient(135deg, var(--mint) 0%, var(--gold) 100%);
  cursor: pointer;
}

.quick-grid {
  width: min(1100px, 100%);
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(79, 126, 173, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.quick-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(79, 126, 173, 0.18);
  background: rgba(255, 255, 255, 0.68);
}

.quick-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(115, 184, 255, 0.24), rgba(158, 243, 209, 0.28));
}

.quick-link-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.quick-link-label strong {
  font-size: 0.98rem;
}

.quick-link-label span {
  font-size: 0.8rem;
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.scroll-hint span {
  display: block;
  width: 12px;
  height: 12px;
  margin: 15px auto 0;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
}

.tools-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
}

.tools-header h2 {
  margin: 10px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

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

.tool-tile {
  min-height: 180px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--text);
}

.tool-tile.primary {
  background: linear-gradient(135deg, rgba(115, 184, 255, 0.24), rgba(158, 243, 209, 0.32), rgba(255, 211, 109, 0.2));
}

.tile-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tool-tile strong {
  margin-top: 12px;
  font-size: 1.4rem;
}

.tool-tile small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -24px, 0) scale(1.08);
  }
}

@media (max-width: 980px) {
  .quick-grid,
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .screen {
    padding: 18px;
  }

  .topbar {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .clocks {
    width: 100%;
    justify-content: flex-start;
  }

  .search-shell {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .search-shell button {
    width: 100%;
  }

  .quick-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }
}
