/* Signal Screener Website - Global Styles */
:root {
  --primary-color: #FF6B35;
  --primary-hover: #e55a2b;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --bg-white: #ffffff;
  --bg-gray: #F9FAFB;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.language-btn:hover {
  background: var(--bg-white);
  border-color: var(--primary-color);
}

.language-btn svg {
  width: 16px;
  height: 16px;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 200;
}

.language-dropdown.active {
  display: block;
}

.language-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  transition: background-color 0.2s;
}

.language-dropdown a:hover {
  background: var(--bg-gray);
}

.language-dropdown a.active {
  background: var(--bg-gray);
  color: var(--primary-color);
  font-weight: 600;
}

.language-dropdown a span.flag {
  font-size: 1.25rem;
}

/* Hero Section */
.hero {
  padding: 8rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-gray) 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.hero-bg::before {
  top: -20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: #fed7aa;
}

.hero-bg::after {
  bottom: -20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: #ffedd5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28%;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .app-icon {
    width: 160px;
    height: 160px;
  }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
}

.hero h1 .highlight {
  color: var(--primary-color);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.25rem;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

/* Features Section */
.features {
  padding: 6rem 1.5rem;
  background: var(--bg-gray);
}

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

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.5rem;
  }
}

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

.features-grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #FFF7ED;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid #FFEDD5;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Contact Section */
.contact {
  padding: 6rem 1.5rem;
  background: var(--bg-gray);
}

.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-form-container {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .contact-form-container {
    padding: 2.5rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-left: 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder {
  color: #9CA3AF;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

textarea.form-input + .input-icon {
  top: 1rem;
  transform: none;
}

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--primary-color);
  color: white;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.btn-submit:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.btn-submit svg {
  width: 18px;
  height: 18px;
}

.contact-info {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .contact-info {
    padding: 2.5rem;
  }
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Disclaimers Section */
.disclaimers {
  padding: 4rem 1.5rem 6rem;
  background: var(--bg-white);
}

.disclaimers-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-gray);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

@media (min-width: 640px) {
  .disclaimers-box {
    padding: 2.5rem;
  }
}

.disclaimers-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.disclaimers-header svg {
  width: 24px;
  height: 24px;
  color: #D97706;
}

.disclaimers-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.disclaimers-list {
  list-style: none;
}

.disclaimers-list li {
  display: grid;
  grid-template-columns: 8px 160px 1fr;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.disclaimers-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #9CA3AF;
  border-radius: 50%;
  margin-top: 0.45rem;
}

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

.disclaimers-list li span {
  color: var(--text-secondary);
}

@media (max-width: 639px) {
  .disclaimers-list li {
    display: block;
    padding-left: 1rem;
    position: relative;
  }

  .disclaimers-list li::before {
    position: absolute;
    left: 0;
    top: 0.5rem;
  }

  .disclaimers-list strong {
    display: block;
    margin-bottom: 0.25rem;
  }
}

/* Footer */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Legal Pages */
.legal-page {
  padding: 8rem 1.5rem 4rem;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .legal-content h1 {
    font-size: 2.5rem;
  }
}

.legal-content .last-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  z-index: 99;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.mobile-nav a:hover {
  background: var(--bg-gray);
  color: var(--primary-color);
}

/* Success Message */
.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.success-message.active {
  display: flex;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: #D1FAE5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.success-icon svg {
  width: 24px;
  height: 24px;
  color: #059669;
}

.success-message h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.success-message p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn-link {
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
}

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

/* Hide form when success */
.contact-form.hidden {
  display: none;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

.animation-delay-100 {
  animation-delay: 0.1s;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}
