/* Ainur Labs — shared site stylesheet */

:root {
  /* Palette extracted from WhatsApp Video 2026-06-26 at 16.39.32.mp4 (~6s) — the ring-of-rings still */
  --gold: #d9973f;
  --gold-dim: #8d5120;
  --gold-bright: #fbe08a;
  --emerald: #b9791f;
  --emerald-bright: #f0b355;
  --emerald-dim: rgba(185, 121, 31, 0.5);
  --accent: #6b3a14;
  --obsidian: #050301;
  --panel: #120a04;
  --glass: rgba(18, 10, 4, 0.88);
  --glass-border: rgba(217, 151, 63, 0.2);
  --card-border: #3a2410;
  --text: #f5ecd9;
  --text-dim: #9c8368;
  --text-faint: rgba(245, 236, 217, 0.35);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--obsidian);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(141, 81, 32, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(217, 151, 63, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(185, 121, 31, 0.05) 0%, transparent 50%);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

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

h1, h2, h3 { font-family: 'Cinzel', serif; }

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 6vw; }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 3, 1, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 6vw;
}

.logo {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links a { color: var(--text-dim); transition: color 0.25s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--emerald); }

.nav-toggle { display: none; background: none; border: 1px solid var(--glass-border); color: var(--emerald); padding: 0.5rem 0.8rem; font-family: 'JetBrains Mono'; cursor: pointer; }

/* Hero */
.hero {
  padding: 10vh 6vw 8vh;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(217, 151, 63, 0.05) 50%, transparent 100%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max); margin: 0 auto; }

.hero .mono { display: inline-block; margin-bottom: 1.5rem; }

.hero h1,
.product-hero h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  position: relative;
  background-image:
    radial-gradient(circle at 50% 35%, rgba(217, 151, 63, 0.95) 0%, rgba(217, 151, 63, 0.15) 55%, rgba(217, 151, 63, 0) 75%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.32 0 0 0 0 0.27 0 0 0 0 0.22 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: overlay, normal;
  background-size: cover, 240px 240px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 12px rgba(217, 151, 63, 0.55),
    0 0 28px rgba(217, 151, 63, 0.35),
    0 0 50px rgba(141, 81, 32, 0.25);
  animation: rune-glow 5s ease-in-out infinite alternate;
  margin-bottom: 1.5rem;
}

@keyframes rune-glow {
  from {
    text-shadow:
      0 0 10px rgba(217, 151, 63, 0.45),
      0 0 22px rgba(217, 151, 63, 0.28),
      0 0 42px rgba(141, 81, 32, 0.2);
  }
  to {
    text-shadow:
      0 0 16px rgba(217, 151, 63, 0.75),
      0 0 36px rgba(217, 151, 63, 0.45),
      0 0 65px rgba(240, 179, 85, 0.3);
  }
}

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 640px;
  font-weight: 300;
}

.cta-row { display: flex; gap: 1.2rem; margin-top: 2.5rem; flex-wrap: wrap; }

.btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--glass-border);
  transition: 0.3s;
  display: inline-block;
}
.btn-solid { background: var(--emerald); color: var(--obsidian); border-color: var(--emerald); }
.btn-solid:hover { background: transparent; color: var(--emerald); }
.btn-outline { color: var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: var(--obsidian); }

/* Sections */
section { padding: 6vh 6vw; }
section.tight { padding: 5vh 6vw; }
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-label { margin-bottom: 1rem; }
h2.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.01em; }

p.body-text { color: var(--text-dim); font-size: 1.05rem; max-width: 720px; font-weight: 300; }

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  position: relative;
  transition: 0.35s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 0%;
  background: var(--emerald);
  transition: height 0.35s ease;
}
.card:hover { border-color: var(--emerald); transform: translateY(-4px); }
.card:hover::before { height: 100%; }

.card .mono { display: block; margin-bottom: 1rem; }

/* Crown jewels */
.jewel-grid { margin-top: 3rem; }
.card.jewel {
  border-color: var(--gold-dim);
  background: linear-gradient(160deg, rgba(217, 151, 63, 0.07) 0%, var(--glass) 45%);
  box-shadow: 0 0 0 1px rgba(217, 151, 63, 0.08), 0 20px 45px rgba(217, 151, 63, 0.06);
}
.card.jewel::before { background: var(--gold); }
.card.jewel:hover { border-color: var(--gold); transform: translateY(-6px); }
.card.jewel .mono { color: var(--gold); }
.card.jewel h3 { font-size: 1.6rem; }
.card.jewel .card-link { color: var(--gold); }
.jewel-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: var(--gold);
  padding: 0.3rem 0.7rem;
}
.card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.2rem; }
.card .card-link { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald); }

/* Product detail page */
.product-hero { border-bottom: 1px solid var(--glass-border); padding: 8vh 6vw 6vh; }
.product-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  margin-bottom: 1.2rem;
}
.product-body { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; margin-top: 2rem; }
@media (max-width: 800px) { .product-body { grid-template-columns: 1fr; } }

.highlight-list { list-style: none; }
.highlight-list li { padding: 1.2rem 0; border-top: 1px solid var(--glass-border); color: var(--text-dim); font-size: 0.95rem; }
.highlight-list li:last-child { border-bottom: 1px solid var(--glass-border); }
.highlight-list strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 0.3rem; }

.side-panel { border-left: 1px solid var(--glass-border); padding-left: 2rem; }
.side-panel .mono { display: block; margin-bottom: 0.8rem; }

/* Team */
.team-card { text-align: center; padding: 3rem 1.5rem; }
.team-card .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: 'Cinzel', serif;
  color: var(--accent);
  font-size: 1.3rem;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.team-card .role { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }

/* Form */
form.contact-form { max-width: 600px; margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--emerald); }
.field textarea { min-height: 140px; }

.form-msg { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; margin-top: 0.5rem; }
.form-msg.ok { color: var(--emerald); }
.form-msg.err { color: #c0392b; }

/* CTA band */
.cta-band { border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 2rem; }

/* Footer */
footer {
  padding: 4rem 6vw 3rem;
  border-top: 1px solid var(--glass-border);
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-inner .mono { color: var(--text-faint); }
.footer-links { display: flex; gap: 2rem; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.footer-links a:hover { color: var(--emerald); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--obsidian); padding: 1.5rem 6vw; border-bottom: 1px solid var(--glass-border); gap: 1.2rem; }
  .nav-toggle { display: block; }
}
