/* ==========================================================================
   DESIGN SYSTEM: DIAMOND (LINEAR/VERCEL ENTERPRISE AESTHETIC)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 1. TOKENS (CSS Variables) */
:root {
  /* Colors - Pure Dark Mode */
  --bg-main: #000000;
  --bg-card: #0A0A0A;
  --bg-input: #0F0F0F;
  
  --text-main: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-tertiary: #666666;
  
  --border-subtle: #141414;
  --border-light: #1F1F1F;
  --border-input: #262626;
  
  --accent-blue: #3B82F6;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Layout */
  --container-width: 1280px;
  --radius-card: 16px;
  --radius-input: 8px;
  --radius-pill: 32px;
}

/* Theme Light Overrides */
.theme-light {
  --bg-main: #FFFFFF;
  --bg-card: #F9FAFB;
  --bg-input: #F3F4F6;
  
  --text-main: #09090B;
  --text-secondary: #52525B;
  --text-tertiary: #A1A1AA;
  
  --border-subtle: #F4F4F5;
  --border-light: #E4E4E7;
  --border-input: #D4D4D8;
  
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle Grid Background (Vercel style) */
.bg-grid {
  background-size: 100px 100px;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-position: center top;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text-main);
  margin: 0;
  text-align: left;
}

/* Massive Headline */
h1 {
  font-size: 4rem; /* 64px mobile */
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 2rem; /* 32px mobile */
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  h1 { 
    font-size: 7.5rem; /* 120px desktop */ 
    line-height: 0.95;
    letter-spacing: -0.05em;
  }
  h3 {
    font-size: 2.5rem; /* 40px desktop */
  }
}

.body-large {
  font-size: 1.25rem; /* 20px */
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .body-large { font-size: 1.375rem; /* 22px */ }
}

.body-regular {
  font-size: 1.0625rem; /* 17px */
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Technical Typography */
.eyebrow, .badge, .form-label, .section-number {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow {
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  color: var(--text-tertiary);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem; /* 12px */
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.section-number {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
  display: block;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 3rem; }
}

/* Section Spacing */
.section {
  padding: 6rem 0;
}

@media (min-width: 1024px) {
  .section { padding: 10rem 0; }
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2, .grid-3 { grid-template-columns: 1fr; }

@media (min-width: 1024px) {
  .grid-2 { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;
  }
  .grid-3 { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
  }
}

.divider-horizontal {
  height: 1px;
  width: 100%;
  background-color: var(--border-light);
}

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* Hero Section */
.hero-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-container {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center;
}

.hero-logo {
  height: 32px; 
  margin-bottom: 1.5rem; 
  width: auto;
}

.hero-title {
  margin-bottom: 1rem; 
  max-width: 1000px; 
  font-size: 1.75rem; 
  line-height: 1.2; 
  letter-spacing: -0.02em; 
  text-align: center;
}

.hero-subtitle {
  max-width: 750px; 
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.hero-btn-group {
  justify-content: center; 
  flex-direction: row; 
  margin-top: 0.5rem;
  width: 100%;
}

.hero-btn {
  padding: 1rem 2rem; 
  font-size: 1.125rem; 
  font-weight: 600;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 9rem;
    padding-bottom: 8rem;
  }
  .hero-logo {
    height: 48px;
    margin-bottom: 2rem;
  }
  .hero-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
  .hero-subtitle {
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
  }
  .hero-btn-group {
    margin-top: 1rem;
    width: auto;
  }
  .hero-btn {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    width: auto;
  }
}

/* Floating Navigation */
.floating-nav {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 3rem);
  max-width: 1000px;
  background-color: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 1rem 2rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.floating-nav-logo {
  height: 24px;
  width: auto;
}

.floating-nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .floating-nav {
    display: flex;
  }
  .floating-nav-links {
    display: flex;
  }
}

.floating-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  text-decoration: none;
}

.floating-nav-link:hover {
  color: var(--text-main);
}

/* Buttons (Linear Style Pill) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-main);
  border: 1px solid var(--text-main);
}

.btn-primary:hover {
  background-color: #E5E5E5;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background-color: var(--bg-card);
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .btn-group {
    flex-direction: row;
    align-items: center;
  }
}

/* Pillar Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-input);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Subtle gradient glow inside card */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
}

@media (min-width: 1024px) {
  .card-title { font-size: 1.75rem; }
}

.card-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.card-list {
  list-style: none;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.card-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.card-list li:last-child {
  margin-bottom: 0;
}

/* Custom bullet */
.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-tertiary);
}

/* Massive Numbers */
.metric-container {
  border-left: 1px solid var(--border-light);
  padding-left: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .metric-container {
    padding-left: 3rem;
    margin-bottom: 0;
  }
}

.metric-number {
  font-size: 5rem;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

@media (min-width: 1024px) {
  .metric-number { font-size: 9rem; }
}

.metric-context {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 300px;
}

/* Institutional Cards */
.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.person-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--bg-input);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1) brightness(0.8);
}

.person-name {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.person-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* Form (Linear Style) */
.form-container {
  max-width: 600px;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.form-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  padding: 1rem 1.25rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

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

/* Institutional Table (Diagnóstico) */
.inst-table {
  width: 100%;
  max-width: 960px;
  margin-top: 3rem;
  margin-bottom: 0;
  border-top: 1px solid #EAEAEA;
}

.inst-table-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 28px 16px;
  border-bottom: 1px solid #EAEAEA;
  transition: background-color 0.2s ease;
  gap: 12px;
}

.inst-table-mobile-header {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

@media (min-width: 768px) {
  .inst-table-row {
    grid-template-columns: 80px 180px 1fr;
    padding: 32px 16px;
    gap: 32px;
  }
  .inst-table-mobile-header {
    display: contents;
  }
}

.inst-table-row:hover {
  background-color: #FAFAFA;
}

.inst-table-col-1 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: #777777;
  line-height: 1.4;
}

.inst-table-col-2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #0A0A0A;
  text-transform: uppercase;
  line-height: 1.4;
}

.inst-table-col-3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  color: #3B3B3B;
}

.diagnostico-footer {
  width: 100%;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.diagnostico-footer-line {
  width: 100%;
  max-width: 800px;
  height: 2px;
  background-color: #0A0A0A;
  margin-bottom: 48px;
}

.diagnostico-footer-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  color: #0A0A0A;
}

/* ==========================================================================
   DIAGNÓSTICO 2-COL LAYOUT
   ========================================================================== */
.diagnostico-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.diagnostico-col-left h2,
.diagnostico-col-left p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .diagnostico-col-left h2,
  .diagnostico-col-left p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .diagnostico-layout {
    flex-direction: row;
    align-items: stretch;
    gap: 160px;
  }

  .diagnostico-col-left {
    width: 35%;
    flex-shrink: 0;
    padding-right: 2rem;
  }

  .diagnostico-col-right {
    width: calc(65% - 160px);
    flex-shrink: 0;
    flex-grow: 1;
  }

  .diagnostico-sticky {
    position: sticky;
    top: 140px;
  }

  /* Remove table top margin to align with left col text */
  .diagnostico-col-right .inst-table {
    margin-top: 0;
  }
}

.text-diamond-blue {
  color: #1D4ED8 !important;
}

/* Fit List (Para Quem É / Não É) */
.fit-list {
  list-style: none;
  margin-top: 2rem;
}

.fit-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.fit-list li:last-child {
  margin-bottom: 0;
}

.fit-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 1rem;
  margin-top: 2px;
}

.fit-icon.check {
  color: #10B981; /* subtle green */
}

.fit-icon.cross {
  color: #EF4444; /* subtle red */
}

/* Timeline Processo */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--border-input);
  margin-bottom: 1rem;
  line-height: 1;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .timeline {
    flex-direction: row;
    gap: 2rem;
  }
  
  .timeline-step {
    flex: 1;
  }

  /* Connecting line */
  .timeline::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 4rem;
    right: 4rem;
    height: 1px;
    background-color: var(--border-light);
    z-index: 0;
  }
  
  .timeline-number {
    position: relative;
    z-index: 1;
    background-color: var(--bg-main);
    display: inline-block;
    padding-right: 1rem;
  }
}

/* Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.highlight-blue {
  background: linear-gradient(to right, #60A5FA, var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(59, 130, 246, 0.3);
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   6. MODAL APLICAÇÃO
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background-color: var(--bg-main);
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.25rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 2rem;
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-track {
  background: var(--bg-main);
}
.modal-content::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--border-input);
}
