:root {
  --bg: #fff;
  --bg-elevated: #f8f8f8;
  --text: #1a1a1a;
  --text-muted: rgba(0, 0, 0, 0.5);
  --border: rgba(0, 0, 0, 0.08);
  --font: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto !important; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  overflow-x: hidden;
}

.gradient-mesh {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 20%, rgba(0,0,0,0.02) 0%, transparent 60%);
}
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.logo {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-nav-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.header-nav .header-nav-link,
.header-nav .header-nav-link-btn {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav .header-nav-link:hover,
.header-nav .header-nav-link-btn:hover {
  color: var(--text);
}
.header-nav .header-nav-link-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.header-menu-backdrop {
  display: none;
}
.header-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  transition: background 0.15s;
}
.header-burger:hover {
  background: rgba(0, 0, 0, 0.06);
}
.header-burger-lines {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background 0.2s;
}
.header-burger-lines::before,
.header-burger-lines::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, top 0.2s;
}
.header-burger-lines::before { top: -6px; }
.header-burger-lines::after { top: 6px; }
.header--nav-open .header-burger-lines {
  background: transparent;
}
.header--nav-open .header-burger-lines::before {
  top: 0;
  transform: rotate(45deg);
}
.header--nav-open .header-burger-lines::after {
  top: 0;
  transform: rotate(-45deg);
}
.header-nav-plans {
  display: none;
}
@media (max-width: 899px) {
  .header-burger {
    display: flex;
  }
  .header-cta-desktop {
    display: none;
  }
  .header-nav-plans {
    display: block;
  }
  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }
  .header-nav-wrap {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(17.5rem, calc(100vw - max(0px, env(safe-area-inset-left))));
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    padding-top: calc(4.35rem + env(safe-area-inset-top));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    padding-left: 1.25rem;
    padding-right: max(1.25rem, env(safe-area-inset-right));
    flex: none;
    justify-content: flex-start;
    align-items: stretch;
    background: var(--bg);
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.06);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 52;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .header--nav-open .header-nav-wrap {
    transform: translate3d(0, 0, 0);
  }
  .header-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s, visibility 0.22s;
  }
  .header--nav-open .header-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .header-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }
  .header-nav .header-nav-link,
  .header-nav .header-nav-link-btn {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: normal;
  }
}
@media (min-width: 900px) {
  .logo {
    max-width: none;
  }
  .header-nav .header-nav-link,
  .header-nav .header-nav-link-btn {
    white-space: nowrap;
    padding: 0;
    border-bottom: none;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.header-cta {
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.header-cta:hover { color: var(--text); }
.header-connect-wallet {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: #0a0a0a;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.header-connect-wallet:hover {
  background: #222;
}
.header-connect-wallet:active {
  transform: scale(0.98);
}
.header-cw-full { display: inline; }
.header-cw-compact { display: none; }

@media (max-width: 520px) {
  .header {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    gap: 0.5rem;
  }
  .logo {
    font-size: 0.8125rem;
    letter-spacing: -0.03em;
  }
  .header-actions {
    gap: 0.35rem;
  }
  .header-cta {
    font-size: 0.8125rem;
  }
  .header-cart {
    width: 36px;
    height: 36px;
  }
  .header-connect-wallet {
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
  }
  .header-cw-full { display: none; }
  .header-cw-compact { display: inline; }
}

.terms-top-notice {
  padding: 0.55rem 0 0.55rem 1rem;
  padding-top: max(4.35rem, calc(0.85rem + env(safe-area-inset-top) + 2.75rem));
  padding-right: 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.terms-top-notice-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.terms-top-notice-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  mask-image: linear-gradient(to right, transparent 0, #000 0.5rem, #000 calc(100% - 0.75rem), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.5rem, #000 calc(100% - 0.75rem), transparent 100%);
}
.terms-top-notice-text {
  margin: 0;
  padding: 0.2rem 0.25rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: center;
}
.terms-top-notice-label {
  display: inline;
  margin-right: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.terms-top-notice-copy {
  display: inline;
}
.terms-top-notice-link {
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.terms-top-notice-link:hover {
  color: var(--text-muted);
}
.terms-top-notice-dismiss {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.terms-top-notice-dismiss:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
}
@media (min-width: 900px) {
  .terms-top-notice-scroll {
    justify-content: flex-start;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .terms-top-notice-text {
    text-align: left;
  }
}
.hero-full {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem 2rem;
}
.hero-inner {
  text-align: center;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.hero-headline {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.hero-tagline {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 36rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
.hero-btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.hero-btn-secondary:hover {
  background: var(--bg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.hero-device-wrap {
  margin: 0 auto 2rem;
  flex-shrink: 0;
  background: transparent;
}
.hero-device-img {
  width: clamp(320px, 60vw, 520px);
  height: auto;
  max-height: clamp(520px, 85vh, 720px);
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
  border-radius: 24px;
  background: transparent;
}
.hero-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.payment-strip {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.strip-dot { opacity: 0.4; }

.shop-section {
  padding: 3rem 2rem 4rem;
}
.shop-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.shop-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.shop-icon {
  width: 28px;
  height: 28px;
  opacity: 0.9;
}
.filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: rgba(0,0,0,0.2); }
.filter-btn.active {
  color: #fff;
  border-color: transparent;
}
.filter-btn[data-filter="all"].active { background: #1a1a1a; }
.filter-btn-15.active { background: #0a84ff; color: #fff; }
.filter-btn-16.active { background: #30d158; color: #fff; }
.filter-btn-pro.active { background: #bf5af2; color: #fff; }
.filter-color,
.filter-sort {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}
.filter-color option,
.filter-sort option { background: #fff; color: var(--text); }
.filter-color:focus,
.filter-sort:focus { outline: none; border-color: rgba(0,0,0,0.2); }

.how-strip {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.how-strip-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}
.how-strip-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.how-strip-lead {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.55;
}
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 720px) {
  .how-steps {
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
    row-gap: 0;
  }
}
.how-step {
  margin: 0;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem 0;
  align-content: start;
}
.how-step:nth-child(n + 2) {
  border-top: 1px solid var(--border);
}
@media (min-width: 720px) {
  .how-step:nth-child(n + 2) {
    border-top: none;
  }
  .how-step:nth-child(3),
  .how-step:nth-child(4) {
    border-top: 1px solid var(--border);
  }
  .how-step {
    padding: 1.65rem 1.75rem 1.75rem 0;
  }
  .how-step:nth-child(odd) {
    padding-right: 1.75rem;
  }
  .how-step:nth-child(even) {
    padding-left: 1.75rem;
    border-left: 1px solid var(--border);
  }
}
.how-step-num {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.how-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.how-step-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.how-step-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 38rem;
}

.tw-offer-section {
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}
.tw-offer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tw-offer-card,
.tw-terms-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  background: var(--bg-elevated);
}
.tw-offer-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #1a1a1a;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.tw-offer-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.tw-offer-copy {
  font-size: 0.9375rem;
  color: rgba(0,0,0,0.75);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.tw-offer-list,
.tw-terms-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.tw-offer-list li + li,
.tw-terms-list li + li { margin-top: 0.35rem; }
.tw-terms-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}
.tw-terms-intro {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.tw-terms-intro strong { color: var(--text); }

.roadmap-section {
  padding: 4rem 1.5rem 5rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.roadmap-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.roadmap-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.roadmap-intro {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.5;
}
.roadmap-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) {
  .roadmap-columns { grid-template-columns: 1fr; }
}
.roadmap-col-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.roadmap-col-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.roadmap-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  align-items: baseline;
}
@media (max-width: 520px) {
  .roadmap-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
.roadmap-time {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.roadmap-item-title {
  color: var(--text);
  font-weight: 500;
}

.catalog-section { padding: 4rem 2rem; }
.catalog-inner { max-width: 1100px; margin: 0 auto; }
.catalog-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.catalog-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.product-block {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-elevated);
  margin-bottom: 2rem;
}
.product-block:last-child { margin-bottom: 0; }
.product-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}
.product-block-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.product-block-img {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.product-block-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-block-name { font-size: 1.5rem; font-weight: 700; }
.product-block-role {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: -0.35rem;
}
.product-block-meta { font-size: 1rem; color: var(--text-muted); }
.product-block-desc {
  font-size: 0.875rem;
  color: rgba(0,0,0,0.65);
  line-height: 1.45;
}
.product-block-colors, .product-block-storage {
  font-size: 0.9375rem;
  color: rgba(0,0,0,0.7);
}
.product-meta-label { color: var(--text-muted); margin-right: 0.5rem; }
.product-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.product-read-more {
  font-size: 0.9375rem;
  color: rgba(0,0,0,0.6);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.product-read-more:hover { color: #1a1a1a; }
.product-select-btn {
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, background 0.2s;
}
.product-select-btn:hover { opacity: 0.85; background: #333; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(920px, 95vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--text); background: rgba(0,0,0,0.06); }
.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}
.modal-left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}
.modal-gallery-center { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }
.modal-gallery-img {
  width: 190%;
  max-width: none;
  max-height: min(520px, 70vh);
  height: auto;
  object-fit: contain;
}
.modal-gallery-prev, .modal-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s;
}
.modal-gallery-prev { left: 0.75rem; }
.modal-gallery-next { right: 0.75rem; }
.modal-gallery-prev:hover, .modal-gallery-next:hover {
  background: #fff;
  color: var(--text);
}
.modal-gallery-prev:disabled, .modal-gallery-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.modal-gallery-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.modal-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-gallery-dot.current { background: rgba(0,0,0,0.6); }
.modal-right { display: flex; flex-direction: column; gap: 1.5rem; }
.modal-title { font-size: 1.5rem; font-weight: 700; }
.modal-subscribe-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: -0.75rem;
}
.modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modal-spec {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
}
.modal-options { display: flex; flex-direction: column; gap: 1.25rem; }
.modal-option { display: flex; flex-direction: column; gap: 0.5rem; }
.modal-option-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.modal-colornav, .modal-storagenav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modal-colornav-btn, .modal-storagenav-btn {
  font-family: inherit;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.modal-colornav-btn:hover, .modal-storagenav-btn:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.2);
}
.modal-colornav-btn.current, .modal-storagenav-btn.current {
  background: rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.25);
  color: var(--text);
}
.modal-colornav-btn { padding: 0.25rem; }
.modal-swatch {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.modal-colornav-btn.current .modal-swatch { border-color: #1a1a1a; box-shadow: 0 0 0 2px rgba(0,0,0,0.2); }
.modal-color-name { font-size: 0.875rem; color: var(--text-muted); }
.modal-price { font-size: 1.125rem; font-weight: 600; }
.modal-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 9999px;
  text-align: center;
  transition: opacity 0.2s, background 0.2s;
}
.modal-btn:hover { opacity: 0.9; background: #333; }
button.modal-btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
}
.modal-right .modal-btn {
  width: 100%;
  max-width: 320px;
}

.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.header-cart:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}
.header-cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #1a1a1a;
  border-radius: 999px;
}

.cart-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html.modal-open {
  overflow: hidden;
  height: 100%;
}

.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer span { margin: 0 0.25rem; }
.footer-terms-btn {
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  margin: 0 0.25rem;
  cursor: pointer;
  text-decoration: none;
}
.footer-terms-btn:hover {
  color: var(--text);
}

[data-tilt] .js-tilt-glare {
  background: linear-gradient(135deg, rgba(0,0,0,0.04) 0%, transparent 50%);
  border-radius: inherit;
}

@media (max-width: 900px) {
  
  .modal-overlay {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    min-height: 100vh;
    min-height: 100dvh;
    overscroll-behavior: none;
  }
  .modal-backdrop {
    background: var(--bg-elevated);
    backdrop-filter: none;
  }
  
  .modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transform: none;
    transition: none;
  }
  .modal-overlay.is-open .modal-dialog {
    transform: none;
  }
  
  .modal-close {
    position: fixed;
    top: max(0.5rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    left: auto;
    z-index: 101;
    margin: 0;
    flex-shrink: 0;
    background: var(--bg-elevated);
    box-shadow: 0 0 0 6px var(--bg-elevated);
  }
  .modal-content {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    flex: 0 0 auto;
    width: 100%;
    padding: calc(0.75rem + env(safe-area-inset-top) + 2.25rem) 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    overflow: visible;
  }
  .modal-left {
    order: -1;
    min-height: 0;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }
  .modal-gallery {
    width: 100%;
    min-height: 0;
  }
  .modal-gallery-center {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .modal-gallery-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(52vh, 480px);
    object-fit: contain;
    margin: 0 auto;
    display: block;
  }
  .modal-gallery-prev,
  .modal-gallery-next {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .modal-gallery-prev { left: 0.35rem; }
  .modal-gallery-next { right: 0.35rem; }
  .modal-title { font-size: 1.35rem; }
  .modal-right {
    gap: 1rem;
    overflow: visible;
    padding-bottom: 0;
  }
}
@media (max-width: 700px) {
  .product-block-inner { grid-template-columns: 1fr; padding: 1.5rem; }
  .product-block-image { min-height: 200px; }
}
@media (max-width: 600px) {
  .hero-headline { font-size: 3.5rem; }
  .hero-device-wrap { margin-bottom: 2rem; }
  .footer { font-size: 0.75rem; }
  .footer span { display: block; margin: 0.25rem 0; }
  .modal-content {
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 1rem;
  }
  .modal-gallery-img {
    max-height: min(48vh, 420px);
  }
  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }
  .modal-specs { gap: 0.35rem; }
  .modal-spec { font-size: 0.75rem; }
  .modal-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cart-page {
  padding: 5.5rem 1.5rem 3rem;
  min-height: 60vh;
}
.cart-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.cart-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.cart-page-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 640px;
}
.checkout-flow-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
}
@media (max-width: 640px) {
  .checkout-flow-banner {
    grid-template-columns: 1fr;
  }
}
.checkout-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.15rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.checkout-flow-copy {
  min-width: 0;
}
.checkout-flow-step strong {
  display: block;
  color: var(--text);
  font-size: 0.875rem;
  margin-bottom: 0.12rem;
  letter-spacing: -0.02em;
}
.checkout-flow-sub {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
}
.checkout-flow-step.is-active .checkout-flow-num {
  background: #1a1a1a;
  color: #fff;
}
.checkout-flow-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  color: var(--text);
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}
@media (max-width: 600px) {
  .cart-line {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    padding-top: 2.5rem;
  }
  .cart-line-media {
    flex: 0 0 64px;
    width: 64px;
  }
  .cart-line-body {
    flex: 1 1 calc(100% - 80px);
    min-width: 0;
  }
  .cart-line-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
  }
  .cart-line-qty {
    flex: 0 0 auto;
  }
  .cart-line-sum {
    margin-left: auto;
    align-self: center;
  }
}
.cart-line-media {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1;
}
.cart-line-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-line-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.cart-line-meta,
.cart-line-unit {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.cart-qty-btn {
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: background 0.15s;
}
.cart-qty-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}
.cart-qty-value {
  min-width: 2rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
}
.cart-line-sum {
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.cart-line-remove {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.cart-line-remove:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}
.cart-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.cart-empty a {
  color: var(--text);
  font-weight: 500;
}
.cart-summary {
  margin-top: 0.5rem;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}
.cart-summary-total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.cart-checkout-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cart-checkout-lead {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.checkout-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.checkout-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.checkout-input {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.checkout-input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.checkout-textarea {
  resize: vertical;
  min-height: 88px;
}
.checkout-input.input-error {
  border-color: #c00;
  box-shadow: 0 0 0 1px #c00;
}
.checkout-field-consent {
  margin-top: 0.25rem;
}
.checkout-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
}
.checkout-consent strong {
  color: var(--text);
  font-weight: 600;
}
.checkout-checkbox {
  flex-shrink: 0;
  width: 1.0625rem;
  height: 1.0625rem;
  margin: 0.2rem 0 0;
  accent-color: #1a1a1a;
  cursor: pointer;
}
.checkout-consent-text {
  user-select: none;
}
.checkout-terms-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.checkout-terms-link:hover {
  color: var(--text-muted);
}
.checkout-terms-link-inline {
  font-weight: 500;
}
.checkout-consent.is-error {
  outline: 1px solid #c00;
  outline-offset: 2px;
  border-radius: 8px;
  padding: 0.5rem;
  margin: -0.5rem;
}
.checkout-submit {
  margin-top: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}
.checkout-submit:hover {
  opacity: 0.92;
  background: #333;
}
.checkout-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.checkout-disclaimer {
  margin-top: 1rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}
.cart-back {
  margin-top: 2rem;
  text-align: center;
}
.cart-back-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}
.cart-back-link:hover {
  color: var(--text);
}

.terms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  overscroll-behavior: contain;
  touch-action: manipulation;
}
.terms-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.terms-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}
.terms-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  max-height: min(88vh, 88dvh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  touch-action: auto;
  min-height: 0;
}
.terms-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.terms-modal-close:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
}
.terms-modal-header {
  flex-shrink: 0;
  padding: 1.5rem 3rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.terms-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.terms-modal-updated {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.terms-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.25rem 1.5rem 1.75rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.78);
  touch-action: pan-y;
}
.terms-modal-lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}
.terms-modal-h3 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 1.35rem 0 0.5rem;
}
.terms-modal-h3:first-of-type {
  margin-top: 0;
}
.terms-modal-list {
  margin: 0 0 0.15rem;
  padding-left: 1.1rem;
}
.terms-modal-list li {
  margin-bottom: 0.4rem;
}
.terms-modal-list li:last-child {
  margin-bottom: 0;
}
.terms-modal-p {
  margin: 0 0 0.5rem;
}
.terms-modal-footnote {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (max-width: 600px) {
  .terms-modal-dialog {
    max-height: min(92vh, 92dvh);
    border-radius: 16px;
  }
  .terms-modal-header {
    padding-right: 2.75rem;
  }
}
