/* TV COMMERCIAL PAGE - MODERN STYLES */
:root {
  --tv-primary: #f68732;
  --tv-primary-hover: #f68732;
  --tv-secondary: #3b82f6;
  --tv-dark-bg: #0f1419;
  --tv-dark-card: #1a1f2e;
  --tv-text-primary: #ffffff;
  --tv-text-secondary: #cbd5e1;
  --tv-text-muted: #94a3b8;
  --tv-border: #334155;
}

/* Hero */
.tv-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
}

.tv-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 50%,
      rgba(255, 107, 0, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(59, 130, 246, 0.06) 0%,
      transparent 50%
    );
}

.broadcast-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
}

.broadcast-waves .wave {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 107, 0, 0.15);
  border-radius: 50%;
  animation: broadcast 3s ease-out infinite;
}

.broadcast-waves .wave:nth-child(2) {
  animation-delay: 1s;
}
.broadcast-waves .wave:nth-child(3) {
  animation-delay: 2s;
}

@keyframes broadcast {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.tv-hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 10;
}

.tv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 50px;
  color: var(--tv-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease-out;
}

.tv-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--tv-text-primary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--tv-primary) 0%,
    var(--tv-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tv-hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--tv-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.tv-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.tv-btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tv-btn.primary {
  background: var(--tv-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.tv-btn.primary:hover {
  background: var(--tv-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 107, 0, 0.4);
}

.tv-btn.secondary {
  background: transparent;
  color: var(--tv-text-primary);
  border: 2px solid var(--tv-border);
}

.tv-btn.secondary:hover {
  border-color: var(--tv-primary);
  color: var(--tv-primary);
  transform: translateY(-2px);
}

.tv-stats {
  display: flex;
  gap: 3rem;
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--tv-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--tv-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tv-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.tv-screens {
  position: relative;
  width: 350px;
  height: 350px;
}

.tv-screen {
  position: absolute;
  background: linear-gradient(135deg, var(--tv-dark-card), #252b3b);
  border: 3px solid var(--tv-border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

.tv-screen.main {
  width: 200px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  border-color: var(--tv-primary);
}

.screen-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.3), transparent);
  border-radius: 10px;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.screen-content {
  position: absolute;
  inset: 15px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}

.channel-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--tv-primary), var(--tv-secondary));
  border-radius: 4px;
  animation: scan 3s ease-in-out infinite;
}

.channel-bar:nth-child(2) {
  animation-delay: 0.5s;
  opacity: 0.7;
}
.channel-bar:nth-child(3) {
  animation-delay: 1s;
  opacity: 0.5;
}

@keyframes scan {
  0%,
  100% {
    transform: scaleX(0.3);
    transform-origin: left;
  }
  50% {
    transform: scaleX(1);
  }
}

.tv-screen.small {
  width: 120px;
  height: 90px;
  z-index: 1;
}

.tv-screen.screen-1 {
  top: 20%;
  left: 0;
  animation-delay: 1s;
}

.tv-screen.screen-2 {
  top: 20%;
  right: 0;
  animation-delay: 2s;
}

.tv-screen.screen-3 {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.signal-icon {
  position: absolute;
  top: 10%;
  right: 10%;
  color: var(--tv-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.tv-cases,
.tv-benefits,
.tv-pricing,
.tv-form-section {
  padding: 6rem 0;
}

.tv-cases {
  background: var(--tv-dark-bg);
}
.tv-benefits {
  background: linear-gradient(
    180deg,
    var(--tv-dark-bg) 0%,
    var(--tv-dark-card) 100%
  );
}
.tv-pricing {
  background: var(--tv-dark-bg);
}
.tv-form-section {
  background: linear-gradient(
    180deg,
    var(--tv-dark-bg) 0%,
    var(--tv-dark-card) 100%
  );
}

.tv-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tv-container-small {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--tv-text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--tv-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Use Cases Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.case-card {
  background: var(--tv-dark-card);
  border: 1px solid var(--tv-border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.case-card[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.case-card:hover {
  transform: translateY(-8px);
  border-color: var(--tv-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.05),
    rgba(59, 130, 246, 0.05)
  );
}

.case-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.1),
    rgba(59, 130, 246, 0.1)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--tv-primary);
}

.case-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tv-text-primary);
  margin-bottom: 1rem;
}

.case-card p {
  color: var(--tv-text-secondary);
  line-height: 1.7;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--tv-border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.benefit-card[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--tv-primary) 0%,
    var(--tv-secondary) 100%
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: var(--tv-primary);
  background: rgba(255, 107, 0, 0.05);
}

.benefit-number {
  font-size: 3rem;
  font-weight: 800;
  color: #f68732;
  line-height: 1;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tv-text-primary);
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--tv-text-secondary);
  line-height: 1.7;
}

/* Pricing Table */
.pricing-table-wrapper {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.pricing-table {
  width: 100%;
  background: var(--tv-dark-card);
  border: 1px solid var(--tv-border);
  border-radius: 16px;
  border-collapse: collapse;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.pricing-table[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-table thead {
  background: linear-gradient(135deg, var(--tv-primary), var(--tv-secondary));
}

.pricing-table th {
  padding: 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  text-align: left;
}

.pricing-table td {
  padding: 1.25rem 1.5rem;
  color: var(--tv-text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table tbody tr {
  transition: background 0.2s ease;
}

.pricing-table tbody tr:hover {
  background: rgba(255, 107, 0, 0.05);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr.popular {
  background: rgba(255, 107, 0, 0.1);
}

.pricing-table tbody tr.best {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.15),
    rgba(59, 130, 246, 0.15)
  );
}

.pricing-table .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tv-primary);
}

.pricing-table .badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--tv-primary);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.pricing-table .badge.best {
  background: linear-gradient(135deg, var(--tv-primary), var(--tv-secondary));
}

.pricing-table .example {
  color: var(--tv-text-muted);
  font-size: 0.95rem;
}

.pricing-notes {
  background: var(--tv-dark-card);
  border: 2px solid var(--tv-border);
  border-left: 4px solid var(--tv-primary);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.pricing-notes[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-notes h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tv-text-primary);
  margin-bottom: 1.5rem;
}

.pricing-notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-notes li {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--tv-text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.7;
}

.pricing-notes li:last-child {
  border-bottom: none;
}

/* Form */
.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--tv-text-primary);
  margin-bottom: 1rem;
}

.form-subtitle {
  font-size: 1.125rem;
  color: var(--tv-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.tv-form {
  background: var(--tv-dark-card);
  border: 1px solid var(--tv-border);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--tv-text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 2px solid var(--tv-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--tv-text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--tv-primary);
  background: rgba(0, 0, 0, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ef4444;
}

.form-group.error .form-error {
  display: block;
}

.price-estimate {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 8px;
  color: var(--tv-primary);
  font-weight: 600;
  display: none;
}

.price-estimate.show {
  display: block;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox label {
  color: var(--tv-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  cursor: pointer;
}

.form-checkbox label a {
  color: var(--tv-primary);
  text-decoration: none;
}

.form-checkbox label a:hover {
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  padding: 1.25rem;
  background: var(--tv-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.form-submit:hover:not(:disabled) {
  background: var(--tv-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 107, 0, 0.4);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .tv-hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .tv-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tv-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .tv-stats {
    justify-content: center;
  }

  .tv-hero-visual {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .tv-hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .tv-hero-container {
    padding: 2rem 1rem;
  }

  .tv-hero-title {
    font-size: 2rem;
  }

  .tv-hero-subtitle {
    font-size: 1rem;
  }

  .tv-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .tv-btn {
    width: 100%;
    justify-content: center;
  }

  .tv-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tv-form {
    padding: 2rem 1.5rem;
  }

  .tv-cases,
  .tv-benefits,
  .tv-pricing,
  .tv-form-section {
    padding: 4rem 0;
  }

  .tv-screens {
    width: 250px;
    height: 250px;
  }

  .tv-screen.main {
    width: 150px;
    height: 112px;
  }

  .tv-screen.small {
    width: 90px;
    height: 68px;
  }

  .pricing-table {
    font-size: 0.9rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 1rem;
  }

  .pricing-notes {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .tv-hero-title {
    font-size: 1.75rem;
  }

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

  .pricing-table {
    font-size: 0.85rem;
  }

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

.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}
