:root {
  color-scheme: light;
  --brand-blue: #25aee8;
  --ink: #050608;
  --muted: #485b7d;
  --panel: #ffffff;
  --soft-blue: #eaf8fe;
  --line: #d9e2ea;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fbfd 0%, #e7f7fc 100%);
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.timezone-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.hero,
.tool-card,
.info-card,
.cta-panel {
  background: var(--panel);
  border: 1px solid rgba(208, 213, 221, 0.82);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(32px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(37, 174, 232, 0.45);
  border-radius: 999px;
  background: #eaf8fe;
  color: #007db2;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 13px;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

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

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.hero p {
  max-width: 720px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
button.button {
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button.primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 16px 34px rgba(37, 174, 232, 0.25);
}

.button.secondary {
  background: #050608;
  color: #fff;
}

.button.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: #101828;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.hero-code {
  background: linear-gradient(135deg, #050608, #103044);
  border-radius: 22px;
  color: #fff;
  padding: 28px;
  min-height: 230px;
  display: flex;
  align-items: center;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.25);
}

.hero-code pre {
  margin: 0;
  white-space: pre-wrap;
  font: 800 13px/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.section {
  margin-top: 34px;
}

.section-header {
  margin-bottom: 18px;
}

.tool-card {
  padding: clamp(26px, 4vw, 42px);
}

.upload-zone {
  border: 2px dashed rgba(37, 174, 232, 0.42);
  background: linear-gradient(180deg, #fbfdff, #f2fbff);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.upload-zone.is-dragover,
.upload-zone:hover,
.upload-zone:focus-visible {
  border-color: var(--brand-blue);
  background: #eaf8fe;
  outline: 0;
}

#timezone-upload-button {
  margin-top: 22px;
}

.file-details,
.timezone-controls,
.progress-card,
.ready-card,
.summary-card {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  padding: clamp(20px, 2.5vw, 28px);
}

.file-details strong,
.summary-row strong {
  display: block;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.field label {
  display: block;
  font-size: 12px;
  font-weight: 950;
  color: #344054;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.field-helper {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.status-message {
  margin-top: 14px;
  font-weight: 900;
  color: #485b7d;
}

.status-message.error {
  color: #b42318;
}

.status-message.success {
  color: #027a48;
}

.progress-bar {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dff3fb;
  margin-top: 16px;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue), #007db2);
  transition: width 0.2s ease;
}

.summary-grid,
.log-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.summary-row {
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding: 14px 0;
}

.summary-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 6px;
}

.log-type-card,
.info-card {
  padding: 22px;
}

.log-type-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

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

.info-card ul,
.log-type-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

html[dir="rtl"] .info-card ul,
html[dir="rtl"] .log-type-card ul {
  padding-left: 0;
  padding-right: 20px;
}

.cta-panel {
  padding: clamp(28px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 24px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero,
  .cta-panel,
  .timezone-controls,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .timezone-page {
    width: min(100% - 24px, 1180px);
    padding: 34px 0 58px;
  }

  .hero,
  .tool-card,
  .info-card,
  .cta-panel {
    border-radius: 18px;
  }

  .summary-grid,
  .log-type-grid {
    grid-template-columns: 1fr;
  }

  .upload-zone {
    padding: 24px 16px;
  }
}
.footer {
  background: #050608;
  color: #fff;
  margin-top: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 390px;
}

.footer-brand img {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
}

.footer-brand p {
  margin: 0;
  color: #d0d5dd;
  font-size: 13px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
}

.footer-nav a {
  color: #d0d5dd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.footer-nav a:hover {
  color: var(--aqua);
}

@media (max-width: 860px) {
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }
}
