/* ============================================================
   COREPIXEL — Homepage
   Requires common/css/core.css (tokens, header, footer, buttons)
   ============================================================ */

/* ---------- hero ---------- */
.header-inner {
  min-height: 54px;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.brand-mark::before {
  left: 6px;
  top: 6px;
  width: 5px;
  height: 5px;
  box-shadow:
    6px 0 0 var(--blue),
    12px 0 0 var(--cyan),
    0 6px 0 var(--blue),
    12px 6px 0 var(--pink),
    0 12px 0 var(--cyan),
    6px 12px 0 var(--violet),
    12px 12px 0 var(--amber);
}

.brand-name {
  font-size: 12.5px;
}

.brand-badge {
  margin-top: 2px;
  padding: 1.5px 7px;
  font-size: 9.5px;
}

.site-nav a {
  padding: 6px 11px;
  font-size: 12.5px;
}

.hero {
  position: relative;
  padding: 34px 0 24px;
  overflow: hidden;
}

/* floating aurora orbs */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 380px;
  height: 380px;
  right: 4%;
  top: -90px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 68%);
  animation: drift 11s ease-in-out infinite alternate;
}
.hero::after {
  width: 320px;
  height: 320px;
  left: -60px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 68%);
  animation: drift 13s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(36px, 26px, 0) scale(1.12); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 30px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-s);
}
.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-warm);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink);
  max-width: 20ch;
}

.hero-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 58ch;
}

.hero-cta-wrap { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--grad-brand);
  background-size: 160% 160%;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background-position 0.5s ease;
}
.hero-cta-btn::after {
  content: "→";
  font-weight: 700;
  transition: transform 0.3s var(--ease-out);
}
.hero-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.45) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-out);
}
.hero-cta-btn:hover {
  transform: translateY(-2px);
  background-position: 90% 50%;
  box-shadow: 0 24px 56px -16px rgba(79, 70, 229, 0.55);
}
.hero-cta-btn:hover::before { transform: translateX(130%); }
.hero-cta-btn:hover::after { transform: translateX(4px); }
.hero-cta-btn:focus-visible { outline: 3px solid rgba(47, 107, 255, 0.4); outline-offset: 3px; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  max-width: 520px;
}
.hero-meta div {
  position: relative;
  padding: 11px 13px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.hero-meta div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
}
.hero-meta div:nth-child(2)::before { background: var(--grad-warm); }
.hero-meta div:nth-child(3)::before { background: linear-gradient(115deg, var(--cyan), var(--blue)); }
.hero-meta div:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hero-meta span { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: block; }
.hero-meta strong { margin-top: 5px; display: block; font-size: 14px; font-family: var(--font-display); }

/* glass business panel */
.hero-panel {
  position: relative;
  padding: 22px 24px 20px;
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad-brand);
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.14), transparent 68%);
  pointer-events: none;
}
.hero-panel h2 {
  margin: 0 0 8px;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
}
.hero-panel p { margin: 0 0 12px; color: var(--muted); line-height: 1.55; font-size: 0.92rem; }
.hero-panel ul { margin: 0; padding: 0; list-style: none; }
.hero-panel li {
  position: relative;
  padding: 7px 0 7px 28px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-panel li + li { border-top: 1px dashed var(--line); }
.hero-panel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--grad-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 11.4 2.9 8.1 1.5 9.5l4.7 4.7 8.3-8.3-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.2 11.4 2.9 8.1 1.5 9.5l4.7 4.7 8.3-8.3-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- sections ---------- */
.section { padding: 56px 0; }
#products { padding-top: 22px; }
.section-muted {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-block: 1px solid rgba(23, 26, 43, 0.06);
}

.section-head { max-width: 640px; margin-bottom: 18px; }
.section-kicker {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-kicker::before {
  content: "";
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--muted); margin: 0; line-height: 1.7; }

/* ---------- product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.product-card:only-child {
  grid-column: 1 / -1;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.product-card:hover::before { opacity: 1; }

.product-cover {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #ece9f8, #e2f2f8);
  transition: transform 0.6s var(--ease-out);
}
.product-card:hover .product-cover { transform: scale(1.035); }

.product-cover-placeholder {
  width: 100%;
  aspect-ratio: 16 / 6;
  background:
    radial-gradient(20rem 10rem at 85% 0%, rgba(6, 182, 212, 0.25), transparent 65%),
    radial-gradient(18rem 10rem at 10% 100%, rgba(124, 58, 237, 0.25), transparent 65%),
    linear-gradient(135deg, #eef0fa, #e8f6fb);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 17px 18px;
}

.product-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.product-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.product-status {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3.5px 9px;
  border-radius: 999px;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.product-icon-row { margin-top: 10px; }
.product-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow-s);
}
.product-icon-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad-brand);
  opacity: 0.85;
}

.product-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.product-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.product-shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.product-shot:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-s); }
.product-shots-large .product-shot { aspect-ratio: 16 / 9; }

.product-video-wrap { margin-top: 12px; border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--shadow-s); }
.product-video { width: 100%; display: block; background: #0c0e1a; }

.product-cta { margin-top: 14px; }
.play-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
  background: var(--grad-warm);
  background-size: 160% 160%;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 14px 32px -12px rgba(236, 72, 153, 0.55);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background-position 0.5s ease;
}
.play-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease-out);
}
.play-btn:hover {
  transform: translateY(-2px);
  background-position: 90% 50%;
  box-shadow: 0 18px 38px -12px rgba(236, 72, 153, 0.65);
}
.play-btn:hover::before { transform: translateX(130%); }
.play-btn:focus-visible { outline: 3px solid rgba(236, 72, 153, 0.35); outline-offset: 3px; }

.play-note {
  margin: 7px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.product-tags span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--blue);
  background: rgba(47, 107, 255, 0.08);
  border: 1px solid rgba(47, 107, 255, 0.22);
  border-radius: 999px;
  padding: 3.5px 8px;
}
.product-tags span + span { color: #0e7490; background: rgba(6, 182, 212, 0.08); border-color: rgba(6, 182, 212, 0.26); }

.product-links {
  display: flex;
  gap: 13px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.product-links a {
  position: relative;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.product-links a::after {
  content: "↗";
  margin-left: 5px;
  font-size: 12px;
  color: var(--violet);
  display: inline-block;
  transition: transform 0.28s var(--ease-out);
}
.product-links a:hover { color: var(--violet); }
.product-links a:hover::after { transform: translate(2px, -2px); }

/* ---------- info cards ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.info-card {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.info-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad-brand);
}
.info-card:nth-child(2)::before { background: var(--grad-warm); }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card h3 { margin: 0 0 14px; font-size: 1.2rem; letter-spacing: -0.01em; }
.info-card ul { margin: 0; padding: 0; list-style: none; }
.info-card li { padding: 7px 0; color: var(--muted); line-height: 1.65; font-size: 0.95rem; }
.info-card li + li { border-top: 1px dashed var(--line); }
.info-card strong { color: var(--ink); }
.info-card a {
  color: var(--blue);
  font-weight: 700;
  word-break: break-all;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease-out);
}
.info-card a:hover { background-size: 100% 1.5px; }

/* ---------- compliance links ---------- */
.compliance-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.compliance-links a {
  position: relative;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, color 0.25s ease, border-color 0.25s ease;
}
.compliance-links a:hover {
  transform: translateY(-3px);
  color: var(--violet);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: var(--shadow);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 32px 0 22px; }
  .hero-grid, .info-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: none; }
  .section { padding: 44px 0; }
  #products { padding-top: 22px; }
  .hero-panel { display: none; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 62px; gap: 10px; }
  .brand { gap: 7px; }
  .brand-name { max-width: 105px; font-size: 11.5px; line-height: 1.15; }
  .brand-badge { display: none; }
  .site-nav { gap: 3px; justify-content: flex-end; }
  .site-nav a { padding: 5px 7px; font-size: 12px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.96rem; line-height: 1.5; }
  .hero-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-meta div { padding: 9px 9px 8px; }
  .hero-meta span { font-size: 9.5px; letter-spacing: 0.05em; }
  .hero-meta strong { font-size: 11.5px; line-height: 1.25; }
  #products .section-head p { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-cta-btn { width: 100%; justify-content: center; }
}
