/* Custom styles specific to AI Developer Handbook custom landing page */
:root {
  --bg-dark: #050505;
  --surface-card: #0D0D0D;
  --border-color: #222222;
  --text-white: #FFFFFF;
  --text-muted: #A1A1A1;
  --brand-red: #E50914;
  --brand-red-hover: #FF1E2D;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.top-bar {
  background-color: #0A0A0A;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-red {
  background-color: var(--brand-red);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.back-link {
  color: #FFF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--brand-red);
}

/* Hero section */
.hero-section {
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 80% 20%, rgba(229, 9, 20, 0.06), transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #121212;
  border: 1px solid #282828;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #BBB;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.brand-tag .dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-red);
  border-radius: 50%;
}

.hero-title {
  font-family: 'Manrope', sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--brand-red);
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 580px;
}

/* CTA Box */
.cta-box {
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  max-width: 480px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.current-price {
  font-family: 'Manrope', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #FFF;
}

.original-price {
  font-size: 16px;
  color: #666;
  text-decoration: line-through;
}

.discount-pill {
  background-color: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #FF4D4D;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.btn-buy {
  display: block;
  width: 100%;
  background-color: var(--brand-red);
  color: #FFF;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}

.btn-buy:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-1px);
}

.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 11px;
  color: #888;
}

/* 3D Visual Book Card */
.book-card-3d {
  background: linear-gradient(135deg, #1A1A1A 0%, #0A0A0A 100%);
  border: 1px solid #333;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(229, 9, 20, 0.15);
  position: relative;
  overflow: hidden;
}

.book-card-inner {
  border: 1px solid #282828;
  border-radius: 12px;
  padding: 30px 24px;
  background: #090909;
}

.book-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.edition-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #AAA;
  background: #1C1C1C;
  padding: 3px 8px;
  border-radius: 4px;
}

.lang-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
  background: #FFF;
  padding: 3px 8px;
  border-radius: 4px;
}

.book-logo {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-red);
  margin-bottom: 12px;
}

.book-main-title {
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.book-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.5;
}

.book-meta {
  font-size: 11px;
  color: #777;
  border-top: 1px solid #222;
  padding-top: 14px;
}

/* Curriculum Grid */
.curriculum-section {
  padding: 80px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-red);
  margin-bottom: 8px;
}

.section-heading h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: #383838;
}

.card-icon {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-red);
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Bottom CTA */
.bottom-cta {
  padding: 0 0 80px;
}

.bottom-cta-box {
  background: linear-gradient(180deg, #111111 0%, #080808 100%);
  border: 1px solid #282828;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.bottom-cta-box h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.bottom-cta-box p {
  font-size: 14px;
  color: var(--text-muted);
}

.action-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.price-callout {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.price-callout .strike {
  font-size: 14px;
  color: #666;
  text-decoration: line-through;
  margin-left: 6px;
}

/* Author Section */
.author-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  background: #080808;
}

.author-card {
  background: #0F0F0F;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.author-avatar-wrap {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 16px;
  overflow: hidden;
  background: #141414;
  border: 2px solid #2E2E2E;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.author-info {
  flex: 1;
}

.author-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
  background: rgba(229, 9, 20, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.author-name {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 4px;
}

.author-role {
  font-size: 13px;
  font-weight: 600;
  color: #AAA;
  margin-bottom: 12px;
}

.author-bio {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  max-width: 650px;
}

@media (max-width: 768px) {
  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .author-avatar-wrap {
    margin: 0 auto;
  }
  .author-bio {
    margin: 0 auto;
  }
}

/* Footer */
.page-footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.page-footer a {
  color: #999;
  text-decoration: none;
}

.page-footer a:hover {
  color: #FFF;
}
