* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0d12;
  --panel: #121621;
  --panel-2: #171c28;
  --text: #f5f7fb;
  --muted: #9aa4b2;
  --line: rgba(255,255,255,.09);
  --accent: #7c8cff;
  --accent-2: #5e6ae8;
  --success: #4bd19b;
  --shadow: 0 20px 60px rgba(0,0,0,.28);
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(124,140,255,.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(91,202,255,.07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.08rem;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 9px;
  transition: .2s ease;
}

nav a:hover,
nav a.active {
  color: white;
  background: rgba(255,255,255,.055);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.page-shell.narrow {
  width: min(820px, calc(100% - 32px));
}

.hero {
  max-width: 820px;
  padding: 54px 0 70px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .16em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.3rem);
  line-height: .95;
  letter-spacing: -.065em;
}

.hero-copy,
.page-heading > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 11px;
  font-weight: 750;
  transition: .2s ease;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  transform: translateY(-1px);
  background: var(--accent-2);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

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

.feature-card,
.tool-card,
.generator-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  box-shadow: var(--shadow);
  border-radius: 18px;
}

.feature-card {
  min-height: 230px;
  padding: 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  transition: .2s ease;
}

.feature-card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,140,255,.35);
}

.card-icon,
.tool-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(124,140,255,.12);
  font-size: 1.3rem;
}

.card-kicker {
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .13em;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card h2,
.tool-card h2 {
  margin-bottom: 10px;
  letter-spacing: -.025em;
}

.feature-card p,
.tool-card p {
  color: var(--muted);
  line-height: 1.65;
}

.card-arrow {
  color: var(--muted);
  font-size: 1.4rem;
}

.page-heading {
  margin-bottom: 34px;
}

.page-heading.compact h1,
.page-heading h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 16px;
}

.back-link {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 28px;
}

.back-link:hover {
  color: white;
}

.tool-card {
  padding: 24px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  transition: .2s ease;
}

.tool-top,
.tool-footer,
.result-header,
.timezone-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  color: var(--success);
  background: rgba(75,209,155,.09);
  border: 1px solid rgba(75,209,155,.18);
  padding: 6px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}

.status-pill.subtle {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255,255,255,.03);
}

.tool-card h2 {
  margin-top: 24px;
}

.tool-footer {
  margin-top: auto;
  padding-top: 24px;
  color: #dbe0e8;
  font-weight: 700;
}

.muted-card {
  opacity: .67;
}

.generator-card {
  padding: 28px;
}

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

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  color: #dbe0e8;
  font-size: .88rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d1119;
  color: white;
  padding: 0 13px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(124,140,255,.7);
  box-shadow: 0 0 0 3px rgba(124,140,255,.1);
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 22px;
}

.quick-btn,
.copy-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: #dce1e9;
  border-radius: 9px;
  cursor: pointer;
  transition: .2s ease;
}

.quick-btn {
  padding: 8px 11px;
}

.quick-btn:hover,
.copy-button:hover {
  background: rgba(124,140,255,.12);
  border-color: rgba(124,140,255,.3);
}

.timezone-line {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 4px;
}

.timezone-line strong {
  color: white;
  text-align: right;
}

.result-panel {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #090c12;
  padding: 16px;
}

.result-header {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.copy-button {
  padding: 7px 11px;
}

#output {
  display: block;
  overflow-wrap: anywhere;
  color: #dfe4ff;
  font-size: clamp(1rem, 4vw, 1.28rem);
}

.info-grid {
  margin-top: 14px;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255,255,255,.02);
}

.info-box span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  margin-bottom: 6px;
}

.info-box strong {
  font-size: .92rem;
}

.helper {
  color: var(--muted);
  line-height: 1.6;
  margin: 18px 0 0;
  font-size: .88rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  background: #f7f8fb;
  color: #11141a;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: .83rem;
}

footer a:hover {
  color: white;
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

  .page-shell {
    padding-top: 45px;
  }

  .hero {
    padding-top: 22px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .card-grid,
  .tool-grid,
  .field-grid.two-col,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: auto 1fr;
  }

  .card-arrow {
    display: none;
  }

  .generator-card {
    padding: 20px;
  }

  footer {
    padding: 20px 0;
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }
}
