/* RMA Apps Website Styles */

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

:root {
  --primary: #0073b7;
  --primary-dark: #005a8f;
  --text: #2f3941;
  --text-light: #68737d;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e9ebed;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

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

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

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ebed 100%);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

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

/* Apps Section */
.apps {
  padding: 80px 0;
}

.apps h2, .features h2, .contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.app-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.app-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.app-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.app-card p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.app-link {
  color: var(--primary);
  font-weight: 500;
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--bg-alt);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-light);
}

/* Contact */
.contact {
  padding: 80px 0;
  text-align: center;
}

.contact p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
}

/* Footer */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

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

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

/* App Detail Pages */
.app-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ebed 100%);
}

.app-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.app-hero .tagline {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.app-hero .btn {
  margin-right: 12px;
}

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

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

.app-content {
  padding: 60px 0;
}

.app-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  text-align: left;
}

.app-content h2:first-child {
  margin-top: 0;
}

.app-content ul {
  margin-left: 24px;
  color: var(--text-light);
}

.app-content li {
  margin-bottom: 8px;
}

.app-content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

/* Legal Pages */
.legal {
  padding: 60px 0;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-light);
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.legal p, .legal ul {
  color: var(--text-light);
  margin-bottom: 16px;
}

.legal ul {
  margin-left: 24px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  footer .container {
    flex-direction: column;
    text-align: center;
  }
}
