:root {
  --bg: #07111f;
  --bg-soft: #101b2e;
  --card: rgba(255, 255, 255, 0.08);
  --text: #f6f8fb;
  --muted: #aeb9c9;
  --accent: #56c8ff;
  --accent-2: #7ff0c4;
  --clockleaf: #71e6a9;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(86, 200, 255, 0.24), transparent 34%),
    radial-gradient(circle at top right, rgba(127, 240, 196, 0.16), transparent 31%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}

.site-header {
  min-height: 100vh;
  padding: 24px;
}

.nav {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hero {
  width: min(1120px, 100%);
  margin: 90px auto 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.hero-text,
.section-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04101f;
}

.button.secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-card,
.app-card,
.highlight {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  min-height: 470px;
  border-radius: 34px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -70px -100px auto;
  width: 280px;
  height: 280px;
  background: rgba(86, 200, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.showcase-app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: center;
}

.showcase-app h2 {
  margin: 0 0 8px;
  font-size: 2.25rem;
}

.showcase-app p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.showcase-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.weather-icon {
  background:
    radial-gradient(circle at 35% 30%, #ffffff, transparent 17%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04101f;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.clockleaf-icon {
  border: 1px solid rgba(127, 240, 196, 0.24);
}

.wxdesk-icon {
  border: 1px solid rgba(86, 200, 255, 0.3);
}

.showcase-divider {
  height: 1px;
  margin: 25px 0;
  background: var(--border);
}

.hero-card .status {
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(127, 240, 196, 0.35);
  background: rgba(127, 240, 196, 0.1);
  color: var(--accent-2);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0;
}

.section-heading {
  margin-bottom: 22px;
}

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

.app-card {
  border-radius: 28px;
  padding: 30px;
}

.clockleaf-card {
  background:
    radial-gradient(circle at 95% 5%, rgba(113, 230, 169, 0.12), transparent 34%),
    var(--card);
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.app-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  color: #04101f;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.image-icon {
  object-fit: cover;
  border: 1px solid rgba(127, 240, 196, 0.22);
}

.app-card p,
.app-card li,
.highlight p {
  color: var(--muted);
}

.app-card ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  color: var(--accent-2);
  font-weight: 800;
}

.text-link:hover {
  color: var(--text);
}

.updates-section .section-heading {
  max-width: 720px;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.update-entry,
.changelog-entry,
.changelog-contact {
  border: 1px solid var(--border);
  background: rgba(16, 27, 46, 0.96);
  box-shadow: var(--shadow);
  isolation: isolate;
  overflow: hidden;
}

.update-entry {
  min-width: 0;
  padding: 32px;
  border-radius: 28px;
}

.clockleaf-update {
  background:
    radial-gradient(circle at 95% 5%, rgba(113, 230, 169, 0.13), transparent 36%),
    var(--card);
}

.wxdesk-update,
.wxdesk-entry {
  background:
    radial-gradient(circle at 95% 5%, rgba(86, 200, 255, 0.16), transparent 38%),
    var(--card);
}

.update-entry p,
.changelog-entry p,
.changelog-entry li {
  color: var(--muted);
}

.update-entry h3,
.changelog-entry h3 {
  overflow-wrap: break-word;
}

.update-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.update-meta time {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.subpage-header {
  padding: 24px;
  overflow: hidden;
}

.page-hero {
  width: min(1120px, 100%);
  margin: 82px auto 0;
  padding: 60px 0 86px;
  position: relative;
  isolation: isolate;
}

.page-hero-lockup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}

.page-hero-lockup > div {
  min-width: 0;
}

.page-icon {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  object-fit: cover;
  border: 1px solid rgba(127, 240, 196, 0.24);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

.page-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  overflow-wrap: break-word;
}

.page-hero .hero-text {
  margin-bottom: 28px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  clear: both;
}

.changelog-section {
  padding-top: 62px;
  position: relative;
}

.changelog-list {
  position: relative;
  display: grid;
  gap: 24px;
  max-width: 860px;
}

.changelog-entry {
  min-width: 0;
  padding: 34px;
  border-radius: 28px;
}

.changelog-entry h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.changelog-entry ul {
  margin: 24px 0 0;
  padding-left: 22px;
}

.changelog-entry li + li {
  margin-top: 8px;
}

.changelog-contact {
  border-radius: 34px;
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
}

.changelog-contact > div {
  min-width: 0;
}

.changelog-contact h2 {
  margin-bottom: 0;
  overflow-wrap: break-word;
}

.highlight {
  border-radius: 34px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}

.contact-section {
  text-align: center;
}

.contact-section .section-text {
  margin: 0 auto 28px;
}

.footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    gap: 18px;
  }

  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    margin-top: 48px;
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 400px;
  }

  .apps-grid,
  .highlight,
  .updates-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-lockup,
  .changelog-contact {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 18px;
  }

  .nav {
    flex-direction: column;
  }

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

  .subpage-header {
    padding: 18px;
  }

  .page-hero {
    margin-top: 34px;
    padding: 46px 0 60px;
  }

  .page-hero-lockup {
    align-items: start;
  }

  .page-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
  }

  .section {
    width: min(100% - 32px, 1120px);
    padding: 76px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-card {
    padding: 26px;
  }

  .update-entry,
  .changelog-entry,
  .changelog-contact {
    padding: 26px;
  }

  .showcase-app {
    grid-template-columns: 62px 1fr;
    gap: 16px;
  }

  .showcase-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .showcase-app h2 {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
