/* ═══════════════════════════════════════════════════════════════════════════
   RPR Daily Report — Landing Page Styles
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --navy: #1e2a3a;
  --navy-light: #2a3f57;
  --navy-dark: #141d29;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --white: #ffffff;
  --light-gray: #f0f2f5;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --radius: 10px;
  --radius-lg: 16px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img, svg { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ── Container ─────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── Navigation ────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(30, 42, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav-logo svg { flex-shrink: 0; }

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

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 140px 24px 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 0 0 420px;
}

/* App Mockup */
.app-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s;
}

.app-mockup:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0.5deg);
}

.mockup-bar {
  background: #e5e7eb;
  padding: 10px 14px;
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.dot:first-child { background: #f87171; }
.dot:nth-child(2) { background: #fbbf24; }
.dot:nth-child(3) { background: #34d399; }

.mockup-body {
  padding: 20px;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mockup-title-block {
  width: 140px;
  height: 20px;
  background: #e5e7eb;
  border-radius: 4px;
}

.mockup-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
}

.mockup-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.tab {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.tab.active {
  background: var(--navy);
  color: var(--white);
}

.mockup-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mockup-field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  width: 80px;
  height: 10px;
  background: #e5e7eb;
  border-radius: 3px;
}

.field-value {
  width: 100%;
  height: 32px;
  background: #f3f4f6;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.field-value.short { width: 60%; }

.mockup-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  width: fit-content;
}

.mockup-ai-btn svg { display: inline; }

/* ── Features ──────────────────────────────────────────────────────────── */

.features {
  background: var(--light-gray);
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 52px;
  height: 52px;
  color: var(--navy);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── How It Works ──────────────────────────────────────────────────────── */

.how-it-works {
  padding: 100px 0;
  background: var(--white);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.step {
  flex: 0 0 280px;
  text-align: center;
  padding: 0 20px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: linear-gradient(90deg, #d1d5db, var(--accent), #d1d5db);
  margin-top: 28px;
  border-radius: 2px;
}

/* ── Teams ─────────────────────────────────────────────────────────────── */

.teams {
  padding: 100px 0;
  background: linear-gradient(180deg, #f6f8fb 0%, var(--light-gray) 100%);
}

.teams-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.teams-text {
  flex: 1;
}

.teams-text h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.teams-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.teams-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teams-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.teams-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.teams-list li strong { color: var(--navy); }

.teams-visual {
  flex: 0 0 380px;
}

/* Org Diagram */
.org-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.org-node {
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.org-top {
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
}

.org-branches {
  display: flex;
  gap: 32px;
  margin-top: 0;
}

.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-line {
  width: 2px;
  height: 28px;
  background: #d1d5db;
}

.org-mid {
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 12px;
}

.org-people {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.person {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.person.owner { background: rgba(245,158,11,0.15); color: #b45309; }
.person.admin { background: rgba(30,42,58,0.1); color: var(--navy); }
.person.inspector { background: rgba(52,211,153,0.15); color: #047857; }

/* ── CTA Section ───────────────────────────────────────────────────────── */

.cta-section {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 100px 0;
}

.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-inner > p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  margin-bottom: 32px;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto 20px;
}

.cta-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.cta-form input:focus {
  border-color: var(--accent);
}

.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.cta-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.footer {
  background: var(--navy-dark);
  padding: 32px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

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

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ── Animations ────────────────────────────────────────────────────────── */

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

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

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-visual { flex: 0 0 340px; }

  .teams-visual { flex: 0 0 320px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(30, 42, 58, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

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

  .nav-cta {
    width: fit-content;
    margin-top: 4px;
  }

  /* Hamburger animation */
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .hero-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }

  .hero-actions { justify-content: center; }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .app-mockup {
    transform: none;
  }

  .app-mockup:hover { transform: none; }

  .features { padding: 72px 0; }

  .features-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .how-it-works { padding: 72px 0; }

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

  .step { flex: none; width: 100%; max-width: 400px; }

  .step-connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, #d1d5db, var(--accent), #d1d5db);
    margin: 0;
  }

  .teams { padding: 72px 0; }

  .teams-inner { flex-direction: column; gap: 40px; }

  .teams-visual {
    flex: none;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .cta-section { padding: 72px 0; }

  .cta-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }

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

  .btn { width: 100%; }

  .org-branches { flex-direction: column; gap: 16px; }
}
