/* ==========================================================================
   YAE STORE — Stylesheet
   A premium, pink + white, glass-forward technology storefront.
   Pure HTML5 + CSS3. No JavaScript, no frameworks.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Variables ---------- */
:root {
  /* Pink spectrum */
  --pink-mist: #fff4f9;
  --pink-soft: #ffe1ee;
  --pink-light: #ffb8d9;
  --pink-primary: #ff5fa8;
  --pink-deep: #d81b73;
  --pink-ink: #7a1249;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #fefbfc;
  --paper: #fbf6f9;
  --ink: #1c1420;
  --ink-soft: #4a3d47;
  --ink-muted: #8a7a86;
  --border: rgba(216, 27, 115, 0.14);
  --border-soft: rgba(28, 20, 32, 0.08);

  /* Surfaces */
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-tint: rgba(255, 95, 168, 0.08);

  /* Shadows */
  --shadow-soft: 0 1px 2px rgba(28, 20, 32, 0.04), 0 12px 32px -16px rgba(216, 27, 115, 0.22);
  --shadow-strong: 0 4px 8px rgba(28, 20, 32, 0.05), 0 24px 48px -20px rgba(216, 27, 115, 0.32);
  --glow-pink: 0 0 0 1px rgba(255, 95, 168, 0.15), 0 0 40px rgba(255, 95, 168, 0.22);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --nav-height: 76px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 640px at 82% -10%, var(--pink-mist) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 20%, var(--pink-mist) 0%, transparent 55%),
    var(--off-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

section { position: relative; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.card-link:focus-visible {
  outline: 2px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-heading {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-heading {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--pink-deep);
  margin-bottom: 14px;
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink-light));
  border-radius: 2px;
}

.card-heading {
  font-size: 1.25rem;
  font-weight: 600;
}

.body-text {
  color: var(--ink-soft);
  font-size: 1.03rem;
  max-width: 62ch;
}

.meta-text {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.gradient-text {
  background: linear-gradient(100deg, var(--pink-deep) 0%, var(--pink-primary) 55%, var(--pink-ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-deep));
  color: var(--white);
  box-shadow: 0 14px 28px -12px rgba(216, 27, 115, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(216, 27, 115, 0.65);
}

.btn-primary:active { transform: translateY(0px) scale(0.98); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  border-color: var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--pink-light);
  color: var(--pink-deep);
  transform: translateY(-2px);
}

.btn-ghost:active { transform: translateY(0px) scale(0.98); }

.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 250, 252, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}

.nav-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
}

.wordmark-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-deep));
  box-shadow: 0 6px 14px -6px rgba(216, 27, 115, 0.6);
  position: relative;
}

.wordmark-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  background: var(--white);
  opacity: 0.9;
  clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--pink-deep);
  background: var(--glass-tint);
}

.nav-links a.active {
  color: var(--pink-deep);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink-primary), var(--pink-deep));
  box-shadow: 0 0 10px rgba(216, 27, 115, 0.5);
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 8px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--pink-ink);
  margin-bottom: 26px;
  box-shadow: var(--shadow-soft);
}

.eyebrow-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-primary);
  box-shadow: 0 0 0 4px rgba(255, 95, 168, 0.22);
}

.hero-copy p.body-text {
  margin-top: 22px;
  font-size: 1.1rem;
}

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

/* Floating visual stack */
.hero-visual {
  position: relative;
  height: 460px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.55;
}

.blob-a {
  width: 320px;
  height: 320px;
  top: -30px;
  right: 10px;
  background: radial-gradient(circle at 35% 30%, var(--pink-light), transparent 70%);
  animation: drift-a 14s ease-in-out infinite;
}

.blob-b {
  width: 240px;
  height: 240px;
  bottom: -10px;
  left: 0;
  background: radial-gradient(circle at 60% 60%, var(--pink-soft), transparent 70%);
  animation: drift-b 18s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.06); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -18px) scale(1.05); }
}

.stack-card {
  position: absolute;
  width: 300px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-strong);
}

.stack-card--terminal {
  top: 18px;
  left: 4px;
  z-index: 2;
  animation: float-slow 7s ease-in-out infinite;
}

.stack-card--app {
  bottom: 12px;
  right: -6px;
  z-index: 3;
  width: 250px;
  animation: float-slow 8s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.terminal-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.terminal-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--pink-soft);
}
.terminal-dots span:nth-child(1) { background: var(--pink-primary); }

.terminal-line {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pink-soft), transparent);
  margin-bottom: 9px;
}
.terminal-line.w-70 { width: 70%; }
.terminal-line.w-50 { width: 50%; }
.terminal-line.w-85 { width: 85%; }

.stack-card--app .app-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-deep));
  flex-shrink: 0;
}

.app-row-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.app-row-sub { font-size: 0.8rem; color: var(--ink-muted); margin-top: 2px; }

.app-progress {
  margin-top: 16px;
  height: 6px;
  background: var(--pink-mist);
  border-radius: 4px;
  overflow: hidden;
}
.app-progress-fill {
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--pink-primary), var(--pink-deep));
  border-radius: 4px;
}

/* ---------- Sections generic ---------- */
.section { padding: 88px 0; }
.section-alt {
  background: linear-gradient(180deg, var(--paper) 0%, var(--off-white) 100%);
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: var(--pink-light);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--pink-soft), var(--pink-mist));
  border: 1px solid var(--border);
  position: relative;
}

.feature-icon::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-deep));
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pink-soft), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: var(--pink-light);
}

.product-category {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--pink-mist);
  border: 1px solid var(--border);
  color: var(--pink-deep);
  font-size: 0.76rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 16px;
}

.product-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.product-card p.body-text { font-size: 0.95rem; margin-bottom: 22px; }

.price-block {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.price-label { font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 4px; }

.price-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.price-value .currency {
  font-size: 0.95rem;
  font-weight: 600;
  margin-right: 3px;
  color: var(--pink-deep);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink-deep);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.card-link:hover {
  background: var(--pink-mist);
  box-shadow: var(--glow-pink);
}

/* ---------- Products page header ---------- */
.page-header {
  padding: 78px 0 44px;
  text-align: center;
}

.page-header .section-head { margin-inline: auto; }

/* ---------- CSS-only product detail overlay (:target) ---------- */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 20, 32, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.detail-overlay:target {
  opacity: 1;
  visibility: visible;
}

.detail-panel {
  width: 100%;
  max-width: 480px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-strong);
  position: relative;
  transform: translateY(14px);
  transition: transform 0.3s ease;
}

.detail-overlay:target .detail-panel { transform: translateY(0); }

.detail-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--ink-soft);
}

.detail-close:hover { color: var(--pink-deep); border-color: var(--pink-light); }

.detail-panel .product-category { margin-bottom: 18px; }
.detail-panel h3 { font-size: 1.5rem; margin-bottom: 12px; }
.detail-panel .body-text { margin-bottom: 24px; }

.detail-specs {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.detail-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 10px 14px;
  background: var(--pink-mist);
  border-radius: var(--radius-sm);
}

.detail-spec-row span:first-child { color: var(--ink-muted); }
.detail-spec-row span:last-child { font-weight: 600; }

/* ---------- Owner page ---------- */
.profile-hero { padding-bottom: 0; }

.profile-banner {
  position: relative;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,20,32,0) 45%, rgba(28,20,32,0.55) 100%);
}

.profile-block {
  position: relative;
  padding: 0 8px;
  margin-top: -74px;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid var(--off-white);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pink-soft);
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-id { padding-bottom: 14px; }

.profile-id h1 { font-size: 1.9rem; margin-bottom: 6px; }

.profile-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.profile-actions {
  margin-left: auto;
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
}

.profile-body {
  padding-top: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.info-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.info-card h3 { margin-bottom: 14px; }

.highlight-grid {
  display: grid;
  gap: 14px;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--glass-strong);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.highlight-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-deep));
  flex-shrink: 0;
}

.highlight-title { font-weight: 600; font-size: 0.96rem; }
.highlight-sub { font-size: 0.82rem; color: var(--ink-muted); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 60px 0 34px;
  border-top: 1px solid var(--border-soft);
  background: var(--paper);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand .wordmark { margin-bottom: 10px; }
.footer-brand p { color: var(--ink-muted); font-size: 0.92rem; max-width: 32ch; }

.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--ink-soft); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--pink-deep); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; margin-top: 20px; }
  .feature-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-body { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 66px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 12px; font-size: 0.88rem; }
  .hero { padding: 54px 0 46px; }
  .section { padding: 62px 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .profile-actions { margin-left: 0; width: 100%; }
  .profile-actions .btn { flex: 1; }
}

@media (max-width: 620px) {
  .container { padding-inline: 20px; }
  .feature-grid, .product-grid { grid-template-columns: 1fr; }
  .wordmark span.wordmark-text { font-size: 1.05rem; }
  .nav-links a { padding: 8px 10px; font-size: 0.84rem; }
  .hero-visual { height: 340px; }
  .stack-card { width: 78vw; }
  .stack-card--app { width: 64vw; }
  .profile-avatar { width: 108px; height: 108px; }
  .profile-block { margin-top: -54px; }
  .profile-banner { height: 220px; }
  .footer-row { flex-direction: column; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 2.1rem; }
  .section-heading { font-size: 1.55rem; }
  .detail-panel { padding: 26px; }
}
