/* PiratesCode — Landing Page */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --bg2: #111;
  --bg3: #161616;
  --border: rgba(255,255,255,0.07);
  --accent: #C8956C;
  --accent2: #a87550;
  --text: #e8e0d8;
  --muted: #6b6159;
  --dim: #3a3330;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Canvas background ── */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-skull {
  color: var(--accent);
  display: flex;
  align-items: center;
}


.nav-logo {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(200,149,108,0.3);
  flex-shrink: 0;
  display: block;
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,149,108,0.08);
  border: 1px solid rgba(200,149,108,0.2);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0a0a;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover { background: #d9a87e; transform: translateY(-1px); }

/* ── Terminal ── */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'DM Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.term-bar {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }

.term-title {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.term-body {
  padding: 20px 20px 24px;
  min-height: 180px;
  line-height: 1.7;
}

.term-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.term-user { color: var(--accent); font-weight: 600; }
.term-arrow { color: var(--muted); }
.term-cursor { display: inline-block; width: 7px; height: 1em; background: var(--accent); opacity: 0.9; animation: blink 1s step-end infinite; vertical-align: text-bottom; margin-left: 1px; }

@keyframes blink { 50% { opacity: 0; } }

#termOutput { display: block; color: var(--muted); padding-top: 4px; }

.out-line {
  display: block;
  opacity: 0;
  transform: translateY(4px);
  animation: lineIn 0.25s ease forwards;
}

@keyframes lineIn {
  to { opacity: 1; transform: none; }
}

.out-dim  { color: var(--muted); }
.out-accent { color: var(--accent); }
.out-green { color: #5ab97c; }

/* ── Section shared ── */
.section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-sub {
  color: var(--muted);
  max-width: 500px;
  font-size: 0.95rem;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  position: relative;
  z-index: 1;
}

/* ── Products ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 28px 32px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: rgba(200,149,108,0.35);
  transform: translateY(-3px);
}

.card-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  margin-bottom: 8px;
}

.card-icon .icon { width: 80px; height: 80px; stroke-width: 1.5; }

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.card-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot-green { background: #5ab97c; box-shadow: 0 0 6px #5ab97c; }
.dot-amber { background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: pulse 2s ease-in-out infinite; }
.dot-dim   { background: var(--dim); }

@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Values ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value {
  padding: 28px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.value-icon {
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.value-icon .icon { width: 24px; height: 24px; stroke-width: 1.75; }

.value-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-brand .nav-skull { color: var(--accent); }

.footer-copy {
  color: var(--dim);
  font-size: 0.8rem;
}

/* ── Icon helper ── */
.icon { display: inline-block; }

/* ── Kraken logo (pre-converted to amber + transparent bg) ── */
.card-logo {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid, .values-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
