/* I AM Recode - WordPress Export Styles */
/* ============================================ */

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

/* CSS Variables */
:root {
  /* Deep immersive navy-black palette */
  --background: hsl(220, 30%, 6%);
  --background-subtle: hsl(220, 25%, 9%);
  --foreground: hsl(45, 30%, 90%);

  --card: hsl(220, 25%, 10%);
  --card-foreground: hsl(45, 30%, 90%);

  /* Warm gold accent */
  --gold: hsl(42, 60%, 55%);
  --gold-light: hsl(42, 50%, 70%);
  --gold-muted: hsl(42, 30%, 45%);

  --text-primary: hsl(45, 30%, 92%);
  --text-secondary: hsl(220, 15%, 72%);
  --text-muted: hsl(220, 12%, 55%);
  --text-gold: hsl(42, 60%, 65%);

  --border: hsl(220, 20%, 16%);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-padding: clamp(6rem, 14vw, 12rem);
  --content-max-width: 76rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.8;
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* Utility Classes */
.section-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .section-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .section-container {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding: 0 4rem;
  }
}

.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.text-gold {
  color: var(--text-gold);
}

.text-center {
  text-align: center;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

.items-center {
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-muted));
  color: hsl(220, 30%, 8%);
  box-shadow: 0 4px 20px -4px hsla(42, 60%, 55%, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -4px hsla(42, 60%, 55%, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--gold);
  border-color: hsla(42, 60%, 55%, 0.3);
}

/* Tags / Badges */
.tag {
  display: inline-block;
  font-size: 0.875rem;
  color: hsla(42, 60%, 65%, 0.8);
  border: 1px solid hsla(42, 60%, 55%, 0.2);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  background: hsla(42, 60%, 55%, 0.05);
}

/* Eyebrow text */
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-gold);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
  }
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--background), var(--background-subtle), var(--background));
}

.hero-geometry {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
}

.hero-geometry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, hsla(42, 60%, 55%, 0.08), hsla(42, 60%, 55%, 0.03), transparent);
  border-radius: 50%;
  filter: blur(48px);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 5rem 0;
  }
}

.hero-text {
  text-align: center;
  padding: 0 0.5rem;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
    padding: 0;
  }
}

.hero-title {
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    margin-bottom: 2rem;
  }
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: hsla(42, 50%, 70%, 0.8);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-quote {
    margin-bottom: 1.5rem;
  }
}

.hero-subheadline {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .hero-subheadline {
    margin: 0 0 2.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-book {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .hero-book {
    justify-content: flex-end;
    margin-top: 0;
  }
}

.book-wrapper {
  position: relative;
}

.book-glow {
  position: absolute;
  inset: -1.5rem;
  background: radial-gradient(circle, hsla(42, 60%, 55%, 0.25), hsla(42, 60%, 55%, 0.1), transparent);
  filter: blur(48px);
  transform: scale(1.1);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

.book-glow-inner {
  position: absolute;
  inset: -0.75rem;
  background: radial-gradient(circle, hsla(42, 60%, 55%, 0.15), transparent);
  filter: blur(32px);
  animation: glow-pulse 4s ease-in-out infinite alternate;
  animation-delay: 0.5s;
}

.hero-book img {
  position: relative;
  z-index: 10;
  width: 18rem;
  filter: drop-shadow(0 15px 40px hsla(42, 60%, 55%, 0.3));
  animation: float 6s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-book img {
    width: 20rem;
  }
}

@media (min-width: 1024px) {
  .hero-book img {
    width: 24rem;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, hsla(42, 60%, 55%, 0.4), hsla(42, 60%, 55%, 0.2), transparent);
}

/* ============================================ */
/* WHAT WE DO SECTION */
/* ============================================ */
.what-we-do {
  background-color: var(--background-subtle);
  position: relative;
  overflow: hidden;
}

.what-we-do-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(220, 30%, 6%, 0.5), var(--background-subtle));
}

.what-we-do .section-container {
  position: relative;
  z-index: 10;
}

.patterns-visual {
  position: relative;
}

.patterns-visual-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, hsla(42, 60%, 55%, 0.15), transparent);
  filter: blur(48px);
  transform: scale(1.25);
}

.patterns-visual img {
  position: relative;
  z-index: 10;
  width: 20rem;
  border-radius: 0.5rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .patterns-visual img {
    width: 24rem;
  }
}

.feature-list {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--gold);
  flex-shrink: 0;
}

.feature-text {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ============================================ */
/* FEATURED PRODUCT SECTION */
/* ============================================ */
.featured-product {
  background-color: var(--background-subtle);
  position: relative;
  overflow: hidden;
}

.featured-product-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(42, 60%, 55%, 0.08), transparent);
  border-radius: 50%;
  filter: blur(48px);
  transform: translateY(-50%);
}

.book-showcase {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .book-showcase {
    justify-content: flex-end;
  }
}

.book-showcase-wrapper {
  position: relative;
}

.book-showcase-glow {
  position: absolute;
  inset: -2rem;
  background: radial-gradient(circle, hsla(42, 60%, 55%, 0.3), hsla(42, 60%, 55%, 0.15), transparent);
  filter: blur(48px);
  transform: scale(1.25);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

.book-showcase-glow-inner {
  position: absolute;
  inset: -1rem;
  background: radial-gradient(circle, hsla(42, 60%, 55%, 0.2), transparent);
  filter: blur(32px);
  animation: glow-pulse 4s ease-in-out infinite alternate;
  animation-delay: 0.5s;
}

.book-showcase-border {
  position: absolute;
  inset: -0.25rem;
  background: linear-gradient(to bottom, hsla(42, 60%, 55%, 0.4), hsla(42, 60%, 55%, 0.2), hsla(42, 60%, 55%, 0.4));
  border-radius: 0.5rem;
  filter: blur(2px);
  opacity: 0.6;
}

.book-showcase img {
  position: relative;
  z-index: 10;
  width: 18rem;
  border-radius: 0.125rem;
  box-shadow: 0 20px 60px -15px hsla(42, 60%, 55%, 0.4);
}

@media (min-width: 768px) {
  .book-showcase img {
    width: 20rem;
  }
}

@media (min-width: 1024px) {
  .book-showcase img {
    width: 26rem;
  }
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  color: hsla(42, 50%, 70%, 0.9);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefit-circle {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid hsla(42, 60%, 55%, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.benefit-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--gold);
}

.benefit-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ============================================ */
/* START HERE / QUIZ SECTION */
/* ============================================ */
.start-here {
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.start-here-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(42, 60%, 55%, 0.05), transparent);
  border-radius: 50%;
  filter: blur(48px);
}

.quiz-card {
  max-width: 64rem;
  margin: 0 auto;
  background: hsla(220, 25%, 10%, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid hsla(220, 20%, 16%, 0.5);
  box-shadow: 0 25px 50px -12px hsla(0, 0%, 0%, 0.2);
}

@media (min-width: 640px) {
  .quiz-card {
    padding: 2.5rem;
  }
}

@media (min-width: 768px) {
  .quiz-card {
    padding: 4rem;
  }
}

.quiz-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quiz-visual {
  display: flex;
  justify-content: center;
}

.quiz-visual-wrapper {
  position: relative;
}

.quiz-visual-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, hsla(42, 60%, 55%, 0.2), transparent);
  filter: blur(32px);
  transform: scale(1.25);
}

.quiz-visual img {
  position: relative;
  z-index: 10;
  width: 16rem;
  border-radius: 0.75rem;
}

@media (min-width: 768px) {
  .quiz-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
  }
  
  .quiz-visual img {
    width: 18rem;
  }
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.5rem 0;
}

/* ============================================ */
/* ABOUT CREATOR SECTION */
/* ============================================ */
.about-creator {
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.about-creator-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, hsla(42, 60%, 55%, 0.05), transparent);
  border-radius: 50%;
  filter: blur(48px);
  transform: translateY(50%);
}

.portrait-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .portrait-wrapper {
    justify-content: flex-start;
  }
}

.portrait-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to bottom right, hsla(42, 60%, 55%, 0.2), transparent, hsla(42, 60%, 55%, 0.1));
  border-radius: 1rem;
  filter: blur(20px);
}

.portrait-frame {
  position: relative;
  background: linear-gradient(to bottom right, hsla(42, 60%, 55%, 0.3), hsla(42, 60%, 55%, 0.1));
  padding: 0.25rem;
  border-radius: 0.75rem;
}

.portrait-frame img {
  width: 18rem;
  border-radius: 0.5rem;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px hsla(0, 0%, 0%, 0.5);
}

@media (min-width: 768px) {
  .portrait-frame img {
    width: 20rem;
  }
}

@media (min-width: 1024px) {
  .portrait-frame img {
    width: 24rem;
  }
}

.credentials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* ============================================ */
/* FUTURE SECTION */
/* ============================================ */
.future-section {
  background-color: var(--background-subtle);
  position: relative;
  overflow: hidden;
}

.future-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.1;
}

.future-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.future-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.section-divider {
  width: 4rem;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, hsla(42, 60%, 55%, 0.4), transparent);
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer {
  padding: 5rem 0;
  background-color: var(--background);
  border-top: 1px solid hsla(220, 20%, 16%, 0.2);
}

.footer-brand {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-brand-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-gold);
  letter-spacing: 0.05em;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-main {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-disclaimer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsla(220, 20%, 16%, 0.1);
}

.footer-disclaimer p {
  font-size: 0.75rem;
  color: hsla(220, 12%, 55%, 0.6);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================ */
/* RESPONSIVE ORDER HELPERS */
/* ============================================ */
.order-1 { order: 1; }
.order-2 { order: 2; }

@media (min-width: 1024px) {
  .lg-order-1 { order: 1; }
  .lg-order-2 { order: 2; }
}

/* ============================================ */
/* ANIMATION UTILITIES */
/* ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
}
