/* =========================================================
   Eighty6 — Dark Premium Design System v2
   ========================================================= */

:root {
  /* Brand palette — Eighty6 */
  --coral: #E94B4B;
  --coral-soft: #FF6B6B;
  --coral-glow: rgba(233, 75, 75, 0.15);
  --steel: #3A7BB8;
  --steel-soft: #5A96D1;
  --steel-glow: rgba(58, 123, 184, 0.15);

  /* ISO app accent (mint green from logo) */
  --mint: #2CD4A5;
  --mint-soft: #4FE5BC;
  --mint-glow: rgba(44, 212, 165, 0.15);

  /* Surfaces */
  --bg: #0A0B0F;
  --bg-elevated: #12141B;
  --bg-card: #171A23;
  --bg-card-hover: #1E2230;
  --border: #252937;
  --border-subtle: #1C1F2A;

  /* Text */
  --text: #F5F5F7;
  --text-secondary: #A8ADB8;
  --text-muted: #6B7080;

  /* Typography — system fonts, zero external requests */
  --font-display: 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --max-width-prose: 760px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--coral-glow) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--steel-glow) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Decorative "86" watermark — top right of pages */
.watermark-86 {
  position: fixed;
  top: 80px;
  right: -120px;
  width: 260px;
  height: auto;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
  transition: opacity 1.5s var(--ease);
}

@media (max-width: 900px) {
  .watermark-86 {
    display: none;
  }
}

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

a {
  color: var(--steel-soft);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--coral-soft);
}

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

code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--coral-soft);
  border: 1px solid var(--border-subtle);
}

em {
  font-style: italic;
}

/* =========================================================
   Layout
   ========================================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.prose {
  max-width: var(--max-width-prose);
  margin: 0 auto;
}

.prose p { margin-bottom: 1.25rem; }
.prose h2 { margin-top: 3rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol {
  color: var(--text-secondary);
  margin: 0 0 1.25rem 1.5rem;
}
.prose li { margin-bottom: 0.5rem; }

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-brand img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

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

@media (max-width: 700px) {
  .nav-links {
    gap: 1.25rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .nav-brand img { height: 28px; }
  .nav-brand { font-size: 1.05rem; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral-soft);
  padding: 0.5rem 1rem;
  border: 1px solid var(--coral-glow);
  border-radius: 100px;
  margin-bottom: 2rem;
  background: var(--coral-glow);
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--coral-soft), var(--steel-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
}

.hero-logo {
  width: 140px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 20px 60px rgba(233, 75, 75, 0.25))
          drop-shadow(0 10px 40px rgba(58, 123, 184, 0.2));
}

/* =========================================================
   Page header (for inner pages)
   ========================================================= */

.page-header {
  padding: 5rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.page-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-header h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.page-header .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-header-logo {
  width: 80px;
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
}

/* =========================================================
   Sections
   ========================================================= */

section {
  padding: 4rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* =========================================================
   Homepage — Studio status card
   ========================================================= */

.status-card {
  max-width: 560px;
  margin: 3rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.status-card .status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-soft);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.status-card .status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.status-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.status-card p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-secondary);
}

/* =========================================================
   Info cards / feature blocks
   ========================================================= */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s var(--ease);
}

.info-card:hover {
  border-color: var(--border);
}

.info-card h4 {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* =========================================================
   CTA & Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.btn-primary {
  background: var(--coral);
  color: white;
}

.btn-primary:hover {
  background: var(--coral-soft);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--coral-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--steel-soft);
  color: var(--steel-soft);
}

/* =========================================================
   Definition list (for privacy policies)
   ========================================================= */

.data-list {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.data-list dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 1rem;
}

.data-list dt:first-child { margin-top: 0; }

.data-list dd {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* =========================================================
   Callout / notices
   ========================================================= */

.notice {
  background: var(--steel-glow);
  border-left: 3px solid var(--steel-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.notice strong {
  color: var(--steel-soft);
}

.notice.warning {
  background: var(--coral-glow);
  border-color: var(--coral-soft);
}

.notice.warning strong {
  color: var(--coral-soft);
}

.notice.mint {
  background: var(--mint-glow);
  border-color: var(--mint-soft);
}

.notice.mint strong {
  color: var(--mint-soft);
}

/* =========================================================
   Themed pages — ISO app uses mint accent
   ========================================================= */

body.theme-iso .page-header .eyebrow {
  color: var(--mint-soft);
}

body.theme-iso a {
  color: var(--mint-soft);
}

body.theme-iso a:hover {
  color: var(--mint);
}

body.theme-iso::after {
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 60%);
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: 6rem;
  background: var(--bg-elevated);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
}

/* =========================================================
   Back link
   ========================================================= */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  transition: color 0.2s var(--ease);
}

.back-link:hover {
  color: var(--steel-soft);
}

body.theme-iso .back-link:hover {
  color: var(--mint-soft);
}

/* =========================================================
   Animations
   ========================================================= */

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

.fade-up {
  animation: fadeUp 0.8s var(--ease) both;
}

.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }
.fade-up:nth-child(5) { animation-delay: 0.4s; }

/* =========================================================
   Responsive tweaks
   ========================================================= */

@media (max-width: 640px) {
  .hero { padding: 4rem 0 3rem; }
  .page-header { padding: 3rem 0 2rem; }
  section { padding: 3rem 0; }
  .nav-inner { padding: 0.85rem 1.25rem; }
  .hero-logo { width: 110px; }
  .page-header-logo { width: 64px; }
}
