/* Editorial pages: Info, Courses, Project detail, modals */

:root {
  --bg: #fafafa;
  --bg-canvas: #f0f0f0;
  --card-bg: #fff;
  --text: #111;
  --text-muted: #888;
  --text-soft: #555;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --accent: #5de6c8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.2);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-fast: 150ms;
  --duration-normal: 200ms;
}

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

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Floating nav (shared with world view) */
.nav-left {
  position: fixed; top: 20px; left: 20px; z-index: 100;
  display: flex; align-items: center; gap: 10px;
}
.nav-pill {
  background: #111; color: #fff;
  padding: 12px 24px; border-radius: 28px;
  font-size: 16px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: background var(--duration-fast) ease;
}
.nav-pill:hover { background: #222; }
.nav-pill .divider { width: 1px; height: 16px; background: rgba(255,255,255,0.2); }
.nav-pill svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Editorial layout container */
.editorial {
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 32px 120px;
}

.eyebrow {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); margin-bottom: 32px;
}

.heading-xl {
  font-size: 42px; font-weight: 500;
  line-height: 1.2; margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.body-text {
  font-size: 18px; line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 48px;
}

.section { margin-bottom: 48px; }

.section-title {
  font-size: 14px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 16px;
}

/* Pricing block */
.pricing-block {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}
.pricing-amount {
  font-size: 36px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.pricing-detail {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.6;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}
.service-item {
  font-size: 16px; color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* Pill links row */
.link-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}
.link-pill {
  background: #f0f0f0; color: var(--text-soft);
  padding: 10px 20px; border-radius: 24px;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  transition: background var(--duration-fast) ease;
}
.link-pill:hover { background: #e5e5e5; }

/* Subscribe card (info page) */
.subscribe-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-top: 64px;
}
.subscribe-icon { color: #ccc; font-size: 36px; margin-bottom: 20px; }
.subscribe-heading { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.subscribe-sub {
  font-size: 15px; color: var(--text-muted);
  margin-bottom: 24px; max-width: 320px;
  margin-left: auto; margin-right: auto;
}
.subscribe-input-row {
  display: flex; max-width: 360px; margin: 0 auto 12px;
  border: 2px solid var(--accent); border-radius: 28px;
  overflow: hidden; background: #fff;
}
.subscribe-input {
  flex: 1; border: none; outline: none;
  padding: 14px 20px; font-size: 15px;
  color: var(--text); background: transparent;
  font-family: inherit;
}
.subscribe-input::placeholder { color: #bbb; }
.subscribe-btn {
  display: block; width: 100%; max-width: 360px;
  margin: 0 auto; padding: 14px;
  background: #111; color: #fff;
  border: none; border-radius: 28px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background var(--duration-fast) ease, transform 100ms ease;
  font-family: inherit;
}
.subscribe-btn:hover { background: #222; }
.subscribe-btn:active { transform: scale(0.98); }
.subscribe-count {
  font-size: 13px; color: var(--text-muted); margin-top: 12px;
}

/* Buttons */
.btn-primary {
  display: inline-flex; height: 44px; align-items: center; gap: 8px;
  background: #000; color: #fff;
  padding: 0 22px; border-radius: 24px;
  font-size: 16px; font-weight: 500;
  border: none; cursor: pointer;
  transition: background var(--duration-fast) ease, transform 100ms ease;
}
.btn-primary:hover { background: rgba(0,0,0,0.88); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex; height: 44px; align-items: center; gap: 8px;
  background: #f0f0f0; color: #666;
  padding: 0 22px; border-radius: 24px;
  font-size: 16px; font-weight: 500;
  border: none; cursor: pointer;
  transition: background var(--duration-fast) ease, transform 100ms ease;
}
.btn-secondary:hover { background: #e5e5e5; }
.btn-secondary:active { transform: scale(0.98); }

/* Modal overlay (used by contact and Cal.com modals) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-overlay.with-video { background: transparent; }

.modal-video-bg {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #0a0a0a, #1a0a2e, #0a1a3e, #0a2a1e, #1a0a2e, #0a0a0a);
  background-size: 400% 400%;
  animation: bgShift 12s ease infinite;
}
.modal-video-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
}
.modal-video-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 480px;
  padding: 48px 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out);
}
.modal-overlay.active .modal {
  transform: scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: #f0f0f0; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: #999;
  transition: background var(--duration-fast) ease;
}
.modal-close:hover { background: #e5e5e5; }
.modal-icon { font-size: 32px; color: #ccc; margin-bottom: 24px; }
.modal-heading { font-size: 28px; font-weight: 600; margin-bottom: 8px; line-height: 1.2; }
.modal-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.5; }

/* Form inputs */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
  margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #eee;
  border-radius: 14px;
  font-size: 16px;
  color: var(--text);
  background: #fafafa;
  outline: none;
  transition: border-color var(--duration-normal) ease;
  font-family: inherit;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
.form-input::placeholder, .form-textarea::placeholder { color: #bbb; }
.form-textarea { min-height: 100px; resize: vertical; }
.form-submit {
  width: 100%;
  padding: 16px;
  background: #111; color: #fff;
  border: none; border-radius: 16px;
  font-size: 17px; font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--duration-fast) ease, transform 100ms ease;
  font-family: inherit;
}
.form-submit:hover { background: #222; }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.form-footer a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-success {
  text-align: center;
  padding: 20px;
  color: #2a9d6a;
  font-weight: 500;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .modal {
    transition: opacity var(--duration-normal) ease;
    transform: none;
  }
  .modal-video-bg { animation: none; }
}
