/* softwares.cafetekno.web.id — etalase produk digital CafeTekno */

:root {
  --bg: #050810;
  --surface: #0a0f1a;
  --surface-2: #0d1424;
  --border: rgba(34, 211, 238, 0.18);
  --border-strong: rgba(34, 211, 238, 0.42);
  --accent: #22d3ee;
  --accent-2: #38bdf8;
  --text: #e6edf7;
  --muted: #94a3b8;
  --muted-dim: #64748b;
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(34, 211, 238, 0.28); color: #a5f3fc; }

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

button, input { font: inherit; }

.mono, kbd { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Background effects ---------- */

.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.backdrop__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 211, 238, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(56, 189, 248, 0.08), transparent 70%);
}

.backdrop__grid {
  position: absolute; inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.backdrop__grain {
  position: absolute; inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Notice bar ---------- */

.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 26, 0.75);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.notice__sep { color: var(--muted-dim); }
.notice__domain { color: var(--accent); }

.pulse {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  color: #04121c;
  background: linear-gradient(135deg, #67e8f9, #22d3ee 45%, #38bdf8);
  box-shadow: 0 0 32px -8px rgba(34, 211, 238, 0.9);
}

.brand__mark svg { width: 20px; height: 20px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.brand__name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand__dot { color: var(--accent); }
.brand__sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.8;
  margin-top: 3px;
}

.header-nav { display: flex; align-items: center; gap: 30px; }

.header-nav__link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.header-nav__link:hover, .header-nav__link.is-active { color: var(--accent); }

.header-nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.05);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero { padding: 76px 0 54px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-bottom: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.eyebrow span { opacity: 0.55; }

.hero__title {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(100deg, #67e8f9, #22d3ee 45%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted-dim);
  letter-spacing: 0.02em;
}

.hero__meta strong { color: var(--text); font-weight: 600; }

.hero__meta-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted-dim);
}

/* ---------- Toolbar ---------- */

.etalase { padding: 24px 0 90px; scroll-margin-top: 90px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 34px;
  border-top: 1px solid rgba(34, 211, 238, 0.14);
}

.section-head__title {
  margin: 0 0 6px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.section-head__desc { margin: 0; font-size: 0.85rem; color: var(--muted-dim); }
.section-head__desc span { color: var(--accent); }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 100%);
  padding: 0 12px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.07);
}

.search svg { width: 17px; height: 17px; flex: none; }

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
}

.search input::placeholder { color: var(--muted-dim); }
.search input::-webkit-search-cancel-button { filter: invert(0.7); cursor: pointer; }

.search kbd {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  color: var(--muted-dim);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 24px;
}

.filter {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 15, 26, 0.6);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter:hover {
  border-color: var(--border-strong);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.06);
}

.filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #04121c;
  font-weight: 600;
  box-shadow: 0 0 24px -8px rgba(34, 211, 238, 0.8);
}

/* ---------- Product grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 65%);
  box-shadow: 0 0 60px -40px rgba(34, 211, 238, 0.55);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: rise 0.45s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px -25px rgba(34, 211, 238, 0.45);
}

.card--featured { border-color: rgba(34, 211, 238, 0.38); }

.card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07111d;
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
}

.card__thumb img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card__thumb img { transform: scale(1.06); }

.card__thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 16, 0.65), transparent 45%);
  pointer-events: none;
}

.card__badge {
  position: absolute;
  z-index: 1;
  top: 14px; left: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 8px;
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__live {
  position: absolute;
  z-index: 1;
  top: 14px; right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  background: rgba(6, 30, 25, 0.85);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: #6ee7b7;
}

.card__live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}

.card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.card:hover .card__title { color: var(--accent); }

.card__title svg {
  width: 15px; height: 15px;
  flex: none;
  color: var(--accent);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: all 0.2s ease;
}

.card:hover .card__title svg { opacity: 1; transform: translate(0, 0); }

.card__desc {
  margin: 0 0 20px;
  font-size: 0.855rem;
  line-height: 1.65;
  color: var(--muted);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag {
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.06);
  color: #aebbd0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
}

/* ---------- Empty state ---------- */

.empty {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(10, 15, 26, 0.4);
}

.empty[hidden] { display: none; }
.empty__icon { font-size: 2.4rem; color: var(--accent); }
.empty h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.empty p { margin: 0 0 20px; font-size: 0.875rem; color: var(--muted); }

.empty button {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.empty button:hover { background: rgba(34, 211, 238, 0.16); }

/* ---------- About + footer ---------- */

.about { padding-bottom: 80px; scroll-margin-top: 90px; }

.about__box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.05), transparent 60%), var(--surface);
}

.about__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.07);
  color: var(--accent);
}

.about__icon svg { width: 21px; height: 21px; }

.about h2 {
  margin: 2px 0 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
}

.about p {
  max-width: 760px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}

.site-footer { border-top: 1px solid var(--border); background: rgba(5, 8, 16, 0.6); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 12px;
  color: var(--muted-dim);
}

.footer-inner a { color: var(--accent); }
.footer-inner a:hover { color: #a5f3fc; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .header-nav, .header-status { display: none; }
  .hero { padding: 56px 0 44px; }
  .section-head { align-items: stretch; }
  .search { width: 100%; }
  .search kbd { display: none; }
  .about__box { padding: 22px; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 28px, 1180px); }
  .notice { font-size: 10px; gap: 7px; }
  .notice__domain, .notice__sep { display: none; }
  .grid { grid-template-columns: 1fr; }
}

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