/* =========================================
   SAPRICAMI — Design System v2
   ========================================= */

/* Tokens */
:root {
  --bg:            #050c18;
  --surface:       rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border:        rgba(148, 163, 184, 0.1);
  --border-hi:     rgba(148, 163, 184, 0.22);
  --text:          #f0f4ff;
  --muted:         #94a3b8;
  --subtle:        #64748b;
  --green:         #34eba4;
  --green-dim:     rgba(52, 235, 164, 0.1);
  --green-glow:    rgba(52, 235, 164, 0.18);
  --amber:         #f59e0b;
  --amber-dim:     rgba(245, 158, 11, 0.12);
  --rose:          #fb7185;
  --rose-dim:      rgba(251, 113, 133, 0.12);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --radius-full:   9999px;
  --font-sans:     'Inter', sans-serif;
  --font-display:  'Sora', sans-serif;
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

.container { width: min(1120px, 90vw); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: -50px;
  left: 16px;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 10px; }

/* =========================================
   NAVIGATION
   ========================================= */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(5, 12, 24, 0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img { border-radius: 8px; }
.nav-list { display: flex; align-items: center; gap: 4px; padding: 0; }
.nav-list a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: color 0.15s, background 0.15s;
}
.nav-list a:hover,
.nav-list a:focus-visible { color: var(--text); background: var(--surface-hover); }
.nav-cta { background: var(--green) !important; color: #03180d !important; font-weight: 700 !important; padding: 7px 18px !important; }
.nav-cta:hover { background: #5effc4 !important; color: #03180d !important; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  line-height: 0;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 120px 80px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.mesh { position: absolute; border-radius: 50%; filter: blur(80px); }
.mesh-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(52, 235, 164, 0.18) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.mesh-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
  bottom: -150px; left: -150px;
}
.mesh-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  top: 30%; left: 40%;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 28px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-hi);
  background: rgba(52, 235, 164, 0.06);
  color: var(--green);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-full);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px var(--green-dim);
  animation: pulse 2s ease infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--green-dim); }
  50%       { box-shadow: 0 0 0 6px transparent; }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; max-width: 18ch; margin: 0 auto;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.025em;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  line-height: 1.3; letter-spacing: -0.015em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, #38d4eb 55%, var(--green) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.lead { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.12rem); max-width: 52ch; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 12px 24px; border-radius: var(--radius-full);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green); color: #03180d; }
.btn-primary:hover { background: #5effc4; box-shadow: 0 4px 24px var(--green-glow); }
.btn-secondary { background: var(--surface-hover); color: var(--text); border: 1px solid var(--border-hi); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(148,163,184,0.4); }
.btn-ghost { background: none; color: var(--text); border: 1px solid var(--border-hi); }
.btn-ghost:hover { background: var(--surface-hover); }

.hero-stats {
  display: flex; align-items: stretch;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(12px);
  overflow: hidden; margin-top: 12px;
}
.stat-item { padding: 18px 36px; text-align: center; flex: 1; }
.stat-item + .stat-item { border-left: 1px solid var(--border); }
.stat-value {
  display: block; font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.stat-label {
  display: block; color: var(--muted); font-size: 0.78rem;
  margin-top: 5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}

/* =========================================
   SECTION LABELS
   ========================================= */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.kicker::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--green); border-radius: 2px; flex-shrink: 0;
}
.section-label { margin-bottom: 48px; }
.section-label h2 { margin-top: 10px; max-width: 26ch; }
.section-label.centered { text-align: center; }
.section-label.centered h2 { margin-inline: auto; }
.section-label.centered .kicker { justify-content: center; }
.section-label.centered .kicker::before { display: none; }

/* =========================================
   PRODUCTS
   ========================================= */
.products-section { padding-block: 80px 96px; }
.product-list { display: flex; flex-direction: column; gap: 14px; }
.product-row {
  display: grid; grid-template-columns: 56px 1fr auto;
  align-items: center; gap: 28px; padding: 26px 30px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background 0.2s, transform 0.22s var(--ease-out);
}
.product-row:hover { border-color: var(--border-hi); background: var(--surface-hover); transform: translateX(4px); }
.product-num {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800; flex-shrink: 0;
}
.num-green { background: var(--green-dim); color: var(--green); }
.num-amber { background: var(--amber-dim); color: var(--amber); }
.num-rose  { background: var(--rose-dim);  color: var(--rose); }
.product-body { min-width: 0; }
.product-body h3 { margin-bottom: 6px; }
.product-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.product-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.72rem; padding: 5px 11px;
  border-radius: var(--radius-full); letter-spacing: 0.07em;
  text-transform: uppercase; white-space: nowrap;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-live { background: var(--green-dim); color: #6effc8; }
.status-live::before { background: #6effc8; }
.status-dev  { background: var(--amber-dim); color: #fcd34d; }
.status-dev::before  { background: #fcd34d; }

.product-links { display: flex; gap: 8px; }
.product-links a {
  text-decoration: none; font-size: 0.82rem; font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border); color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s; white-space: nowrap;
}
.product-links a:hover { color: var(--text); border-color: var(--border-hi); }
.product-links a.launch { background: var(--green-dim); border-color: rgba(52, 235, 164, 0.25); color: var(--green); }
.product-links a.launch:hover { background: rgba(52, 235, 164, 0.18); }

/* =========================================
   BENTO PRINCIPLES
   ========================================= */
.bento-section {
  padding-block: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 18, 33, 0.5) 50%, transparent 100%);
}
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bento-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}
.bento-card:hover { border-color: var(--border-hi); background: var(--surface-hover); }
.bento-card.wide { grid-column: span 2; }
.bento-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 18px;
}
.bento-icon-green { background: var(--green-dim); }
.bento-icon-amber { background: var(--amber-dim); }
.bento-icon-rose  { background: var(--rose-dim); }
.bento-icon-blue  { background: rgba(99, 102, 241, 0.1); }
.bento-card h3 { font-size: 1rem; margin-bottom: 8px; }
.bento-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; margin: 0; }

/* =========================================
   ABOUT BANNER
   ========================================= */
.about-section { padding-block: 80px; }
.about-banner {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(52, 235, 164, 0.18);
  background: linear-gradient(135deg, rgba(52, 235, 164, 0.05) 0%, rgba(9, 18, 33, 0.6) 60%);
  padding: 64px; position: relative; overflow: hidden;
}
.about-banner::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,235,164,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.about-banner h2 { max-width: 22ch; margin-block: 14px 18px; }
.about-banner p { color: var(--muted); max-width: 62ch; line-height: 1.75; margin-bottom: 32px; }

/* =========================================
   CONTACT
   ========================================= */
.contact-section { padding-block: 80px 96px; text-align: center; }
.contact-inner { max-width: 580px; margin-inline: auto; }
.contact-inner .kicker { justify-content: center; }
.contact-inner .kicker::before { display: none; }
.contact-inner h2 { margin-bottom: 18px; }
.contact-inner > p { color: var(--muted); margin-bottom: 36px; line-height: 1.75; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 700; color: var(--green);
  text-decoration: none; border: 1px solid rgba(52, 235, 164, 0.25);
  padding: 14px 28px; border-radius: var(--radius-full);
  background: var(--green-dim); transition: background 0.2s, box-shadow 0.2s;
}
.contact-email:hover { background: rgba(52, 235, 164, 0.16); box-shadow: 0 0 0 4px rgba(52, 235, 164, 0.08); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer { border-top: 1px solid var(--border); padding-block: 48px 36px; }
.footer-wrap {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 12px; max-width: 30ch; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; padding: 0; }
.footer-col a { text-decoration: none; color: var(--muted); font-size: 0.88rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p, .footer-bottom a { color: var(--subtle); font-size: 0.82rem; text-decoration: none; }
.footer-bottom a:hover { color: var(--muted); }

/* =========================================
   APP DETAIL PAGES
   ========================================= */
.page-main { padding-block: 120px 80px; }
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  color: var(--subtle); font-size: 0.84rem; margin-bottom: 32px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span { color: var(--subtle); }
.page-hero { margin-bottom: 48px; }
.page-hero .kicker { margin-bottom: 12px; }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.2rem);    margin: 10px 0 16px; }
.page-hero .lead { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; }
.detail-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.detail-card h2 { font-size: 1.15rem; margin-bottom: 12px; }
.detail-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.detail-card .btn { margin-top: 20px; }
.detail-card ul { display: flex; flex-direction: column; gap: 10px; padding: 0; }
.detail-card ul li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--muted); font-size: 0.9rem; line-height: 1.55;
}
.detail-card ul li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.detail-full { margin-top: 14px; }
.youtube-wrap { border-radius: var(--radius-md); overflow: hidden; margin-top: 12px; border: 1px solid var(--border); }
.youtube-wrap iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: none; }
.update-list { display: flex; flex-direction: column; gap: 12px; padding: 0; }
.update-list li { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 18px; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.update-date { display: block; font-size: 0.73rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }

/* =========================================
   SCROLL REVEAL
   ========================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.wide { grid-column: span 1; }
}
@media (max-width: 860px) {
  .product-row { grid-template-columns: 48px 1fr; grid-template-rows: auto auto; }
  .product-meta { grid-column: span 2; flex-direction: row; align-items: center; justify-content: flex-start; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .detail-grid { grid-template-columns: 1fr; }
  .about-banner { padding: 40px; }
}
@media (max-width: 640px) {
  .nav-list { display: none; }
  .nav-list.open {
    display: flex; flex-direction: column;
    position: fixed; inset-block-start: 65px; inset-inline: 0;
    background: rgba(5, 12, 24, 0.97); backdrop-filter: blur(20px);
    padding: 20px; border-bottom: 1px solid var(--border); gap: 4px; z-index: 99;
  }
  .nav-list.open a { padding: 12px 16px; border-radius: var(--radius-md); }
  .menu-toggle { display: flex; align-items: center; }
  h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; width: 100%; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--border); }
  .bento-grid { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .about-banner { padding: 28px; }
  .product-row { padding: 18px; gap: 14px; }
  .page-main { padding-block: 100px 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


