/* trAInr Marketing Site Styles */

:root {
  /* Brand Colors */
  --brand-primary: #3A8DFF;
  --brand-primary-dark: #2A6FCC;
  --accent-pink: #FF6FAF;
  --accent-pink-dark: #E55A9A;
  
  /* Light Mode */
  --bg-default: #FFFFFF;
  --bg-surface: #F5F7FA;
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --border-color: #E2E8F0;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  
  /* Max Width */
  --max-width: 1200px;
  --content-width: 800px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-default: #0F172A;
    --bg-surface: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --border-color: #334155;
  }
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-default);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-md);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.content-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

main {
  flex: 1;
}

/* Header */
.header {
  background: var(--bg-default);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

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

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #2563EB 100%);
  color: white;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: var(--space-xl);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-pink);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-pink-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: var(--brand-primary);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  color: var(--brand-primary-dark);
}

/* Features Section */
.features {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg-surface);
}

.features h2 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-default);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #2563EB 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* CTA Section */
.cta {
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  background: var(--bg-default);
}

.cta h2 {
  margin-bottom: var(--space-md);
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* App Store Badge */
.app-store-badge {
  height: 54px;
  transition: transform 0.2s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
}

/* Legal Pages */
.legal-page {
  padding: var(--space-3xl) var(--space-lg);
}

.legal-page h1 {
  margin-bottom: var(--space-sm);
}

.legal-page .last-updated {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.legal-section {
  margin-bottom: var(--space-xl);
}

.legal-section h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.legal-section p,
.legal-section ul {
  color: var(--text-secondary);
}

.legal-section ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-section li {
  margin-bottom: var(--space-sm);
}

/* Support Page */
.support-page {
  padding: var(--space-3xl) var(--space-lg);
}

.support-hero {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.support-hero h1 {
  margin-bottom: var(--space-md);
}

.support-hero p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.faq-section {
  max-width: var(--content-width);
  margin: 0 auto var(--space-3xl);
}

.faq-section h2 {
  margin-bottom: var(--space-xl);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: var(--bg-default);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.contact-section {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
  background: var(--bg-surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.contact-section h2 {
  margin-bottom: var(--space-md);
}

.contact-section p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-primary);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .tagline {
    font-size: 1.1rem;
  }
  
  .nav {
    gap: var(--space-md);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .nav {
    width: 100%;
    justify-content: center;
  }
}
