:root {
  --bg: #e5edf3;
  --panel: rgba(241, 246, 250, 0.94);
  --panel-border: rgba(165, 187, 203, 0.42);
  --text: #0f2a44;
  --muted: #58748e;
  --accent: #1d8ca8;
  --accent-2: #4ea3c4;
  --glow: rgba(33, 137, 167, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background:
    radial-gradient(circle at 15% 15%, #f5f9fc 0%, transparent 34%),
    radial-gradient(circle at 82% 8%, #dbe8f1 0%, transparent 33%),
    repeating-linear-gradient(
      120deg,
      rgba(128, 154, 175, 0.08) 0 2px,
      transparent 2px 16px
    ),
    linear-gradient(145deg, #eff5fa 0%, #e3edf4 45%, #dbe7f1 100%);
  overflow-x: hidden;
}

body.ryan-style-html {
  background-color: #e5edf3;
  background:
    radial-gradient(circle at 14% 16%, rgba(93, 163, 193, 0.22) 0%, transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(125, 174, 205, 0.2) 0%, transparent 33%),
    repeating-linear-gradient(
      120deg,
      rgba(111, 146, 171, 0.08) 0 2px,
      transparent 2px 14px
    ),
    linear-gradient(145deg, #eef5fa 0%, #e4edf4 42%, #dbe7f1 100%);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: #8bc2dc;
  top: -80px;
  right: -40px;
}

.orb-2 {
  width: 220px;
  height: 220px;
  background: #b8d4e5;
  bottom: -40px;
  left: -20px;
}

.container {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

.hero {
  text-align: center;
  margin-bottom: 1.75rem;
  animation: reveal 700ms ease-out both;
}

.eyebrow {
  margin: 0.5rem 0 0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4f87a4;
  font-size: 0.75rem;
  font-weight: 700;
}

h1 {
  margin: 0.35rem 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0.9rem;
}

.clock-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.45);
  position: relative;
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  animation: cardIn 650ms ease-out forwards;
}

.clock-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.clock-city {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.clock-time {
  margin: 0.5rem 0 0.2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.clock-date {
  margin: 0;
  color: #4f6e88;
  font-size: 0.9rem;
}

.clock-zone {
  margin-top: 0.55rem;
  display: inline-block;
  font-size: 0.74rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.converter {
  margin-top: 1rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(251, 146, 60, 0.16);
  animation: reveal 900ms ease-out both;
}

.tool-banner-ad {
  margin-top: 1rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: 0 10px 24px rgba(80, 118, 143, 0.16);
}

.tool-banner-ad .ad-label {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
}

.tool-banner-ad .ad-box {
  min-height: 110px;
  border: 1px solid rgba(165, 187, 203, 0.36);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.5rem;
}

h2 {
  margin-top: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
}

.converter-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

label {
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 0.66rem 0.72rem;
  border-radius: 10px;
  font: inherit;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.results {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.6rem;
}

.result-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(165, 187, 203, 0.36);
  border-radius: 10px;
  padding: 0.7rem;
  border-left: 3px solid rgba(78, 163, 196, 0.88);
}

.result-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.result-value {
  margin: 0.3rem 0 0;
  font-family: "Space Grotesk", sans-serif;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .container {
    padding-top: 1.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .clock-time {
    font-size: 1.25rem;
  }

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

  .converter {
    padding: 0.9rem;
  }

  h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 400px) {
  .clock-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }
}

/* Ryan style hooks scoped to this page shell */
.ryan-style-html .ryan-shell {
  padding: 1.2rem;
  border: 1px solid rgba(143, 175, 197, 0.45);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(119, 171, 200, 0.08), rgba(78, 163, 196, 0.06)),
    linear-gradient(180deg, rgba(235, 243, 249, 0.65) 0%, rgba(223, 234, 243, 0.85) 100%);
  box-shadow:
    0 18px 45px rgba(107, 138, 160, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ryan-style-html .ryan-hero {
  padding: 1rem 0.85rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(111, 161, 189, 0.32);
  background: linear-gradient(120deg, rgba(132, 181, 208, 0.16), rgba(177, 211, 230, 0.12));
}

.ryan-style-html .ryan-hero h1 {
  color: #0f2a44;
  text-shadow: 0 8px 24px rgba(88, 136, 164, 0.18);
}

.ryan-style-html .ryan-hero .subtitle {
  color: #4e6d87;
}

.ryan-style-html .ryan-grid .clock-card:nth-child(odd) {
  border-color: rgba(97, 155, 186, 0.42);
}

.ryan-style-html .ryan-grid .clock-card:nth-child(even) {
  border-color: rgba(132, 181, 208, 0.42);
}

.ryan-style-html .ryan-grid .clock-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ryan-style-html .ryan-grid .clock-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(95, 126, 147, 0.28);
  border-color: rgba(78, 163, 196, 0.62);
}

.ryan-style-html .ryan-grid .clock-zone {
  background: linear-gradient(90deg, #1d8ca8, #4ea3c4);
}

.ryan-style-html .ryan-converter {
  background:
    linear-gradient(rgba(78, 163, 196, 0.12), rgba(78, 163, 196, 0.04)),
    var(--panel);
  border-color: rgba(109, 157, 186, 0.4);
}

.ryan-style-html .ryan-converter .result-item {
  background: linear-gradient(145deg, rgba(246, 251, 255, 0.95), rgba(229, 239, 247, 0.9));
}

@media (max-width: 600px) {
  .ryan-style-html .ryan-shell {
    padding: 0.9rem;
  }

  .ryan-style-html .ryan-hero {
    padding: 0.85rem 0.7rem 1rem;
  }
}
