/* 
  Theme: Premium Dark Minimalist 
  Font: Inter
*/

:root {
  /* Colors */
  --bg-body: #050505;
  --bg-surface: #121212;
  --bg-surface-Highlight: #1E1E1E;

  --text-main: #EDEDED;
  --text-muted: #A1A1AA;
  --text-subtle: #52525B;

  --accent: #2DD4BF;
  /* Teal 400 */
  --accent-glow: rgba(45, 212, 191, 0.4);
  --accent-dark: #14B8A6;

  --border-subtle: #27272A;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Components */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
input {
  font-family: inherit;
}

/* Layout */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Navbar */
.navbar {
  padding: var(--space-md) 0;
}

.logo {
  height: 64px;
  width: auto;
  border-radius: 14px;
}

/* Hero Section */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--space-lg) 0;
}

.hero-container {
  display: grid;
  gap: var(--space-xl);
  /* Mobile default: Stacked */
  grid-template-columns: 1fr;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* Left align on mobile usually looks cleaner for long text, but centering can work too. Let's stick to left for "premium" feel. */
  max-width: 540px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  background: linear-gradient(to bottom right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subhead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  /* Reduced bottom margin to fit excerpt */
  font-weight: 400;
}

/* Book Excerpt */
.book-excerpt {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin-bottom: var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;

  font-family: 'Times New Roman', serif;
  /* Classic book feel */
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-main);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.book-excerpt:hover {
  transform: translateX(5px);
}

.excerpt-icon {
  font-style: normal;
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Waitlist Form */
.waitlist-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.email-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  width: 100%;
}

.email-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.1);
}

.email-input::placeholder {
  color: var(--text-subtle);
}

.submit-btn {
  background: var(--text-main);
  color: var(--bg-body);
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

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

.submit-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.submit-btn.success {
  background: var(--accent);
  color: #000;
}

/* Platform Options */
.platform-selector {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.platform-label {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.platform-options {
  display: flex;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.radio-label {
  position: relative;
  cursor: pointer;
}

.radio-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-custom {
  display: block;
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.radio-label input:checked+.radio-custom {
  background: var(--bg-surface-Highlight);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Social Proof */
.social-proof p {
  font-size: 0.875rem;
  color: var(--text-subtle);
  border-left: 2px solid var(--border-subtle);
  padding-left: var(--space-sm);
}

/* Hero Visual (Book) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg) 0;
}

.book-cover {
  width: 300px;
  height: auto;
  border-radius: 4px;
  /* Books have sharp corners usually, maybe slight radius */
  box-shadow:
    -2px 0 2px #111,
    /* spine */
    5px 5px 20px rgba(0, 0, 0, 0.5);
  /* deep shadow */
  position: relative;
  z-index: 2;
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-visual:hover .book-cover {
  transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) translateY(-5px);
}

.book-glow {
  position: absolute;
  width: 380px;
  height: 500px;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 1;
  opacity: 0.5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.book-reflection {
  /* Only needed if we want a floor reflection, but keeping simple for now */
}

/* Footer */
.site-footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* Responsive Breakpoints */

/* Tablet & Up */
@media (min-width: 640px) {
  .input-group {
    flex-direction: row;
  }

  .email-input {
    width: 300px;
  }

  .submit-btn {
    width: auto;
  }
}

/* Desktop */
@media (min-width: 960px) {
  .hero-container {
    grid-template-columns: 1.2fr 1fr;
    /* Text takes slightly more space */
    align-items: center;
    gap: var(--space-xl);
  }

  .hero-visual {
    padding: 0;
    justify-content: flex-end;
  }

  .book-cover {
    width: 420px;
  }
}