/* ============================================================
   developers.css — /developers, /developers/request-key,
   /developers/verify, /developers/checkout/success, /api/v1/docs
   Premium Liquid-Glass + Apple-style cubic-bezier transitions.
   ============================================================ */

:root {
  --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --apple-ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------- HERO ------- */
.dev-hero {
  position: relative;
  padding: 11rem 0 4rem;
  background: linear-gradient(135deg,
    rgba(94, 191, 191, 0.08) 0%,
    rgba(38, 5, 243, 0.04) 100%);
  border-bottom: 1px solid rgba(94, 191, 191, 0.15);
  overflow: hidden;
}

.dev-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%,
    rgba(94, 191, 191, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.dev-hero .container {
  position: relative;
  z-index: 1;
}

.dev-hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(94, 191, 191, 0.12);
  color: #5EBFBF;
  border: 1px solid rgba(94, 191, 191, 0.3);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.dev-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  color: #F2F2F2;
  letter-spacing: -0.01em;
  max-width: 820px;
}

.dev-hero p {
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(242, 242, 242, 0.78);
  margin: 0 0 2rem;
  max-width: 720px;
}

.dev-hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ------- SHARED CARD ADDITIONS (capability + pricing)
   Inherits liquid-glass background from Card.css via .glass-card.
   Only adds Apple-style hover + identifying tweaks. ------- */
.dev-card {
  padding: 1.75rem !important;
  margin-bottom: 0 !important;
  color: #F2F2F2;
  transition: transform 0.55s var(--apple-ease),
              border-color 0.55s var(--apple-ease),
              box-shadow 0.55s var(--apple-ease) !important;
}

.dev-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 191, 191, 0.32) !important;
}

.dev-card.is-highlighted {
  border-color: rgba(94, 191, 191, 0.4) !important;
  background: linear-gradient(135deg,
    rgba(94, 191, 191, 0.14) 0%,
    rgba(94, 191, 191, 0.08) 50%,
    rgba(38, 5, 243, 0.06) 100%) !important;
}

.dev-card-header {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: rgba(94, 191, 191, 0.16);
  color: #5EBFBF;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.dev-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  color: #F2F2F2;
  word-wrap: break-word;
}

.dev-card p {
  margin: 0 0 1rem;
  color: rgba(242, 242, 242, 0.78);
  line-height: 1.55;
  font-size: 0.96rem;
}

.dev-card-link {
  color: #5EBFBF;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s var(--apple-ease-fast);
}

.dev-card-link:hover {
  color: #A9D9D9;
}

/* ------- CAPABILITY GRID ------- */
.dev-capabilities {
  padding: 4rem 0 5rem;
}

.dev-capability-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ------- PRICING ------- */
.dev-pricing {
  padding: 4rem 0;
  background: rgba(94, 191, 191, 0.025);
  border-top: 1px solid rgba(94, 191, 191, 0.08);
  border-bottom: 1px solid rgba(94, 191, 191, 0.08);
}

.dev-pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 2rem;
}

.dev-price-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.7);
  margin-bottom: 0.5rem;
}

.dev-card.is-highlighted .dev-price-tag {
  color: #5EBFBF;
}

.dev-price-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: #F2F2F2;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.dev-price-amount small {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(242, 242, 242, 0.7);
}

.dev-price-meta {
  font-size: 0.85rem;
  color: rgba(242, 242, 242, 0.65);
  margin-bottom: 1.25rem;
}

.dev-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: rgba(242, 242, 242, 0.85);
}

.dev-price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.dev-price-features i {
  color: #5EBFBF;
  flex-shrink: 0;
  margin-top: 0.18rem;
}

.dev-card .btn,
.dev-card .btn-secondary,
.dev-card .btn-primary {
  margin-top: auto;
}

.dev-pricing-grid > .dev-card {
  display: flex;
  flex-direction: column;
}

/* ------- CALL-TO-ACTION SECTION ------- */
.dev-cta {
  padding: 4rem 0 5rem;
}

.dev-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.dev-cta h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #F2F2F2;
}

.dev-cta p {
  margin: 0 0 1.75rem;
  color: rgba(242, 242, 242, 0.78);
  line-height: 1.6;
}

.dev-cta-buttons {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ------- FORM (request-key + checkout modal) ------- */
.dev-form {
  display: grid;
  gap: 1.15rem;
  padding: 2rem;
  border-radius: 18px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(94, 191, 191, 0.2);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.dev-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: rgba(242, 242, 242, 0.92);
}

.dev-form .req {
  color: #5EBFBF;
}

.dev-form input[type="text"],
.dev-form input[type="email"],
.dev-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F2F2F2;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.4s var(--apple-ease-fast),
              box-shadow 0.4s var(--apple-ease-fast);
}

.dev-form input:focus,
.dev-form textarea:focus {
  outline: none;
  border-color: rgba(94, 191, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(94, 191, 191, 0.15);
}

.dev-form small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(242, 242, 242, 0.6);
}

.dev-form .checkbox-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
  color: rgba(242, 242, 242, 0.85);
}

.dev-form .checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #5EBFBF;
}

.dev-form a {
  color: #5EBFBF;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dev-form .honeypot {
  position: absolute;
  left: -10000px;
  top: -10000px;
}

.dev-form-message {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.dev-form-message.is-success {
  display: block;
  background: rgba(94, 191, 191, 0.12);
  color: #5EBFBF;
  border: 1px solid rgba(94, 191, 191, 0.32);
}

.dev-form-message.is-error {
  display: block;
  background: rgba(220, 38, 38, 0.12);
  color: #FCA5A5;
  border: 1px solid rgba(220, 38, 38, 0.32);
}

/* ------- VERIFY KEY DISPLAY ------- */
.dev-key-box {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(94, 191, 191, 0.42);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.3),
    0 0 32px rgba(94, 191, 191, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.dev-key-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5EBFBF;
  margin-bottom: 0.65rem;
}

.dev-key-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.dev-key-value {
  flex: 1;
  min-width: 280px;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #0A0A0A;
  border: 1px solid rgba(94, 191, 191, 0.22);
  color: #5EBFBF;
  font-family: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.94rem;
  word-break: break-all;
}

.dev-code-block {
  padding: 1.1rem;
  border-radius: 12px;
  background: #0A0A0A;
  border: 1px solid rgba(94, 191, 191, 0.16);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 1rem 0;
}

.dev-code-block code {
  color: #D4D4D8;
  font-family: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
}

/* ------- MODAL ------- */
.dev-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: dev-modal-fade 0.4s var(--apple-ease) forwards;
}

.dev-modal.is-open { display: flex; }

@keyframes dev-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.dev-modal-card {
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #1A1A1A 0%, #1F1F22 100%);
  border: 1px solid rgba(94, 191, 191, 0.28);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  animation: dev-modal-in 0.55s var(--apple-ease) forwards;
}

@keyframes dev-modal-in {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

.dev-modal-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: #F2F2F2;
}

.dev-modal-card .modal-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: rgba(242, 242, 242, 0.75);
  line-height: 1.55;
}

.dev-modal-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.dev-modal-actions .btn:last-child {
  flex: 1;
}

/* ------- BACK LINK ------- */
.dev-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  color: rgba(242, 242, 242, 0.65);
  text-decoration: none;
  transition: color 0.3s var(--apple-ease-fast);
}

.dev-back-link:hover {
  color: #5EBFBF;
}

/* ------- API DOCS (Swagger-UI page) ------- */
.api-docs-hero {
  position: relative;
  padding: 8rem 0 2.5rem;
  background: linear-gradient(135deg,
    rgba(94, 191, 191, 0.08) 0%,
    rgba(38, 5, 243, 0.04) 100%);
  border-bottom: 1px solid rgba(94, 191, 191, 0.15);
}

.api-docs-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: #F2F2F2;
  letter-spacing: -0.01em;
}

.api-docs-hero p {
  margin: 0 0 0.85rem;
  color: rgba(242, 242, 242, 0.78);
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.api-docs-quick {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.api-docs-quick a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  background: rgba(94, 191, 191, 0.1);
  border: 1px solid rgba(94, 191, 191, 0.28);
  color: #5EBFBF;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.4s var(--apple-ease-fast),
              background 0.4s var(--apple-ease-fast);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.api-docs-quick a:hover {
  background: rgba(94, 191, 191, 0.2);
  transform: translateY(-1px);
}

#swagger-ui {
  background: #FFFFFF;
  min-height: 800px;
  padding: 1rem 0 4rem;
}

#swagger-ui .swagger-ui {
  font-family: 'InterDisplay', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#swagger-ui .swagger-ui .topbar { display: none; }
#swagger-ui .swagger-ui .info { margin: 1.85rem 0; }

/* ------- RESPONSIVE ------- */
@media (max-width: 768px) {
  .dev-hero { padding: 8.5rem 0 3rem; }
  .dev-hero h1 { font-size: 1.85rem; }
  .dev-hero p { font-size: 1rem; }
  .dev-card { padding: 1.4rem; }
  .dev-price-amount { font-size: 2rem; }
  .dev-form { padding: 1.5rem; }
  .api-docs-hero { padding: 7rem 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dev-card, .dev-card:hover,
  .dev-modal, .dev-modal-card,
  .api-docs-quick a, .dev-back-link,
  .dev-form input, .dev-form textarea {
    transition: none !important;
    animation: none !important;
  }
}
