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

:root {
  --bg-primary: #060a12;
  --bg-secondary: #0b111c;
  --bg-card: #0e1726;
  --frost: #38bdf8;
  --frost-bright: #7dd3fc;
  --frost-deep: #0ea5e9;
  --ice: #a5f3fc;
  --text-primary: #e6f1ff;
  --text-secondary: #c2d4e8;
  --text-muted: #8aa0b8;
  --divider: #38bdf8;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  /* faint cryo-grid + glow texture */
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(56, 189, 248, 0.10) 0%, transparent 60%),
    linear-gradient(rgba(56, 189, 248, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  background-attachment: fixed;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(6, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

nav .logo img {
  height: 38px;
  width: 38px;
}

nav .logo span {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--frost-bright);
  letter-spacing: 5px;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
  color: var(--frost-bright);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 30px 80px;
}

.hero-inner {
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-cover {
  flex-shrink: 0;
  position: relative;
}

.hero-cover img {
  width: 380px;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(56, 189, 248, 0.25);
}

.hero-text {
  max-width: 550px;
}

.hero-text .series-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--frost-bright);
  margin-bottom: 18px;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
}

.hero-text .working-title {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(138, 160, 184, 0.4);
  border-radius: 3px;
  padding: 3px 9px;
  margin-bottom: 22px;
  vertical-align: middle;
}

.hero-text .subtitle {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-text .tagline {
  font-style: italic;
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 35px;
  line-height: 1.6;
}

.hero-text .buy-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 40px;
  background: var(--frost-deep);
  color: #04121f;
  text-decoration: none;
  border: 2px solid var(--frost-deep);
  border-radius: 3px;
  transition: all 0.3s;
}

.buy-btn:hover {
  background: transparent;
  color: var(--frost-bright);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.45);
}

/* Section */
section {
  padding: 100px 30px;
  position: relative;
}

section:nth-child(even) {
  background: rgba(11, 17, 28, 0.6);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.section-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--frost), transparent);
  margin: 0 auto 50px;
}

/* About the Book */
.synopsis p {
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--text-secondary);
}

.synopsis .genre-line {
  font-style: italic;
  color: var(--text-muted);
  margin-top: 30px;
  text-align: center;
}

.coming-soon-note {
  margin-top: 35px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--frost);
}

/* About the Author */
.author-bio p {
  margin-bottom: 18px;
  color: var(--text-secondary);
}

/* Series section */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.book-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.18);
  padding: 32px 18px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* techy corner brackets */
.book-card::before,
.book-card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--frost);
  border-style: solid;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.book-card::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.book-card::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.book-card.more-to-come {
  grid-column: 2;
}

.book-card:hover {
  transform: translateY(-5px);
  border-color: var(--frost);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.18);
}
.book-card:hover::before,
.book-card:hover::after { opacity: 1; }

.book-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.book-card .isbn {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0;
  font-family: monospace;
}

.book-card .status {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--frost-bright);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 14px;
}

/* Footer */
footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  padding: 60px 30px;
  text-align: center;
}

footer .footer-publisher-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

footer .footer-publisher-link:hover {
  opacity: 0.85;
}

footer .footer-publisher-link:hover .publisher-name {
  color: var(--frost-bright);
}

footer .footer-logo img {
  width: 58px;
  margin-bottom: 15px;
  opacity: 0.7;
}

footer .publisher-name {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--frost-bright);
  margin-bottom: 20px;
}

footer .footer-links {
  margin-bottom: 15px;
  font-size: 14px;
}

footer .footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}

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

footer .footer-links .divider {
  color: var(--text-muted);
  margin: 0 10px;
}

footer .copyright {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Legal pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 30px 80px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 10px;
}

.legal-page .effective {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 50px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--frost-bright);
  margin: 40px 0 15px;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.8;
}

.legal-page ul {
  margin-left: 25px;
  margin-bottom: 20px;
}

.legal-page a {
  color: var(--frost-bright);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page .back-link {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--frost-bright);
}

/* Newsletter signup */
#signup .signup-intro {
  max-width: 640px;
  margin: 0 auto 35px;
  text-align: center;
  font-size: 20px;
  color: var(--text-secondary);
}
#signup .signup-intro em { color: var(--text-primary); font-style: italic; }

#signup .signup-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  padding: 35px 32px;
  text-align: left;
}

#signup .signup-label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

#signup .signup-field {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#signup .signup-field input[type="email"] {
  flex: 1 1 240px;
  background: var(--bg-primary);
  border: 1px solid rgba(165, 243, 252, 0.25);
  border-radius: 3px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
}
#signup .signup-field input::placeholder { color: var(--text-muted); }
#signup .signup-field input:focus {
  outline: none;
  border-color: var(--frost);
  box-shadow: 0 0 0 1px var(--frost);
}

#signup .signup-btn {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 34px;
  background: var(--frost-deep);
  color: #04121f;
  border: 2px solid var(--frost-deep);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s;
}
#signup .signup-btn:hover {
  background: transparent;
  color: var(--frost-bright);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.4);
}

#signup .signup-fineprint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
#signup .signup-fineprint a { color: var(--frost-bright); text-decoration: none; }
#signup .signup-fineprint a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-cover img {
    width: 280px;
  }
  .hero-text h1 {
    font-size: 34px;
  }
  nav ul {
    gap: 18px;
  }
  nav a {
    font-size: 11px;
  }
  nav .logo span {
    letter-spacing: 3px;
  }
  .series-grid {
    grid-template-columns: 1fr;
  }
  .book-card.more-to-come {
    grid-column: auto;
  }
  #signup .signup-field { flex-direction: column; }
  #signup .signup-btn { width: 100%; }
}
