/* ===== Meridian Labs LLC — Global Styles ===== */

:root {
  --black: #0a0a0a;
  --black-light: #141414;
  --black-card: #1a1a1a;
  --gold: #c9a96e;
  --gold-light: #dfc08a;
  --gold-dark: #a8893e;
  --white: #f5f5f5;
  --white-muted: #b0b0b0;
  --blue-accent: #5b7fa6;
  --blue-accent-light: #7a9bc4;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold-light);
}

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

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
  color: var(--white-muted);
  margin-bottom: 1rem;
}

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

section {
  padding: 100px 0;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: background-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-brand span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--white-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(201, 169, 110, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 32px;
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(201, 169, 110, 0.2);
}

.hero h1 {
  margin-bottom: 8px;
}

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

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ===== About Section ===== */
.about {
  background-color: var(--black-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-values {
  display: grid;
  gap: 20px;
}

.value-item {
  background-color: var(--black-card);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.value-item:hover {
  border-color: rgba(201, 169, 110, 0.3);
  transform: translateY(-2px);
}

.value-item h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.value-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background-color: var(--black-card);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: rgba(201, 169, 110, 0.35);
  transform: translateY(-4px);
}

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

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== Lumia Showcase Section ===== */
.lumia-showcase {
  background-color: var(--black);
}

.lumia-showcase .gold {
  color: var(--gold);
}

.lumia-hero-block {
  max-width: 800px;
  margin: 0 auto;
}

.lumia-description > p {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.8;
  margin-bottom: 40px;
}

.lumia-highlights {
  display: grid;
  gap: 24px;
}

.lumia-highlight {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background-color: var(--black-card);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.lumia-highlight:hover {
  border-color: rgba(201, 169, 110, 0.3);
  transform: translateX(4px);
}

.highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.lumia-highlight strong {
  display: block;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 6px;
}

.lumia-highlight p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== App Showcase / Vision Section ===== */
.vision {
  background-color: var(--black-light);
}

.vision-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.vision-content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.vision-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

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

.vision-feature .feature-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.vision-feature span:last-child {
  font-size: 0.9rem;
  color: var(--white-muted);
}

/* ===== Contact Section ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.contact-info p {
  margin-bottom: 28px;
}

.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 1px;
}

.contact-item span {
  color: var(--white-muted);
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white-muted);
}

.form-group input,
.form-group textarea {
  background-color: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

/* ===== Footer ===== */
.footer {
  background-color: var(--black-light);
  border-top: 1px solid rgba(201, 169, 110, 0.1);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img {
  width: 36px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: var(--white-muted);
  font-size: 0.88rem;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--white-muted);
  margin-bottom: 0;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: var(--white-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--gold);
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  color: var(--white-muted);
  line-height: 1.8;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

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

/* ===== Support Page ===== */
.support-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.support-card {
  background-color: var(--black-card);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.support-card:hover {
  border-color: rgba(201, 169, 110, 0.3);
}

.support-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.support-card h3 {
  margin-bottom: 12px;
}

.support-card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.support-faq {
  margin-top: 80px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--white);
}

.faq-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .hero-logo {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
