/* Korye Creations — shared stylesheet */

:root {
  --text: #e8e8e8;
  --text-strong: #ffffff;
  --muted: #9a9a9a;
  --accent: #4fb0b0;
  --accent-strong: #6fc8c8;
  --accent-hover: #8de0e0;
  --purple: #9a6fc8;
  --purple-strong: #b48cd8;
  --bg: #1a1a1a;
  --bg-elevated: #252525;
  --card: #1f1f1f;
  --border: #333333;
  --code-bg: #2a2a2a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo img {
  height: 42px;
  width: auto;
  display: block;
}
.site-logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  text-transform: uppercase;
}
.site-logo-text .accent { color: var(--purple-strong); }
@media (max-width: 480px) {
  .site-logo-text { display: none; }
}

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover {
  background: var(--card);
  color: var(--accent-strong);
}
.site-nav a.active {
  color: var(--accent-strong);
  background: var(--card);
}

/* ---------------- Typography ---------------- */

h1 {
  font-size: 2.4rem;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--accent-strong);
}
h3 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-strong);
}
p, li { margin: 0.6em 0; }
ul { padding-left: 1.4em; }
strong { font-weight: 600; color: var(--text-strong); }

a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

code {
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--accent-strong);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

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

.hero {
  text-align: center;
  padding: 80px 24px 60px;
}
.hero h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--purple-strong), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.brand-banner-wide {
  display: block;
  max-width: 560px;
  width: 100%;
  height: auto;
  margin: 0 auto 32px;
}

/* ---------------- Product cards ---------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  opacity: 0.6;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.product-card h3 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--text-strong);
}
.product-card .status {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 600;
}
.status.shipping  { background: rgba(79, 176, 176, 0.18); color: var(--accent-strong); }
.status.wip       { background: rgba(154, 111, 200, 0.18); color: var(--purple-strong); }
.status.planning  { background: rgba(154, 154, 154, 0.15); color: var(--muted); }

.product-card p {
  color: var(--muted);
  margin: 0 0 16px;
  flex: 1;
}
.product-card .card-footer {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------------- CTA button ---------------- */

.cta-row { margin: 32px 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--accent));
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--card);
  text-decoration: none;
}
.btn-disabled {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
}

/* ---------------- Section blocks ---------------- */

section {
  padding: 48px 0;
}
section + section {
  border-top: 1px solid var(--border);
}

.intro-callout {
  background: var(--bg-elevated);
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  margin: 24px 0;
}

.updated { color: var(--muted); font-size: 0.95rem; }

.page-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

/* ---------------- Feature lists (product pages) ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.feature {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.feature h4 {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 1.05rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------- Data tables ---------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
thead th {
  background: var(--bg-elevated);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(79, 176, 176, 0.04); }
td code { white-space: nowrap; }

/* ---------------- Footer ---------------- */

.site-footer {
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 32px 0;
  font-size: 0.9rem;
  margin-top: 64px;
}
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 18px;
}
.site-footer a:hover { color: var(--accent-strong); }

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

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 48px 20px 40px; }
  .hero h1 { font-size: 2.2rem; }
  .hero .tagline { font-size: 1.05rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.35rem; }
  .site-logo img { height: 40px; }
  .site-nav { gap: 4px; }
  .site-nav a { padding: 6px 10px; font-size: 0.9rem; }
}
