/* ═══════════════════════════════════════════════════
   John Development Studio — style.css
   ═══════════════════════════════════════════════════ */

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

:root {
  --bg-page:        #0A0F1E;
  --bg-hero:        #0D1B3E;
  --bg-card:        #111827;
  --bg-card-hover:  #141f30;
  --bg-step:        rgba(255, 255, 255, 0.04);
  --bg-banner:      #0f1f3d;

  --text-primary:   #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted:     #64748B;
  --text-pkg:       #1E3A5F;

  --border-card:    rgba(255, 255, 255, 0.07);
  --border-card-hv: rgba(99, 179, 237, 0.28);
  --border-subtle:  rgba(99, 179, 237, 0.12);
  --border-step:    rgba(255, 255, 255, 0.07);

  --blue:           #60A5FA;
  --blue-btn-bg:    #1A56DB;
  --blue-btn-hv:    #2563EB;

  --green:          #34D399;
  --amber:          #FBBF24;
  --purple:         #A78BFA;

  --radius-card:    16px;
  --radius-btn:     10px;
  --radius-badge:   20px;
  --radius-status:  20px;
  --radius-step:    12px;

  --shadow-logo:    0 8px 32px rgba(59, 130, 246, 0.3);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── CONTAINER ────────────────────────────────────── */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0D1B3E 0%, #0A0F1E 60%, #0D1A35 100%);
  padding: 72px 32px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero__glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(66, 153, 225, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1A56DB, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 38px;
  box-shadow: var(--shadow-logo);
}

.hero__title {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero__tagline {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero__badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero__cta {
  margin-top: 30px;
}

/* ── BADGE (hero) ─────────────────────────────────── */
.badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-badge);
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.badge i { color: var(--blue); font-size: 14px; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--blue-btn-bg);
  color: #fff;
}
.btn--primary:hover { background: var(--blue-btn-hv); }

.btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn--play {
  background: rgba(26, 86, 219, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
}
.btn--play:hover { background: rgba(26, 86, 219, 0.3); }

.btn--test {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--amber);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
}
.btn--test:hover { background: rgba(245, 158, 11, 0.25); }

/* ── SECTIONS ─────────────────────────────────────── */
.section {
  padding: 52px 0 28px;
}
.section--legend {
  padding-bottom: 48px;
}

.section__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ── APP CARD ─────────────────────────────────────── */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.app-card:hover {
  border-color: var(--border-card-hv);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.app-card__icon-wrap {
  flex-shrink: 0;
}

.app-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-card__icon-ph {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.app-card__info {
  flex: 1;
  min-width: 0;
}

.app-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.app-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.app-card__pkg {
  font-size: 11px;
  color: var(--text-pkg);
  font-family: var(--font-mono);
  margin-top: 8px;
}

.app-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  flex-shrink: 0;
  min-width: 148px;
}

.coming-soon {
  font-size: 11px;
  color: #2D3748;
  font-style: italic;
}

/* ── STATUS BADGES ────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-status);
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.status i { font-size: 11px; }

.status--production {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.status--closed {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.status--dev {
  background: rgba(99, 179, 237, 0.1);
  color: var(--blue);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

/* ── LEGEND ───────────────────────────────────────── */
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── TESTING BANNER ───────────────────────────────── */
.testing-banner {
  background: var(--bg-banner);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 18px;
  padding: 28px 32px;
}

.testing-banner__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
}
.testing-banner__header i { font-size: 20px; }

.testing-banner__sub {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── STEPS GRID ───────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.step-card {
  background: var(--bg-step);
  border: 1px solid var(--border-step);
  border-radius: var(--radius-step);
  padding: 16px 18px;
}

.step-card__num {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.step-card__text {
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.6;
}
.step-card__text strong { color: #E2E8F0; }

.step-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  word-break: break-all;
}
.step-link:hover { text-decoration: underline; }
.step-link i { font-size: 13px; flex-shrink: 0; }

/* ── TESTING NOTE ─────────────────────────────────── */
.testing-note {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.14);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--amber);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.6;
}
.testing-note i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.testing-note strong { color: #FDE68A; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   EMAIL MODAL & NOTIFICATIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── EMAIL MODAL BACKDROP ─────────────────────────── */
.email-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── EMAIL MODAL ──────────────────────────────────── */
.email-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  animation: slideUp 0.3s ease cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.email-modal-content {
  background: linear-gradient(135deg, #111827 0%, #0f1f3d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 32px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.email-modal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.email-modal-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.email-input-group {
  margin-bottom: 18px;
}

.email-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font);
  transition: border-color 0.2s, background 0.2s;
}

.email-input:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(96, 165, 250, 0.08);
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-modal-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.email-modal-actions .btn {
  flex: 1;
  justify-content: center;
}

.email-modal-actions .email-submit {
  background: var(--blue-btn-bg);
  color: #fff;
}

.email-modal-actions .email-submit:hover {
  background: var(--blue-btn-hv);
}

.email-modal-actions .email-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.email-modal-actions .email-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.email-modal-info {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.email-modal-info i {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--amber);
}

/* ── NOTIFICATION TOASTS ──────────────────────────── */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  border-radius: 12px;
  padding: 14px 16px;
  z-index: 998;
  opacity: 0;
  transform: translateX(450px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notification-icon {
  font-size: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.notification-icon i {
  font-size: 18px;
}

.notification-text {
  flex: 1;
}

.notification-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.notification-message {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  opacity: 1;
}

/* ── NOTIFICATION TYPES ───────────────────────────– */
.notification--success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green);
}

.notification--error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.1));
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #F87171;
}

.notification--info {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(147, 197, 253, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--blue);
}

.notification--loading {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(196, 181, 253, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--purple);
}

.notification--loading .notification-icon i {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── RESPONSIVE NOTIFICATIONS ─────────────────────── */
@media (max-width: 640px) {
  .notification {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    transform: translateY(200px);
  }

  .notification.show {
    transform: translateY(0);
  }

  .email-modal-content {
    width: 85%;
    padding: 24px;
  }
}

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 44px 24px;
  text-align: center;
  margin-top: 12px;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.footer__social a {
  color: #475569;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--blue); }
.footer__social i { font-size: 16px; }

.footer__copy {
  font-size: 13px;
  color: #1E293B;
}

.footer__stack {
  font-size: 12px;
  color: #152030;
  margin-top: 5px;
}

/* ── SCROLL ANIMATION ─────────────────────────────── */
.app-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease,
              border-color 0.2s, background 0.2s;
}
.app-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.app-card:hover.visible {
  transform: translateY(-2px);
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 52px 20px 40px; }
  .hero__title { font-size: 26px; }
  .hero__tagline { font-size: 15px; }
  .hero__logo { width: 72px; height: 72px; font-size: 32px; }

  .app-card {
    flex-wrap: wrap;
    gap: 14px;
  }
  .app-card__right {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    min-width: unset;
    justify-content: flex-start;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .testing-banner {
    padding: 20px 18px;
  }

  .legend {
    flex-direction: column;
    align-items: flex-start;
  }

  .section__title { font-size: 11px; }
}

@media (max-width: 420px) {
  .hero__badges { gap: 8px; }
  .badge { font-size: 12px; padding: 5px 12px; }
}

/* ── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: #1E3A5F; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2563EB; }
