/* ==========================================================================
   MetricsPulse Corporate Site
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #FF7F50;
  --color-primary-hover: #E8694A;
  --color-primary-gradient-end: #4B0082;
  --color-accent: #10b981;

  --color-bg: #0D0D1A;
  --color-bg-elevated: #12121F;
  --color-bg-card: #1a1a2e;

  --color-border: #2a2a3e;

  --color-text: #e0e0e0;
  --color-text-muted: #808080;
  --color-text-bright: #ffffff;

  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  color: var(--color-text-bright);
  font-weight: 700;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  background:
    linear-gradient(180deg, rgba(13, 13, 26, 0.85) 0%, rgba(13, 13, 26, 0.95) 100%),
    url('/backgrounds/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-label {
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 127, 80, 0.1);
  border: 1px solid rgba(255, 127, 80, 0.3);
  border-radius: 9999px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

/* --------------------------------------------------------------------------
   6. Features Section
   -------------------------------------------------------------------------- */
.features {
  padding: 6rem 0;
  background: var(--color-bg-elevated);
}

.section-label {
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1rem;
}

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

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(255, 127, 80, 0.2), rgba(255, 127, 80, 0.1));
  border: 1px solid rgba(255, 127, 80, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card__desc {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. Roles Section
   -------------------------------------------------------------------------- */
.roles {
  padding: 6rem 0;
}

.roles .container { text-align: center; }

.role-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.role-tag {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. CTA Section
   -------------------------------------------------------------------------- */
.cta {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(255, 127, 80, 0.1), rgba(75, 0, 130, 0.05));
  border-top: 1px solid rgba(255, 127, 80, 0.2);
  border-bottom: 1px solid rgba(255, 127, 80, 0.2);
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

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

.footer__content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  color: var(--color-text-muted);
}

.footer__links a:hover {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 6rem 1.5rem 4rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta h2 { font-size: 2rem; }
  .footer__content { flex-direction: column; text-align: center; }
  .nav { padding: 1rem; }
  .container { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.875rem; }
  .hero-subtitle { font-size: 1rem; }
  .role-list { gap: 1rem; }
  .role-tag { padding: 0.5rem 1rem; font-size: 0.875rem; }
}

/* --------------------------------------------------------------------------
   11. Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 1rem 2rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-text-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
