/* ==========================================================================
   Discovio — shared stylesheet
   ========================================================================== */

:root {
  --bg: #0b0f14;
  --bg-alt: #101720;
  --panel: #141c26;
  --panel-border: #223041;
  --text: #eef2f6;
  --text-dim: #9fb0c0;
  --accent: #3ee6c4;
  --accent-dim: #1f8f7c;
  --accent-2: #ff8a3d;
  --radius: 14px;
  --max-width: 1120px;
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--text-dim); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--panel);
}

.nav-cta {
  background: var(--accent);
  color: #04140f !important;
  font-weight: 600;
  padding: 9px 16px !important;
}

.nav-cta:hover {
  background: #5cf0d3 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 1rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--panel-border);
    padding: 12px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

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

.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(62,230,196,0.18), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 640px;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #04140f;
}
.btn-primary:hover { background: #5cf0d3; }

.btn-secondary {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Pillars / cards ---------- */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s, border-color 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(62, 230, 196, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

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

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--panel-border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-media { order: -1; }
}

.col-media {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
}

.img-placeholder {
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px);
}

.img-placeholder svg { width: 48px; height: 48px; color: var(--accent-dim); }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--panel-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.02rem;
  padding: 20px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question .chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
  color: var(--accent);
}

.faq-item.open .chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p { padding-bottom: 18px; padding-right: 30px; }

.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- Contact form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }

label { font-size: 0.85rem; color: var(--text-dim); }

input, textarea {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ---------- Callout / CTA band ---------- */

.callout {
  background: linear-gradient(135deg, rgba(62,230,196,0.1), rgba(255,138,61,0.08));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.callout h2 { margin-bottom: 10px; }

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

.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-grid nav a { color: var(--text-dim); font-size: 0.9rem; }
.footer-grid nav a:hover { color: var(--accent); }

.footer-meta {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 24px;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
