/* ═══════════════════════════════════════════════
   CoStar AI Agent — Shared Subpage Styles
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg: #060b18;
  --bg-elevated: #0a1020;
  --bg-card: #0d1529;
  --border: #151f38;
  --border-light: #1c2d50;
  --text: #edf0f7;
  --text-secondary: #8a96b0;
  --text-muted: #556178;
  --accent: #14b8a6;
  --accent-light: #5eead4;
  --accent-dark: #0d9488;
  --accent-glow: rgba(20, 184, 166, 0.10);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

/* ── NAV ──────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 32px;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; color: var(--text);
  text-decoration: none; letter-spacing: -0.2px;
}
.nav-brand img { border-radius: 6px; display: block; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  padding: 6px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }

/* ── PAGE CONTENT ─────────────────────────── */
.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}

.page-container h1 {
  font-size: 36px; font-weight: 800; color: #fff;
  letter-spacing: -0.8px; margin-bottom: 8px; line-height: 1.15;
}

.page-container .last-updated {
  font-size: 13px; color: var(--text-muted); margin-bottom: 48px;
}

.page-container h2 {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-top: 48px; margin-bottom: 16px; letter-spacing: -0.3px;
}

.page-container h3 {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin-top: 28px; margin-bottom: 10px;
}

.page-container p {
  margin-bottom: 16px; font-size: 15px; line-height: 1.75;
}

.page-container ul, .page-container ol {
  padding-left: 24px; margin-bottom: 16px;
}

.page-container li {
  margin-bottom: 8px; font-size: 15px; line-height: 1.7;
}

.page-container strong { color: var(--text); }

/* ── INFO BOX ─────────────────────────────── */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.info-box h3 { margin-top: 0; color: var(--accent-light); font-size: 14px; }

.data-flow {
  font-family: 'Courier New', monospace;
  font-size: 14px; color: var(--accent-light);
  text-align: center; padding: 16px 0; line-height: 1.6;
}

/* ── FOOTER ───────────────────────────────── */
.footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  max-width: 1100px; margin: 0 auto;
}
.footer-brand { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }

/* ── CONTACT PAGE SPECIFICS ───────────────── */
.page-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 28px 96px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.page-wide h1 {
  font-size: 36px; font-weight: 800; color: #fff;
  letter-spacing: -0.8px; margin-bottom: 12px; line-height: 1.15;
}
.page-wide .subtitle {
  font-size: 16px; color: var(--text-secondary); margin-bottom: 36px;
}
.info-block { margin-bottom: 28px; }
.info-block h3 {
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
}
.info-block p { font-size: 15px; color: var(--text-secondary); }
.info-block a { color: var(--accent-light); }

/* ── FORMS ────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-card label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 6px;
}
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border-light); border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: var(--text); font-family: inherit; font-size: 14px;
  margin-bottom: 16px; transition: border-color 0.2s;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-card textarea { resize: vertical; min-height: 100px; }
.form-card .btn {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; justify-content: center;
  padding: 13px 24px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff; font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.25);
}
.form-card .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(20, 184, 166, 0.35);
}
.form-card .btn:disabled {
  opacity: 0.6; cursor: wait; transform: none;
}
.form-success {
  display: none; text-align: center; padding: 32px;
  color: var(--accent-light); font-size: 15px;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .page-container { padding: 40px 20px 64px; }
  .page-container h1 { font-size: 28px; }
  .page-wide { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px 64px; }
  .footer { flex-direction: column; text-align: center; padding: 32px 20px; }
}
