/* ===== ONBR Player — Microsite Design System ===== */
/* Colors extracted from ONBRColors.swift */

:root {
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-light: rgba(124, 58, 237, 0.15);
  --bg-dark: #151025;
  --bg-mid: #1F1A30;
  --bg-card: rgba(124, 58, 237, 0.08);
  --bg-card-hover: rgba(124, 58, 237, 0.14);
  --border-card: rgba(180, 100, 255, 0.2);
  --grad-1: #251238;
  --grad-2: #4A2568;
  --grad-3: #254A8A;
  --grad-4: #1A5C4A;
  --text-primary: #F0EBF8;
  --text-secondary: #A89CC8;
  --text-muted: #6B5F8A;
  --white: #ffffff;
  --danger: #EF4444;
  --success: #10B981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, var(--grad-1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--grad-2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, var(--grad-3) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 90%, var(--grad-4) 0%, transparent 40%),
    var(--bg-dark);
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; margin-top: 2rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }

/* ===== Layout ===== */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 16, 37, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  padding: 0 24px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-link img {
  height: 38px;
  width: auto;
}

.logo-link span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* ===== Navigation ===== */
nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--white);
  background: var(--accent-light);
  text-decoration: none;
}

nav a.active {
  color: var(--accent);
}

/* ===== Language Switcher ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--border-card);
}

.lang-switcher button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-switcher button:hover {
  color: var(--text-primary);
}

.lang-switcher button.active {
  background: var(--accent);
  color: var(--white);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
}

.hero img {
  height: 80px;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 24px rgba(124, 58, 237, 0.4));
}

.hero h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Content Card ===== */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.content-card:hover {
  border-color: rgba(180, 100, 255, 0.35);
}

/* ===== Feature Grid (Home) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover { border-color: rgba(180, 100, 255, 0.4); }

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

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

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== Contact Form ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(21, 16, 37, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
  text-decoration: none;
  color: var(--white);
}

/* ===== Legal Text ===== */
.legal-text h2 {
  padding-top: 8px;
  border-top: 1px solid var(--border-card);
}

.legal-text h2:first-child {
  border-top: none;
  padding-top: 0;
}

.legal-text ul, .legal-text ol {
  padding-left: 24px;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-text li {
  margin-bottom: 8px;
  line-height: 1.6;
}

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

.effective-date {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-light);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  margin-top: 60px;
  border-top: 1px solid var(--border-card);
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 8px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  nav a {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .lang-switcher {
    margin-left: 0;
  }

  .hero h1 { font-size: 2rem; }
  .hero { padding: 50px 16px 40px; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .content-card { padding: 24px; }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.content-card { animation: fadeInUp 0.5s ease forwards; }

/* ===== Print ===== */
@media print {
  body::before { display: none; }
  .site-header, .lang-switcher, .site-footer { display: none; }
  body { background: #fff; color: #333; }
  .content-card { border: 1px solid #ddd; box-shadow: none; }
  h1, h2, h3, h4 { color: #111; }
  p, li { color: #444; }
}
