/* Landing page specific styles */

:root {
  /* Simplified fixed form system */
  --element-height: 52px;
  --form-gap: 12px;
  --border-radius: 8px;
  --button-padding-x: 24px;

  /* Content width - adjusted for production consistency */
  --content-width: min(1500px, 85vw);

  /* Calculated values */
  --message-height: calc(2 * var(--element-height) + var(--form-gap));
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  margin: 0 auto;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.header {
  position: relative;
  padding: 15px 0;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}

.headline {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.8rem, 4.5vw + 1rem, 6rem);
  font-weight: 700;
  line-height: clamp(1.2, 1.1vw + 1.2, 1.3);
  margin-bottom: clamp(40px, 5vh, 80px);
  background: linear-gradient(135deg, #ededed 0%, #f3c11b 50%, #fbb040 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  width: 100%;
  max-width: min(1500px, 80vw);
}

/* Video Section */
.video-container {
  width: 100%;
  max-width: var(--content-width);
  margin-bottom: 60px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .video-wrapper:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow:
      0 20px 60px rgba(255, 255, 255, 0.12),
      0 8px 30px rgba(251, 176, 64, 0.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-wrapper {
    transition: none;
  }
  .video-wrapper:hover {
    transform: none;
  }
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none !important;
  outline: none;
  background: transparent;
  border-radius: var(--border-radius);
}

/* Form Section */
.form-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--border-radius) * 2);
  padding: 40px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: 420px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Form title inherits from .section-header in shared.css */

.form-content {
  transition: opacity 0.3s ease;
  flex: 1;
}

.form-content.hidden {
  opacity: 0;
  pointer-events: none;
}

.form-columns {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.form-column {
  flex: 1;
}

.left-column {
  display: flex;
  flex-direction: column;
}

.right-column {
  display: flex;
  flex-direction: column;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, var(--element-height));
  gap: var(--form-gap);
}

.form-group {
  margin: 0;
}

.message-group {
  grid-column: 1 / -1;
  grid-row: 2 / 4;
  position: relative;
  display: flex;
  flex-direction: column;
}

.message-group textarea {
  flex: 1;
  height: 100%;
  min-height: var(--message-height);
  resize: none;
}

.submit-group {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  justify-content: flex-end;
}

.word-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: #777777;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* Interest Buttons */
.interest-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--form-gap);
}

.interest-btn {
  height: var(--element-height);
  padding: 0 16px;
  border: 1px solid #404040;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.04);
  color: #ededed;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(12px, 1.2vw + 0.2rem, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
}

.interest-btn:hover {
  border-color: #f3c11b;
  background: rgba(243, 193, 27, 0.1);
  transform: translateY(-2px);
}

.interest-btn.selected {
  border-color: #f3c11b;
  border-width: 1px;
  background: transparent;
  color: #f3c11b;
  box-shadow: 0 0 0 1px rgba(243, 193, 27, 0.2);
}

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

/* Form Inputs */
input[type='text'],
input[type='email'] {
  width: 100%;
  height: var(--element-height);
  padding: 0 16px;
  border: 1px solid #404040;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.04);
  color: #ededed;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #404040;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.04);
  color: #ededed;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  resize: none;
}

input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

textarea {
  min-height: 80px;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #777777;
  font-weight: 400;
}

/* Submit Button */
.submit-btn {
  width: auto;
  min-width: 120px;
  height: var(--element-height);
  padding: 0 24px;
  background: #f3c11b;
  color: #121212;
  border: none;
  border-radius: 6px;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.success-message.show {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.success-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f3c11b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.success-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #ededed;
  margin: 0;
}

/* Tablet Breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
  .headline {
    margin-bottom: 40px;
    line-height: 1.25;
  }

  .video-container {
    margin-bottom: 40px;
  }

  .form-section {
    min-height: 400px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  :root {
    --content-width: min(1500px, 93vw);
  }

  .header {
    padding: 15px 0;
  }

  .main-content {
    padding: 0;
  }

  .form-section {
    padding: 30px 20px;
    margin: 0 auto 30px auto;
    max-width: var(--content-width);
    min-height: 380px;
  }

  .headline {
    margin: 25px 0 20px 0;
    max-width: min(1500px, 93vw);
    line-height: 1.2;
  }

  .video-container {
    margin-bottom: 30px;
  }

  .video-wrapper {
    box-shadow: none;
  }

  .video-wrapper:hover {
    box-shadow: none;
    transform: none;
  }

  .form-columns {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .left-column {
    width: 100%;
  }

  .interest-buttons {
    width: 100%;
  }

  .interest-btn {
    width: 100% !important;
  }

  .right-column {
    width: 100%;
  }

  .input-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .form-group {
    width: 100%;
  }

  .form-group input {
    width: 100% !important;
  }

  .message-group {
    width: 100%;
  }

  .message-group textarea {
    height: var(--element-height);
    min-height: var(--element-height);
    resize: none;
    width: 100% !important;
  }

  .submit-group {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .submit-btn {
    width: auto;
    min-width: 140px;
  }
}

/* Preview Section */
.preview-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--border-radius) * 2);
  padding: 40px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: var(--content-width);
  margin-bottom: 60px;
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.preview-description {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-top: 16px;
}

.app-store-badges {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 16px;
}

.app-badge {
  display: inline-flex;
  align-items: left;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
}

.app-badge:hover {
  transform: translateY(-3px);
}

.app-badge img {
  height: auto;
  max-width: 180px;
  width: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .preview-section {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .preview-description {
    font-size: 16px;
  }

  .app-store-badges {
    gap: 20px;
  }

  .app-badge img {
    max-width: 160px;
  }
}
