/* ============================================================
   OfficePulse – style.css
   Design: Clean corporate-editorial with slate + amber accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Variables ── */
:root {
  --bg:           #0e1117;
  --surface:      #161b26;
  --surface2:     #1e2535;
  --border:       rgba(255,255,255,0.08);
  --text:         #e8ecf4;
  --text-muted:   #7a8499;
  --accent:       #f5a623;
  --accent-dim:   rgba(245,166,35,0.12);
  --accent2:      #4fc3f7;
  --muted-line:   rgba(255,255,255,0.18);
  --success:      #4ade80;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.22s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

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

/* ── Background Grid ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

body > *:not(.bg-grid) { position: relative; z-index: 1; }

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(14,17,23,0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.3rem;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--accent); background: var(--accent-dim); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: #0e1117;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: #ffc04d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.28);
}

.btn-primary:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-arrow { font-size: 1rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  background: transparent;
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── Badge ── */
.landing-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer a { transition: var(--transition); }
.site-footer a:hover { color: var(--accent); }

/* ── Inline Link ── */
.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}
.inline-link:hover { opacity: 0.75; }

/* ============================================================
   LANDING PAGE
   ============================================================ */

.landing-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 3rem;
  align-items: center;
  padding: 5rem 2.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.landing-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.accent-text { color: var(--accent); }

.landing-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 1.8rem;
}

/* Privacy Notice */
.privacy-notice {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2.2rem;
  max-width: 520px;
}

.notice-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

.privacy-notice p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.privacy-notice strong { color: var(--text); }

.landing-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.survey-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Visual Cards */
.landing-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  animation: floatIn 0.6s ease both;
}

.card-1 { animation-delay: 0.1s; }
.card-2 { animation-delay: 0.25s; }
.card-3 { animation-delay: 0.4s; }

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

.vc-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

/* Bar Chart Card */
.vc-bar-group { display: flex; flex-direction: column; gap: 0.5rem; }
.vc-bar {
  height: 28px;
  background: var(--accent-dim);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  border-left: 3px solid var(--accent);
  transition: width 0.6s ease;
}
.vc-bar span { font-size: 0.78rem; color: var(--text); }

/* Donut Card */
.vc-donut { display: flex; align-items: center; gap: 1rem; }
.vc-donut svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.donut-legend { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; }

/* Icon Row Card */
.vc-icons { display: flex; flex-direction: column; gap: 0.4rem; }
.vc-icon-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.vc-icon-row strong { color: var(--text); margin-left: auto; font-weight: 600; }

/* ============================================================
   SURVEY PAGE
   ============================================================ */

.survey-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.survey-shell {
  width: 100%;
  max-width: 640px;
}

/* Progress */
.progress-header {
  margin-bottom: 2rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.progress-track {
  height: 4px;
  background: var(--surface2);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* Question Card */
.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  animation: cardIn 0.35s ease both;
}

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

.q-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.q-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* Options */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.option-btn:hover {
  border-color: rgba(245,166,35,0.4);
  background: rgba(245,166,35,0.06);
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}

.option-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.option-btn.selected .option-indicator {
  border-color: var(--accent);
  background: var(--accent);
}

.option-btn.selected .option-indicator::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0e1117;
}

.survey-actions {
  display: flex;
  justify-content: flex-end;
}

/* Thank You */
.thankyou-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  animation: cardIn 0.4s ease both;
}

.ty-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: block;
}

.ty-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.ty-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 2rem;
}

.ty-summary {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.ty-summary strong { color: var(--text); }

/* ============================================================
   PRIVACY PAGE
   ============================================================ */

.privacy-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.privacy-container {
  width: 100%;
  max-width: 720px;
}

.privacy-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.privacy-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.privacy-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.privacy-section h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
  color: var(--accent);
}

.privacy-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.privacy-section p + p { margin-top: 0.75rem; }

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.privacy-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.privacy-list li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

/* Code Block */
.code-block {
  margin: 1rem 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
}

.code-block pre {
  padding: 1.25rem 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--accent2);
  white-space: pre;
}

.privacy-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .landing-main {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
  .landing-visual { display: none; }
  .site-header { padding: 1rem 1.5rem; }
}

@media (max-width: 480px) {
  .site-nav { display: none; }
  .question-card { padding: 1.75rem 1.25rem; }
  .q-text { font-size: 1.2rem; }
}
