@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg-base: #08090c;
  --bg-surface: rgba(17, 20, 28, 0.6);
  --bg-surface-hover: rgba(26, 31, 44, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(0, 240, 255, 0.4);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* HSL Tailored Colors */
  --cyan-hsl: 185, 100%, 50%;
  --purple-hsl: 275, 100%, 60%;
  --green-hsl: 142, 70%, 50%;
  
  --accent-cyan: hsl(var(--cyan-hsl));
  --accent-purple: hsl(var(--purple-hsl));
  --accent-green: hsl(var(--green-hsl));
  
  /* Font Stacks */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Shadow & Transitions */
  --shadow-glow-cyan: 0 0 20px rgba(0, 240, 255, 0.15);
  --shadow-glow-purple: 0 0 20px rgba(180, 0, 255, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 10% 20%, rgba(180, 0, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
    var(--bg-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 9, 12, 0.8);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- Glassmorphic Cards --- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 32px;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* --- Buttons & Inputs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #000;
  color: var(--bg-base);
  font-weight: 700;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--accent-green);
  color: #08090c;
  font-weight: 700;
}

.btn-green:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.3);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px 0;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(180, 0, 255, 0.15) 0%, rgba(0, 240, 255, 0.05) 50%, transparent 100%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.niche-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(180, 0, 255, 0.1);
  border: 1px solid rgba(180, 0, 255, 0.2);
  color: var(--accent-purple);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  max-width: 900px;
  margin: 0 auto 24px auto;
  background: linear-gradient(to right, #ffffff, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Domain Search Banner --- */
.domain-search-section {
  padding: 40px 0;
  position: relative;
  z-index: 10;
}

.search-card {
  max-width: 850px;
  margin: 0 auto;
  border: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: var(--shadow-glow-cyan);
}

.search-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.search-title span {
  color: var(--accent-cyan);
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* --- Features / Core Philosophy --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 60%, var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.phi-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phi-card h3 svg {
  color: var(--accent-cyan);
}

/* --- Interactive E-Book Slider / Preview --- */
.ebook-showcase {
  background: linear-gradient(180deg, var(--bg-base), rgba(13, 15, 20, 0.8), var(--bg-base));
}

.ebook-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .ebook-layout {
    grid-template-columns: 1fr;
  }
}

.ebook-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.book-reader {
  width: 100%;
  max-width: 440px;
  height: 520px;
  position: relative;
  background: rgba(22, 26, 37, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 16px 24px 24px 16px;
  box-shadow: 
    -10px 10px 30px rgba(0, 0, 0, 0.6),
    inset -3px 0 10px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Custom binding spine effect */
.book-reader::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16px;
  background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(255,255,255,0.05) 40%, rgba(0,0,0,0.3) 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.book-content {
  flex: 1;
  padding: 40px 30px 30px 45px;
  display: flex;
  flex-direction: column;
}

.book-page {
  display: none;
  flex-direction: column;
  height: 100%;
  animation: fadeInPage 0.4s ease forwards;
}

.book-page.active {
  display: flex;
}

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

.book-header {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.book-body {
  flex: 1;
  font-size: 0.95rem;
}

.book-body h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #fff;
}

.book-body p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.book-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.book-body li {
  margin-bottom: 8px;
}

.book-footer {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.book-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 16px 36px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.2);
}

.book-controls button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.book-controls button:hover:not(:disabled) {
  color: var(--text-primary);
}

.book-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
}

/* --- Hosting Storefront Funnel --- */
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.hosting-card {
  position: relative;
  overflow: hidden;
}

.hosting-card.popular {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-cyan);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 100px;
}

.tier-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.tier-desc {
  font-size: 0.9rem;
  margin-bottom: 24px;
  height: 48px;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
}

.tier-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.tier-features {
  list-style: none;
  margin-bottom: 32px;
}

.tier-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.tier-features li svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(180, 0, 255, 0.1), rgba(0, 240, 255, 0.1));
  position: relative;
}

.blog-image-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
  opacity: 0.5;
}

.blog-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #fff;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-title {
  color: var(--accent-cyan);
}

.blog-excerpt {
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex: 1;
}

.blog-readmore {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-readmore svg {
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-readmore svg {
  transform: translateX(4px);
}

/* --- Single Blog Post Layout --- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  margin-top: 40px;
}

@media (max-width: 1000px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.blog-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
}

.blog-post-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
}

.blog-post-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  color: #fff;
}

.blog-content p {
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 20px 0;
  color: #fff;
}

.blog-content blockquote {
  border-left: 4px solid var(--accent-purple);
  padding-left: 20px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
}

/* Sticky Blog Sidebar Funnel */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sticky-sidebar-inner {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
}

.sidebar-widget h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #fff;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0;
  background: rgba(8, 9, 12, 0.9);
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Mobile Menu --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger svg {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
}

/* --- Email Gate Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 9, 12, 0.75);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow-purple);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.modal-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* Ebook locked state overlay */
.book-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 28, 0.92);
  backdrop-filter: blur(12px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  border-radius: 16px 24px 24px 16px;
  border-left: 16px solid transparent; /* Align with spine binding layout */
}

.lock-icon-container {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(180, 0, 255, 0.1);
  border: 1px solid rgba(180, 0, 255, 0.2);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-glow-purple);
}

