/* ════════════════════════════════════════════════════════════════════════
   TrustCode Landing Page — Style Sheet
   Palette: Midnight navy · Sacred teal · Warm gold · Soft cream
   ════════════════════════════════════════════════════════════════════════ */

/* ── Two-column hero layout ─────────────────────────────────────────── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ── Book cover column ───────────────────────────────────────────────── */
.hero-book-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeLeft 0.9s ease both;
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.book-cover-wrap {
  position: relative;
  display: inline-block;
}

.book-cover-img {
  width: 100%;
  max-width: 340px;
  border-radius: 8px;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.3),
    8px 12px 40px rgba(0,0,0,0.5),
    0 0 60px rgba(201,168,76,0.25);
  transform: perspective(800px) rotateY(-8deg) rotateX(2deg);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  display: block;
}

.book-cover-wrap:hover .book-cover-img {
  transform: perspective(800px) rotateY(-3deg) rotateX(1deg) scale(1.03);
  box-shadow:
    0 8px 16px rgba(0,0,0,0.35),
    14px 20px 60px rgba(0,0,0,0.55),
    0 0 80px rgba(201,168,76,0.35);
}

/* "FREE Download" badge */
.book-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #d4a017 60%, var(--gold-light) 100%);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201,168,76,0.5), 0 0 0 3px rgba(201,168,76,0.2);
  animation: pulse-badge 2.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 4px 20px rgba(201,168,76,0.5), 0 0 0 3px rgba(201,168,76,0.2); }
  50%       { box-shadow: 0 4px 28px rgba(201,168,76,0.7), 0 0 0 6px rgba(201,168,76,0.15); }
}

.book-badge-icon { font-size: 1rem; line-height: 1; }
.book-badge-text {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}

/* Book caption below cover */
.book-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(245,240,232,0.72);
  line-height: 1.5;
  max-width: 300px;
}

.book-caption em {
  color: var(--gold-light);
  font-style: italic;
  font-size: 0.78rem;
}

/* Adjust hero-content column when inside two-col layout */
.hero-inner .hero-content {
  animation: fadeRight 0.9s ease 0.1s both;
  max-width: 100%;
  padding: 0;
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Keep ornament centered within content col */
.hero-inner .ornament { justify-content: flex-start; }

/* Adjust subtitle width */
.hero-inner .hero-subtitle { max-width: 100%; }

/* ── Responsive: stack on mobile ─────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-book-col { order: -1; }
  .book-cover-img { max-width: 240px; transform: none; }
  .book-cover-wrap:hover .book-cover-img { transform: scale(1.02); }
  .hero-inner .ornament { justify-content: center; }
  .hero-inner .hero-subtitle { margin: 0 auto 36px; }
}


@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ───────────────────────────────────────────── */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #142235;
  --teal:       #1a6e6e;
  --teal-light: #2a9d8f;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --cream:      #f5f0e8;
  --cream-soft: #faf7f2;
  --white:      #ffffff;
  --text-dark:  #1a1a2e;
  --text-mid:   #4a4a6a;
  --text-light: #8a8aaa;

  --shadow-gold: 0 0 40px rgba(201,168,76,0.25);
  --shadow-card: 0 20px 60px rgba(13,27,42,0.15);
  --radius-lg:   16px;
  --radius-xl:   24px;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--cream-soft);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Hero Section ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  overflow: hidden;
  background: var(--navy);
}


.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,27,42,0.30) 0%,
    rgba(13,27,42,0.55) 60%,
    rgba(13,27,42,0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}


/* Gold ornamental line */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.ornament-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament-line.right {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold);
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 300;
  color: rgba(245,240,232,0.88);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

/* ── Opt-in Form Card ────────────────────────────────────────────────── */
.form-card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-xl);
  padding: 40px 40px 36px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-gold), 0 30px 80px rgba(0,0,0,0.35);
  animation: fadeUp 1.1s ease 0.2s both;
}

.form-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.form-card .form-lead {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.72);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(201,168,76,0.30);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-group input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.13);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}

.btn-submit {
  width: 100%;
  padding: 16px 24px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, #d4a017 50%, var(--gold-light) 100%);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,168,76,0.45);
}

.btn-submit:hover::before { opacity: 1; }
.btn-submit:active { transform: translateY(0); }

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-icon { margin-right: 8px; }

.form-privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-top: 14px;
}

/* Error / Success banners */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}

.alert.visible { display: block; }

.alert-error {
  background: rgba(220,53,69,0.18);
  border: 1px solid rgba(220,53,69,0.4);
  color: #ff9999;
}

.alert-success {
  background: rgba(42,157,143,0.18);
  border: 1px solid rgba(42,157,143,0.4);
  color: #7fffd4;
}

/* ── What's Inside Section ───────────────────────────────────────────── */
.inside-section {
  background: var(--cream-soft);
  padding: 90px 24px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(26,110,110,0.1);
  border: 1px solid rgba(26,110,110,0.2);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title em {
  font-style: italic;
  color: var(--teal);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal-light));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(201,168,76,0.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #d4a017);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── About the Author ────────────────────────────────────────────────── */
.author-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 90px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.author-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%);
}

.author-section .section-title { color: var(--white); }

.author-section .section-subtitle { color: rgba(255,255,255,0.65); }

.author-quote {
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 32px 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  text-align: left;
}

.author-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(245,240,232,0.9);
  line-height: 1.7;
  margin-bottom: 16px;
}

.author-quote cite {
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

/* ── Second CTA Section ──────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #f5f0e8 0%, #ede4d0 100%);
  padding: 90px 24px;
  text-align: center;
}

.cta-section .section-title { color: var(--navy); }
.cta-section .section-subtitle { color: var(--text-mid); }

.cta-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.cta-form-wrapper .form-group label { color: var(--navy); }

.cta-form-wrapper .form-group input {
  border-color: rgba(0,0,0,0.15);
  background: var(--white);
  color: var(--text-dark);
}

.cta-form-wrapper .form-group input::placeholder { color: rgba(0,0,0,0.35); }

.cta-form-wrapper .form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}

.cta-form-wrapper .form-privacy { color: var(--text-light); }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.12);
}

footer p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

footer a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--white); }

/* ── Scroll-in animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 50px 20px 70px; }
  .form-card { padding: 30px 24px; }
  .inside-section, .author-section, .cta-section { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .author-quote { padding: 24px 22px; }
}
