:root {
  --bg: #090f1e;
  --bg-accent: #111f4a;
  --surface: rgba(10, 17, 40, 0.7);
  --surface-strong: rgba(9, 15, 35, 0.9);
  --card: rgba(14, 24, 55, 0.92);
  --card-border: rgba(162, 189, 255, 0.2);
  --text: #ecf3ff;
  --muted: #9eb0d8;
  --accent: #56d0ff;
  --accent-soft: rgba(86, 208, 255, 0.16);
  --button-bg: linear-gradient(120deg, #27b1ff 0%, #745dff 100%);
  --button-text: #f8fbff;
  --headline-font: "Sora", "Space Grotesk", sans-serif;
  --body-font: "Manrope", "Inter", sans-serif;
  --digit-font: "JetBrains Mono", monospace;
  --shadow: 0 28px 70px rgba(0, 6, 26, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at 8% 18%, rgba(95, 129, 255, 0.36), transparent 42%),
    radial-gradient(circle at 92% 80%, rgba(80, 247, 239, 0.24), transparent 36%),
    linear-gradient(140deg, var(--bg) 0%, var(--bg-accent) 100%);
  display: grid;
  place-items: center;
  padding: 20px;
}

.canvas {
  width: min(1240px, 96vw);
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
    var(--surface-strong);
  box-shadow: var(--shadow);
  padding: clamp(22px, 2.6vw, 42px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(14px, 1.6vw, 26px);
}

.canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, var(--accent-soft), transparent 40%),
    radial-gradient(circle at 78% 78%, rgba(255, 255, 255, 0.07), transparent 36%);
  pointer-events: none;
}

.meta,
.hero,
.timer-grid,
.footer {
  position: relative;
  z-index: 1;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--headline-font);
  font-size: clamp(34px, 4.1vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 16ch;
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 22px);
  max-width: 62ch;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
  align-items: stretch;
}

.time-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: clamp(12px, 1vw, 18px);
  padding: clamp(12px, 1.5vw, 22px);
  display: grid;
  place-items: center;
  min-height: clamp(90px, 18vh, 190px);
}

.digits {
  font-family: var(--digit-font);
  font-size: clamp(40px, 6.4vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.label {
  margin-top: clamp(5px, 0.8vw, 10px);
  font-size: clamp(11px, 1.1vw, 16px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.note {
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 16px);
  max-width: 60ch;
}

.cta {
  background: var(--button-bg);
  color: var(--button-text);
  font-family: var(--headline-font);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 14px;
  border: 0;
  padding: 12px 22px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.inline-grid {
  --cols: 3;
}

.inline-grid .time-box {
  border-radius: 999px;
  grid-template-columns: auto;
  min-height: clamp(86px, 15vh, 140px);
}

.inline-grid .digits {
  font-size: clamp(40px, 5.2vw, 72px);
}

.minimal .canvas {
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
}

.minimal .time-box {
  border-radius: 16px;
}

.minimal .digits {
  letter-spacing: -0.03em;
}

.index-wrap {
  width: min(1020px, 96vw);
  background: rgba(4, 7, 20, 0.84);
  border: 1px solid rgba(165, 184, 255, 0.2);
  border-radius: 20px;
  padding: 28px;
}

.index-wrap h1 {
  margin: 0 0 8px;
  font-family: var(--headline-font);
  font-size: clamp(28px, 3.5vw, 48px);
}

.index-wrap p {
  margin: 0 0 20px;
  color: var(--muted);
}

.tile-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tile-link {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.tile-link small {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 760px) {
  body {
    padding: 8px;
  }

  .canvas {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: auto;
    min-height: 94vh;
    grid-template-rows: auto auto auto 1fr auto;
  }

  .timer-grid {
    --cols: 2;
  }

  .inline-grid {
    --cols: 1;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.embed-host {
  padding: 16px;
  background:
    radial-gradient(circle at 12% 12%, rgba(122, 162, 255, 0.32), transparent 34%),
    radial-gradient(circle at 88% 86%, rgba(86, 208, 255, 0.2), transparent 36%),
    #0b1228;
}

.embed-scene {
  width: min(1260px, 97vw);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 12, 30, 0.78);
  padding: clamp(10px, 1.4vw, 16px);
  box-shadow: 0 30px 60px rgba(2, 8, 24, 0.55);
}

.browser-shell {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  overflow: hidden;
  background: #f8fafc;
}

.browser-top {
  height: 40px;
  background: linear-gradient(180deg, #1e293b 0%, #111827 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: block;
}

.browser-dots span:nth-child(1) { background: #fb7185; }
.browser-dots span:nth-child(2) { background: #facc15; }
.browser-dots span:nth-child(3) { background: #4ade80; }

.url-bar {
  flex: 1;
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-wrap {
  background: #f8fafc;
  color: #0f172a;
}

.site-nav {
  height: 54px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.site-brand {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f172a;
  font-weight: 800;
}

.site-links {
  display: flex;
  gap: 16px;
  color: #475569;
  font-size: 13px;
}

.site-content {
  padding: clamp(16px, 2.1vw, 26px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.article-card,
.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
}

.headline {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

.subline {
  margin: 8px 0 0;
  color: #475569;
  font-size: 14px;
}

.feature-lines {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.line {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
}

.line.w70 { width: 70%; }
.line.w55 { width: 55%; }
.line.w90 { width: 90%; }

.embed-panel {
  border: 1px dashed #94a3b8;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.embed-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.embed-widget {
  margin-top: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(130deg, #0f172a 0%, #1d4ed8 100%);
  padding: 12px;
}

.embed-widget.light {
  background: linear-gradient(130deg, #f8fafc 0%, #e0f2fe 100%);
}

.embed-widget .timer-grid {
  --cols: 4;
  gap: 8px;
}

.embed-widget .time-box {
  min-height: 84px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(186, 230, 253, 0.24);
}

.embed-widget.light .time-box {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(51, 65, 85, 0.14);
}

.embed-widget .digits {
  font-size: clamp(30px, 3.5vw, 44px);
}

.embed-widget .label {
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-top: 4px;
}

.embed-widget.light .digits { color: #0f172a; }
.embed-widget.light .label { color: #475569; }

.embed-cta {
  margin-top: 10px;
  width: max-content;
  background: linear-gradient(120deg, #f43f5e 0%, #fb7185 100%);
  color: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.blog-layout {
  grid-template-columns: 1fr 320px;
}

.sticky-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
}

.mini-title {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}

@media (max-width: 920px) {
  .site-content,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .embed-widget .timer-grid {
    --cols: 2;
  }
}

.embed-store,
.embed-blog {
  padding: 10px;
}

.embed-store .site-nav,
.embed-blog .site-nav {
  height: 46px;
  padding: 0 12px;
}

.embed-store .site-brand,
.embed-blog .site-brand {
  font-size: 12px;
}

.embed-store .site-links,
.embed-blog .site-links {
  gap: 10px;
  font-size: 11px;
}

.embed-store .site-content {
  padding: 10px;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.embed-blog .site-content {
  padding: 10px;
  gap: 10px;
}

.embed-store .product-card,
.embed-store .embed-panel,
.embed-blog .article-card,
.embed-blog .sticky-card,
.embed-blog .embed-panel {
  padding: 10px;
}

.embed-store .headline,
.embed-blog .headline {
  font-size: 18px;
}

.embed-store .subline,
.embed-blog .subline {
  margin-top: 6px;
  font-size: 12px;
}

.embed-store .feature-lines,
.embed-blog .feature-lines {
  margin-top: 10px;
  gap: 6px;
}

.embed-store .line,
.embed-blog .line {
  height: 8px;
}

.embed-store .embed-widget,
.embed-blog .embed-widget {
  margin-top: 8px;
  padding: 8px;
}

.embed-store .embed-widget .time-box,
.embed-blog .embed-widget .time-box {
  min-height: 58px;
  padding: 6px;
}

.embed-store .embed-widget .digits,
.embed-blog .embed-widget .digits {
  font-size: 28px;
}

.embed-store .embed-widget .label,
.embed-blog .embed-widget .label {
  margin-top: 2px;
  font-size: 9px;
}

.embed-store .embed-cta {
  margin-top: 8px;
  padding: 7px 11px;
  font-size: 11px;
}

@media (max-width: 920px) {
  .embed-store .site-content {
    grid-template-columns: 1fr 1fr;
  }

  .embed-blog .site-content {
    grid-template-columns: 1fr 1fr;
  }
}
