:root {
  --primary-color: #8b5cf6;
  --primary-hover: #7c3aed;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --background: #ffffff;
  --background-secondary: #f9fafb;
  --border: #e5e7eb;
  --border-input: #d1d5db;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --background: #1a1611;
  --background-secondary: #1f2937;
  --border: #374151;
  --border-input: #4b5563;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  position: relative;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.left-content {
  max-width: 500px;
}

.app-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.app-icon {
  width: 60px;
  height: 60px;
}

.icon {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.app-name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.description {
  margin-bottom: 40px;
}

.description p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.description p:last-child {
  margin-bottom: 0;
}

.description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.coming-soon-text {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  font-style: italic;
}

.app-store-button {
  display: inline-block;
  margin-bottom: 24px;
}

.app-store-button img {
  height: 44px;
  width: auto;
}

.app-store-button.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.testflight-form {
  margin-bottom: 30px;
}

.name-fields {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.name-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border-input);
  border-radius: 8px;
  font-size: 1rem;
  background-color: var(--background);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.name-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.name-input::placeholder {
  color: var(--text-muted);
}

.form-group {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.email-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border-input);
  border-radius: 8px;
  font-size: 1rem;
  background-color: var(--background);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.cta-button {
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  font-size: 1rem;
}

.form-message {
  text-align: left;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.9rem;
  min-height: 20px;
}

.form-message.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.social-follow {
  margin: 0;
}

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--primary-color);
}

.external-link-icon {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-link:hover .external-link-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

.right-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.phone-mockup {
  position: relative;
  width: fit-content;
  max-width: 300px;
  margin: 0 auto;
  line-height: 0;
}

.phone-screen {
  position: absolute;
  top: 2.19%;
  left: 8.77%;
  width: 83%;
  height: auto;
  z-index: 1;
  border-radius: 10px;
  transition: opacity 0.3s ease;
  margin: 0;
  padding: 0;
}

.phone-bezel {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

.dark-screenshot {
  display: none;
}

[data-theme="dark"] .light-screenshot {
  display: none;
}

[data-theme="dark"] .dark-screenshot {
  display: block;
}

[data-theme="dark"] .phone-screen.dark-screenshot {
  display: block;
  position: absolute;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
}

.theme-button {
  background: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--background);
}

.theme-button:hover {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.theme-icon {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

[data-theme="dark"] .theme-icon {
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .content-wrapper {
    gap: 60px;
  }

  .main-title {
    font-size: 2.2rem;
  }

  .phone-mockup {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .left-content {
    max-width: 100%;
  }

  .app-branding {
    justify-content: center;
    margin-bottom: 30px;
  }

  .main-title {
    font-size: 2rem;
  }

  .name-fields {
    flex-direction: column;
    gap: 12px;
  }

  .form-group {
    flex-direction: column;
    gap: 12px;
  }

  .cta-button {
    width: 100%;
  }

  .phone-mockup {
    max-width: 200px;
  }

  .theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .app-name {
    font-size: 1.5rem;
  }

  .main-title {
    font-size: 1.8rem;
  }

  .description p {
    font-size: 1rem;
  }

  .phone-mockup {
    max-width: 180px;
  }
}