/* ===== TOKENS ===== */

:root {
  --bg: #f1f1f1;
  --bg2: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --card-bg: #ffffff;
  --card-bg2: #fcfcfc;

  --text: #0d1726;
  --muted: #536273;
  --header-text: #f7f8fb;
  --header-muted: rgba(247, 248, 251, 0.88);

  --brand: #0ea0ba;
  --brand-2: #2ab6cb;
  --accent: #0ea0ba;
  --danger: #c53b3b;
  --success: #0f8a59;
  --warning: #a87514;

  --line: #cfd5d9;
  --line-strong: #bcc6cc;
  --gold-line: #d3d8dc;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --container: 1100px;
  --page-pad-x: 24px;
  --page-pad-y: 24px;
  --nav-pad-y: 11px;
  --nav-min-height: 76px;
  --nav-item-height: 36px;
  --nav-item-height-mobile: 40px;
  --logo-size: 60px;
  --logo-size-mobile: 52px;
  --grid-gap: 18px;

  --shadow-card: 0 1px 2px rgba(15, 23, 32, 0.04), 0 2px 8px rgba(15, 23, 32, 0.05);
  --shadow-card-hover: 0 8px 24px rgba(15, 23, 32, 0.08);
  --glow: 0 0 0 3px rgba(14, 160, 186, 0.08);

  --font-sans: "Inter", Arial, Helvetica, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;

  --fs-h1: 34px;
  --fs-h2: 22px;
  --fs-subtitle: 15px;
  --fs-body: 14px;
  --fs-card-title: 15px;
  --fs-price: 16px;
  --fs-nav: 14px;

  --px: 0;
  --py: 0;
}


/* ===== BASE ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.site-shell-page {
  position: relative;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 560px at 50% 0%, rgba(74, 174, 220, 0.11), transparent 62%),
    radial-gradient(740px 380px at 18% 10%, rgba(199, 176, 128, 0.08), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-color: var(--bg);
  background-attachment: scroll;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

body.site-shell-page {
  min-height: 100vh;
}

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

svg,
img {
  display: block;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--page-pad-x);
}

.skip-link {
  position: absolute;
  z-index: 9999;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.bg-layer {
  position: absolute;
  inset: 0;
  min-height: 100%;
  z-index: -3;
  pointer-events: none;
  transform: none;
  will-change: auto;
}

.bg-stars {
  opacity: 0;
  background: none;
}

.bg-streaks {
  z-index: -2;
  opacity: 0;
  mix-blend-mode: normal;
  transform: none;
  background: none;
  animation: none;
}

.bg-vignette {
  z-index: -1;
  background: none;
}

#site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#site-header,
#site-footer {
  width: 100%;
}

#site-main {
  flex: 1;
  width: 100%;
}

.page-partial {
  width: 100%;
}

:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid rgba(14, 160, 186, 0.85);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  :root {
    --page-pad-x: 16px;
    --page-pad-y: 24px;
    --fs-h1: 29px;
    --fs-h2: 20px;
  }
}


/* ===== SHELL ===== */

body.site-shell-page .site-header {
  position: relative;
  z-index: 20;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.nav-shell {
  position: relative;
  background: linear-gradient(90deg, #1d1d1f 0%, #2a2b2f 50%, #1d1d1f 100%);
  background-color: #1d1d1f;
}

.site-header .container {
  padding-top: var(--nav-pad-y);
  padding-bottom: var(--nav-pad-y);
}

.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
}

.top-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: var(--nav-min-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-mark {
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: 0 0 var(--logo-size);
}

.site-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}

.shell-home-placeholder {
  padding: 32px 0 40px;
}

.shell-home-placeholder__inner,
.shell-view-error .container > p {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.shell-home-placeholder__inner {
  padding: 28px;
  text-align: center;
}

.shell-home-placeholder__inner h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--text);
}

.shell-home-placeholder__inner p {
  margin: 0;
  color: var(--muted);
}

.shell-view-error {
  padding: 24px 0 32px;
}

.shell-view-error .container > p {
  padding: 18px;
  text-align: center;
  color: var(--danger);
}

.logo-particles,
.logo-orb,
.logo-orb__core,
.logo-orb__ring,
.logo-orb__gloss,
.logo-orb__spark,
.logo-orb__trail,
.logo-orb__halo {
  animation: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.logo-orb,
.logo-orb__core,
.logo-orb__ring,
.logo-orb__gloss,
.logo-orb__spark,
.logo-orb__trail,
.logo-orb__halo {
  background: none !important;
  border-color: transparent !important;
  opacity: 0 !important;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--header-text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-dropdown__toggle,
.nav-action,
.icon-btn,
.mobile-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-item-height);
  padding: 0 11px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-nav);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--header-text);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active,
.nav-dropdown__toggle:hover,
.nav-dropdown__toggle:focus-visible,
.nav-action:hover,
.nav-action:focus-visible,
.icon-btn:hover,
.icon-btn:focus-visible,
.mobile-search-btn:hover,
.mobile-search-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--header-text);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 10px;
  border-radius: 16px;
  background: #232428;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 32, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__menu a {
  min-height: 40px;
  justify-content: flex-start;
  padding-inline: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-action {
  gap: 8px;
}

.nav-action svg,
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.mobile-toggle {
  display: none;
}

.mobile-nav-wrap {
  background: #232428;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-inner {
  padding-top: 14px;
  padding-bottom: 16px;
}

.mobile-search-row {
  display: none;
  margin-bottom: 12px;
}

.mobile-nav {
  display: grid;
  gap: 10px;
}

.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--header-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-panel {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-panel-inner {
  padding-top: 18px;
  padding-bottom: 20px;
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.search-field-wrap input,
.search-results a {
  width: 100%;
}

.search-field-wrap input {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.search-results a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.search-results a:hover {
  border-color: var(--line-strong);
  background: #fcfcfc;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  margin-inline-start: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

body.site-shell-page .site-footer {
  width: 100%;
  margin-top: 8px;
  padding: 0 0 28px;
  color: var(--muted);
}

body.site-shell-page .site-footer .container {
  padding-top: 18px;
  border-top: 1px solid rgba(188, 198, 204, 0.72);
  text-align: center;
}

.footer-copy,
.footer-tagline {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.footer-tagline {
  margin-top: 6px;
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 6px;
  }

  .nav-links a {
    padding-inline: 11px;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .top-nav {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .desktop-nav {
    display: none;
  }

  .nav-dropdown__menu {
    display: none !important;
  }

  .desktop-actions .nav-action__text {
    display: none;
  }

  .desktop-actions .nav-action {
    min-width: 42px;
    padding-inline: 11px;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-search-row {
    display: block;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .top-nav {
    min-height: 68px;
    gap: 10px;
  }

  .logo-mark {
    width: var(--logo-size-mobile);
    height: var(--logo-size-mobile);
    flex-basis: var(--logo-size-mobile);
  }

  .logo-text {
    font-size: 18px;
  }

  .icon-btn,
  .nav-action,
  .mobile-search-btn {
    min-height: var(--nav-item-height-mobile);
  }

  .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    margin-inline-start: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 10px;
  }

  body.site-shell-page .site-footer {
    padding-bottom: 24px;
  }
}


/* ===== COMPONENTS ===== */

/* Shared UI components kept intentionally neutral so page styles stay isolated */

.page-head,
.page-intro-band,
.page-intro,
.page-head__text,
.section-head {
  min-width: 0;
}

.section-head {
  display: grid;
  gap: 0;
}

.kicker.ui {
  display: inline-flex;
  width: fit-content;
}

.section-title,
.section-subtitle {
  margin: 0;
}

.products-section-bar {
  min-width: 0;
}

.tinyState,
.hint,
.msgline {
  min-width: 0;
}

.outHidden {
  display: none !important;
}

:where(.primary-btn, .secondary-btn, .ghost-btn, .ghost-danger-btn, .prompt-primary-btn, .prompt-action-btn, .prompt-small-btn, .summary-btn, .state-btn, .account-btn, .account-download-btn, .cart-remove-btn, .tab) {
  text-decoration: none;
}

.page-view-host[aria-busy="true"] {
  cursor: progress;
}


/* ===== HOME PAGE ===== */

/* HubOnTime Home — updated for the new homepage structure */

body.home-shell-page .home-news-layout {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 14px 0 28px;
}

body.home-shell-page .home-lead-row,
body.home-shell-page .home-story-row {
  display: grid;
  align-items: start;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

body.home-shell-page .home-brief,
body.home-shell-page .home-video-feature,
body.home-shell-page .home-story-card {
  min-width: 0;
}

body.home-shell-page .home-brief,
body.home-shell-page .home-story-card {
  display: grid;
  gap: 10px;
}

body.home-shell-page .home-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home-shell-page .home-headline,
body.home-shell-page .home-story-title {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.02em;
}

body.home-shell-page .home-headline {
  font-size: 25px;
  line-height: 1.08;
  max-width: 10ch;
}

body.home-shell-page .home-story-title {
  font-size: 17px;
  line-height: 1.2;
}

body.home-shell-page .home-summary,
body.home-shell-page .home-story-text,
body.home-shell-page .home-video-note,
body.home-shell-page .home-news-item p,
body.home-shell-page .home-media-list {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.76;
}

body.home-shell-page .home-meta {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Row 1: left card + right video */
body.home-shell-page .home-lead-row--split {
  grid-template-columns: minmax(300px, 0.92fr) minmax(520px, 1.08fr);
  gap: 22px;
}

body.home-shell-page .home-video-feature {
  display: grid;
  gap: 10px;
  justify-items: start;
}

body.home-shell-page .home-video-frame {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #101820;
  box-shadow: var(--shadow-card);
}

body.home-shell-page .home-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* General image blocks */
body.home-shell-page .home-inline-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}

body.home-shell-page .home-inline-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Row 2: image left + text right */
body.home-shell-page .home-story-row--media {
  grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
  gap: 20px;
}

body.home-shell-page .home-story-row--media .home-inline-figure {
  aspect-ratio: 16 / 10;
  min-height: 260px;
}

/* Row 3: text + image + text */
body.home-shell-page .home-story-row--center-image {
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 0.95fr) minmax(220px, 0.9fr);
  gap: 18px;
}

body.home-shell-page .home-story-row--center-image .home-inline-figure {
  aspect-ratio: 4 / 5;
  min-height: 280px;
}

/* Mini cards */
body.home-shell-page .home-story-row--mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.home-shell-page .home-story-row--mini .home-story-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

/* One wide card */
body.home-shell-page .home-story-row--single {
  grid-template-columns: 1fr;
}

body.home-shell-page .home-story-card--wide {
  max-width: 900px;
}

/* Mixed extra row */
body.home-shell-page .home-story-row--mixed {
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 0.95fr) minmax(220px, 0.85fr);
  gap: 18px;
}

body.home-shell-page .home-story-row--mixed .home-inline-figure {
  aspect-ratio: 16 / 11;
  min-height: 210px;
}

/* News box */
body.home-shell-page .home-news-box {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-card);
}

body.home-shell-page .home-news-item {
  display: grid;
  gap: 8px;
}

body.home-shell-page .home-news-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

body.home-shell-page .home-news-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: #f6f9fb;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.home-shell-page .home-media-list {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

body.home-shell-page .home-media-list code,
body.home-shell-page .home-story-text code {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text);
  background: #f5f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
}

/* Card rhythm */
body.home-shell-page .home-story-card {
  padding-right: 0;
}

body.home-shell-page .home-story-row--center-image > .home-story-card:not(:last-child),
body.home-shell-page .home-story-row--mixed > .home-story-card:not(:last-child) {
  padding-right: 14px;
  border-right: 1px solid rgba(207, 213, 217, 0.75);
}

body.home-shell-page .home-story-card:hover .home-story-title,
body.home-shell-page .home-brief:hover .home-headline {
  color: #111827;
}

body.home-shell-page .home-video-frame,
body.home-shell-page .home-inline-figure,
body.home-shell-page .home-news-box,
body.home-shell-page .home-story-row--mini .home-story-card {
  transition: box-shadow 180ms ease, transform 160ms ease, border-color 160ms ease;
}

body.home-shell-page .home-video-frame:hover,
body.home-shell-page .home-inline-figure:hover,
body.home-shell-page .home-news-box:hover,
body.home-shell-page .home-story-row--mini .home-story-card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* Responsive */
@media (max-width: 1180px) {
  body.home-shell-page .home-news-layout {
    width: min(100%, 1080px);
  }

  body.home-shell-page .home-lead-row--split {
    grid-template-columns: minmax(280px, 0.95fr) minmax(460px, 1.05fr);
  }

  body.home-shell-page .home-story-row--media {
    grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  }
}

@media (max-width: 1024px) {
  body.home-shell-page .home-lead-row--split,
  body.home-shell-page .home-story-row--media,
  body.home-shell-page .home-story-row--center-image,
  body.home-shell-page .home-story-row--mixed {
    grid-template-columns: 1fr;
  }

  body.home-shell-page .home-story-row--mini {
    grid-template-columns: 1fr;
  }

  body.home-shell-page .home-story-row--center-image > .home-story-card:not(:last-child),
  body.home-shell-page .home-story-row--mixed > .home-story-card:not(:last-child) {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(207, 213, 217, 0.75);
  }

  body.home-shell-page .home-headline {
    max-width: none;
    font-size: 24px;
  }

  body.home-shell-page .home-video-frame {
    max-width: 100%;
  }

  body.home-shell-page .home-story-card--wide {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body.home-shell-page .home-news-layout {
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 22px;
  }

  body.home-shell-page .home-lead-row,
  body.home-shell-page .home-story-row {
    gap: 14px;
    padding-top: 14px;
  }

  body.home-shell-page .home-headline {
    font-size: 22px;
  }

  body.home-shell-page .home-story-title {
    font-size: 16px;
  }

  body.home-shell-page .home-summary,
  body.home-shell-page .home-story-text,
  body.home-shell-page .home-video-note,
  body.home-shell-page .home-news-item p,
  body.home-shell-page .home-media-list {
    font-size: 12px;
    line-height: 1.72;
  }

  body.home-shell-page .home-story-row--mini .home-story-card {
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-shell-page .home-video-frame,
  body.home-shell-page .home-inline-figure,
  body.home-shell-page .home-news-box,
  body.home-shell-page .home-story-row--mini .home-story-card {
    transition: none !important;
  }
}

