/* Modern, polished styling for BeyondScreen.ai landing page */
:root {
  --primary-color: #407d89;
  --primary-hover: #5a9aa7;
  --background-color: #1a1a1a;
  --surface-color: #262626;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-color: #64b5f6;
  --border-color: #404040;
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.25);
  --border-radius: 12px;
  --border-radius-sm: 8px;
}

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

html {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--background-color);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  min-height: 100vh;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin-bottom: auto;
}

.logo svg {
  filter: drop-shadow(var(--shadow-light));
  transition: transform 0.3s ease;
}

.logo svg:hover {
  transform: scale(1.05);
}

h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo h2 {
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.6;
}

footer {
  width: 100%;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--background-color);
  margin-top: auto;
}

footer p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Content page styles */
.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  position: relative;
  padding-bottom: 5rem; /* Add space for footer */
}

.content-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.content-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-header .last-updated {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.875rem;
}

.content-body h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.content-body h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 2rem 0 1rem 0;
}

.content-body p {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.content-body ul,
.content-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.content-body a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.content-body a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Enhanced components */
.highlight {
  background: linear-gradient(135deg, var(--surface-color) 0%, #2a2a2a 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-light);
}

.steps {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-light);
}

.step {
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 0.5rem;
}

.important {
  background: linear-gradient(135deg, #2a2520 0%, #3a3025 100%);
  border: 1px solid #5a4a2a;
  border-left: 4px solid #d4a72c;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-light);
}

/* Table styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.data-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Navigation */
.nav-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.nav-footer a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-light);
}

.nav-footer a:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Responsive design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.35rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .features-section,
  .download-section {
    padding: 6rem 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1.5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  .logo-svg {
    width: 140px;
    height: 140px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .features-section,
  .download-section {
    padding: 4rem 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .download-button {
    min-width: unset;
    width: 100%;
  }

  .waitlist-form {
    flex-direction: column;
    gap: 1rem;
  }

  .waitlist-form button {
    width: 100%;
  }

  .content-container {
    padding: 1.5rem;
    padding-bottom: 5rem;
  }

  .content-header h1 {
    font-size: 2rem;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }

  .footer-links {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .logo-svg {
    width: 120px;
    height: 120px;
  }

  .logo-container {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .features-section,
  .download-section {
    padding: 3rem 1rem;
  }

  .feature-card {
    padding: 2rem 1.25rem;
  }

  .feature-icon {
    font-size: 3rem;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }

  .download-button {
    padding: 1.25rem 1.5rem;
  }

  .download-icon {
    width: 32px;
    height: 32px;
  }

  .platform-label {
    font-size: 1rem;
  }

  .store-label {
    font-size: 0.8rem;
  }

  .waitlist-container h3 {
    font-size: 1.125rem;
  }

  .waitlist-form input[type="email"],
  .waitlist-form button {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .content-container {
    padding: 1rem;
    padding-bottom: 5rem;
  }

  .content-header h1 {
    font-size: 1.75rem;
  }

  .content-body h2 {
    font-size: 1.25rem;
  }

  .highlight,
  .steps,
  .important {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .data-table {
    font-size: 0.75rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem 0.25rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .footer-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .footer-links a {
    font-size: 0.8rem;
  }
}

/* Product grid styles */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.product-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.product-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-link {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white !important;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-light);
  margin-top: auto;
}

.product-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(
    135deg,
    var(--primary-hover) 0%,
    var(--accent-color) 100%
  );
}

.affiliate-disclaimer {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 3rem 0 2rem 0;
  text-align: center;
  box-shadow: var(--shadow-light);
}

.affiliate-disclaimer p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Responsive adjustments for product grid */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .product-card {
    padding: 1rem;
  }

  .product-card h3 {
    font-size: 1.25rem;
  }

  .product-link {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Waitlist form styles */
.waitlist-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.waitlist-container h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.waitlist-form {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 1.125rem 1.75rem;
  font-size: 1rem;
  background: var(--surface-elevated);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(64, 125, 137, 0.15);
  background: var(--surface-color);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.waitlist-form button {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  white-space: nowrap;
}

.waitlist-form button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: var(--primary-hover);
}

.waitlist-form button:active:not(:disabled) {
  transform: translateY(0);
}

.waitlist-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.waitlist-message {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  display: none;
}

.waitlist-message.success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81c784;
}

.waitlist-message.error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #e57373;
}

.waitlist-message.loading {
  background: rgba(100, 181, 246, 0.1);
  border: 1px solid rgba(100, 181, 246, 0.3);
  color: var(--accent-color);
}

/* Download section styles */
.download-section {
  padding: 8rem 2rem;
  background: var(--background-color);
  position: relative;
}

.download-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.download-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.download-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: var(--surface-elevated);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-width: 220px;
  box-shadow: var(--shadow-light);
  position: relative;
}

.download-button:not(.disabled):hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
  background: var(--surface-color);
}

.download-button.highlighted {
  border-color: var(--primary-color);
  background: var(--surface-color);
  box-shadow: var(--shadow-medium);
}

.download-button.highlighted::after {
  content: "Recommended";
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow-light);
}

.download-button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.download-button.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-light);
  border-color: var(--border-color);
  background: var(--surface-elevated);
}

.download-icon {
  width: 36px;
  height: 36px;
  fill: var(--primary-color);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.download-button:not(.disabled):hover .download-icon {
  fill: var(--primary-hover);
  transform: scale(1.1);
}

.button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.platform-label {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

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

/* Focus styles */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
