:root{
  --bg:#0a0e12; /* near-black with cold blue tint */
  --card:#13171d; /* darker card with blue undertone */
  --text:#e8e6e3; /* cooler off-white */
  --muted:#8a8d92; /* desaturated gray */
  --brand:#c9a961; /* muted gold */
  --accent:#1a2b3d; /* dark blue-gray accent */
  --danger:#b8860b; /* darker gold for threats */
}

/* Light theme removed: site is always dark */

*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
}
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height:1.6;
  font-size:17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before{
  content:'';
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background:radial-gradient(circle at 50% 20%, rgba(25,35,50,0.4) 0%, transparent 60%),
             linear-gradient(180deg, rgba(10,14,18,0.95) 0%, rgba(10,14,18,1) 100%);
  pointer-events:none;
  z-index:-1;
}

body::after{
  content:'';
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  opacity:0.4;
  pointer-events:none;
  z-index:-1;
}

.container{
  max-width:800px;
  margin:0 auto;
  padding:clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

@media (min-width: 1024px){
  .container{ max-width:1100px; }
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:linear-gradient(to bottom, rgba(10,22,40,0.9), rgba(10,22,40,0.6));
  backdrop-filter: blur(8px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.brand{
  color:var(--text);
  text-decoration:none;
  font-weight:800;
  letter-spacing:-0.02em;
}
.menu-toggle{
  background:transparent;
  border:1px solid rgba(255,255,255,0.15);
  border-radius:8px;
  padding:0.5rem;
  display:flex;
  flex-direction:column;
  gap:4px;
  cursor:pointer;
}
.menu-toggle .bar{
  width:22px; height:2px; background:var(--text); display:block;
}
.site-nav{
  position:fixed;
  inset:64px 0 auto 0;
  transform:translateY(-10px);
  opacity:0;
  visibility:hidden;
  transition:all 0.25s ease;
  background:var(--bg);
  border-bottom:1px solid rgba(255,255,255,0.08);
  padding:1rem clamp(1rem, 4vw, 2rem);
}
.site-nav.open{ transform:none; opacity:1; visibility:visible; }
.site-nav a{
  display:inline-block;
  color:var(--text);
  text-decoration:none;
  padding:0.5rem 0.75rem;
  margin-right:0.25rem;
  border-radius:6px;
}
.site-nav a:hover{ background:rgba(255,255,255,0.06); }

@media (min-width: 800px){
  .menu-toggle{ display:none; }
  .site-nav{ position:static; inset:auto; opacity:1; visibility:visible; transform:none; border:0; padding:0; }
}

.theme-toggle{
  background:transparent;
  border:1px solid rgba(255,255,255,0.15);
  color:var(--text);
  border-radius:999px;
  padding:0.35rem 0.5rem;
  display:flex; align-items:center; gap:6px;
  cursor:pointer;
}
.theme-toggle{ display:none; }

.header-divider{ height:1px; background:rgba(255,255,255,0.08); }

/* Hero Section */
.hero-simple{
  text-align:center;
  padding:clamp(3rem, 8vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
}

@media (min-width: 960px){
  .hero-simple{
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    column-gap:clamp(1.5rem, 3vw, 3rem);
    row-gap:0;
    align-items:start;
    text-align:left;
    padding:clamp(3.5rem, 6vw, 6rem) 0 clamp(2.5rem, 5vw, 5rem);
  }
  .hero-simple h1{
    grid-column:1 / -1;
    text-align:center;
    margin-bottom:clamp(1.25rem, 2.5vw, 2rem);
  }
  .hero-simple .hero-subtitle{
    grid-column:1;
    grid-row:2;
    margin:0 0 0.75rem 0;
    max-width:56ch;
    font-size:clamp(1.05rem, 2vw, 1.2rem);
  }
  .hero-simple .hero-tagline{
    grid-column:1;
    grid-row:3;
    margin:0 0 clamp(1.75rem, 3vw, 2.5rem) 0;
    text-align:left;
  }
  .hero-simple .hero-about{
    grid-column:1;
    grid-row:4;
    margin-top:0;
    max-width:60ch;
  }
  .hero-simple .book-image{
    grid-column:2;
    grid-row:2 / 5;
    max-width:min(440px, 40vw);
  }
}

/* Hero About block appears only on desktop to fill left column */
.hero-about{ display:none; }
@media (min-width: 960px){
  .hero-about{
    display:block;
    color:var(--muted);
    padding:clamp(1.25rem, 2.5vw, 2rem);
    background:rgba(19,23,29,0.6);
    border-left:3px solid rgba(201,169,97,0.3);
    border-radius:4px;
  }
  .hero-about h2{
    font-size:clamp(1.5rem, 3vw, 2rem);
    margin:0 0 1.5rem;
    font-weight:700;
    letter-spacing:-0.01em;
    color:var(--text);
  }
  .hero-about p{
    line-height:1.8;
    margin:0;
    font-size:clamp(0.95rem, 1.8vw, 1.05rem);
  }
}
/* Restored Book Image */
.book-image{
  max-width:min(400px, 90vw);
  width:100%;
  height:auto;
  margin:0 auto;
  display:block;
  border-radius:8px;
  box-shadow:0 12px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,169,97,0.15);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
  filter:saturate(0.9) contrast(1.05);
}

.book-image:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,169,97,0.25);
}

.hero-simple h1{
  font-size:clamp(2.5rem, 7vw, 4.5rem);
  margin:0 0 clamp(1.5rem, 3vw, 2rem);
  font-weight:800;
  letter-spacing:0.12em;
  text-transform:uppercase;
  line-height:1.1;
  background:linear-gradient(180deg, #d4c5a0 0%, #b8a77d 40%, #8a7a5c 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 2px 8px rgba(0,0,0,0.6);
  filter:drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}

.hero-subtitle{
  font-size:clamp(0.95rem, 2.5vw, 1.1rem);
  color:var(--muted);
  margin:0 auto 0.75rem;
  max-width:600px;
  line-height:1.6;
  font-weight:400;
  letter-spacing:0.02em;
  opacity:0.85;
}

.hero-tagline{
  font-size:clamp(0.85rem, 2vw, 0.95rem);
  color:var(--brand);
  margin:0 auto 2rem;
  max-width:600px;
  font-weight:500;
  letter-spacing:0.08em;
  text-transform:uppercase;
  opacity:0.9;
  font-style:italic;
}


/* About Section */
.about-section{
  text-align:center;
  max-width:800px;
  margin:0 auto;
  padding:clamp(2.5rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem) 0;
  background:transparent;
}

.about-section h2{
  font-size:clamp(1.75rem, 5vw, 2.5rem);
  margin:0 0 1.5rem;
  font-weight:700;
  letter-spacing:-0.02em;
}

.about-section p{
  color:var(--text);
  opacity:0.9;
  max-width:780px;
  margin:0 auto;
  line-height:1.8;
  font-size:clamp(0.95rem, 2vw, 1.05rem);
}

/* Hide separate About section on desktop since it's mirrored in hero */
@media (min-width: 960px){
  .about-section{ display:none; }
}

.cta-group{
  margin-top:1.5rem;
  display:flex; flex-wrap:wrap; gap:0.75rem; justify-content:center;
}

/* Contact Section */
.contact-section{
  margin-top:clamp(4rem, 10vw, 6rem);
  text-align:center;
}

.contact-section h2{
  font-size:clamp(1.75rem, 5vw, 2.5rem);
  margin:0 0 0.5rem;
  font-weight:700;
  letter-spacing:-0.02em;
}

.subtitle{
  color:var(--muted);
  font-size:clamp(1rem, 2.5vw, 1.15rem);
  margin-bottom:clamp(1.5rem, 4vw, 2.5rem);
}

/* Form Styles */
.contact-form{
  max-width:600px;
  margin:0 auto;
  text-align:left;
  background:var(--card);
  padding:clamp(1.5rem, 4vw, 2.5rem);
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.1);
  box-shadow:0 4px 20px rgba(0,0,0,0.2);
}

.field{
  margin-bottom:1.5rem;
}

.field label{
  display:block;
  margin-bottom:0.5rem;
  color:var(--muted);
  font-weight:500;
}

.field input,
.field textarea{
  width:100%;
  padding:0.875rem 1rem;
  border-radius:8px;
  border:2px solid rgba(255,255,255,0.12);
  background:rgba(14,34,50,0.8);
  color:var(--text);
  font-family:inherit;
  font-size:1rem;
  transition:all 0.3s ease;
}

.field input::placeholder,
.field textarea::placeholder{
  color:rgba(148,169,188,0.5);
}

.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--brand);
  background:rgba(14,34,50,1);
  box-shadow:0 0 0 4px rgba(79,207,255,0.1);
}

.field textarea{
  resize:vertical;
  min-height:120px;
}

.required{
  color:#ffa;
}

.btn{
  background:var(--brand);
  color:#001219;
  font-weight:700;
  padding:0.875rem 2rem;
  border-radius:8px;
  border:0;
  cursor:pointer;
  font-size:1rem;
  transition:all 0.3s ease;
  display:inline-block;
  width:100%;
}

.btn-primary{ background:var(--brand); color:#001219; }
.btn-outline{ background:transparent; color:var(--text); border:1.5px solid rgba(255,255,255,0.2); }
.btn-outline:hover{ background:rgba(255,255,255,0.06); }

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(79,207,255,0.3);
}

.btn:active{
  transform:translateY(0);
}

@media (min-width: 480px){
  .btn{
    width:auto;
    min-width:150px;
  }
}

/* Newsletter Section */
.newsletter-section{
  text-align:center;
  margin-top:clamp(2.5rem, 6vw, 4rem);
  padding:clamp(1.5rem, 4vw, 2rem) 0;
  color:var(--muted);
}

.newsletter-section p{
  font-size:clamp(0.95rem, 2.5vw, 1.05rem);
  max-width:500px;
  margin:0 auto;
}

.newsletter-form{ max-width:560px; margin:0.75rem auto 0; }
.newsletter-fields{ display:flex; gap:0.5rem; }
.newsletter-fields input{ flex:1; }

@media (max-width: 480px){
  .newsletter-fields{ flex-direction:column; }
}

.muted{ color:var(--muted); display:block; margin-top:0.5rem; }

/* Features/cards */
.features-section{ margin-top:clamp(2.5rem, 6vw, 4rem); text-align:center; }
.cards{
  margin-top:1rem;
  display:grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap:1rem;
}
@media (min-width: 640px){
  .cards{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card{
  background:var(--card);
  padding:1.25rem;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.1);
  text-align:left;
  box-shadow:0 4px 20px rgba(0,0,0,0.2);
}
.card-icon{ font-size:1.5rem; }
.card h3{ margin:0.5rem 0 0.25rem; }
.card p{ margin:0; color:var(--muted); }

/* Utilities */
.hidden{
  display:none;
}

/* Footer */
.footer{
  background:rgba(21,40,63,0.5);
  border-top:1px solid rgba(255,255,255,0.1);
  margin-top:clamp(3rem, 8vw, 5rem);
  padding:clamp(2rem, 4vw, 3rem) 0;
}

.footer-content{
  max-width:800px;
  margin:0 auto;
  padding:0 clamp(1rem, 4vw, 2rem);
  text-align:center;
  color:var(--muted);
  font-size:0.9rem;
}

.footer-content p{
  margin:0 0 0.75rem;
}

.footer-links{
  display:flex;
  gap:1.5rem;
  justify-content:center;
  flex-wrap:wrap;
}

.footer-links a{
  color:var(--muted);
  text-decoration:none;
  transition:color 0.3s ease;
}

.footer-links a:hover{
  color:var(--brand);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior:auto;
  }
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:2px;
}
