/* Sigma Soft Trader - Estilos Principais */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap");

/* CSS Variables */
:root {
  --bg-primary: #050608;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #0d0d0d;
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #6a6a6a;
  --gold-primary: #d4af37;
  --gold-light: #f0d77a;
  --gold-dark: #b8960a;
  --border-color: #222222;
  --success: #22c55e;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  height: 732px;
  background-color: #08080d;
  border-bottom: 1px solid #1e1e24;
  padding-top: 226px;
  text-align: center;
}

.logo {
  max-width: 200px;
  margin: 0 auto;
  display: block;
}

/* Sections */
section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Paragraphs */
p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* Lists */
ul,
ol {
  margin: 16px 0;
  padding-left: 24px;
}

li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: linear-gradient(180deg, #1c1c1c 0%, #151515 100%);
}

th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

tbody tr:hover {
  background-color: rgba(212, 175, 55, 0.05);
}

.table-highlight {
  font-weight: 600;
  color: var(--gold-primary);
}

.table-positive {
  color: var(--success);
  font-weight: 500;
}

/* Robot Performance Cards */
.robot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.robot-card-header {
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 100%
  );
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.robot-card-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--gold-primary);
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.08) 0%,
    rgba(212, 175, 55, 0.02) 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.highlight-box p {
  margin: 0;
  color: var(--text-primary);
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.info-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
}

.info-item h5 {
  color: var(--gold-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.robot-thumb-link {
  display: block;
  margin-top: 12px;
}

.robot-thumb {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
}

.robot-thumb-link:focus-visible .robot-thumb {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

.robot-thumb-link:hover .robot-thumb {
  border-color: rgba(212, 175, 55, 0.45);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 9999;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: min(960px, 92vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
}

@media (max-width: 480px) {
  .lightbox {
    padding: 16px;
  }
}

/* DRE Section */
.dre-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.dre-title {
  color: var(--gold-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.dre-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dre-item:last-child {
  border-bottom: none;
}

.dre-label {
  color: var(--text-secondary);
}

.dre-value {
  color: var(--text-primary);
  font-weight: 500;
}

.dre-total {
  background: rgba(212, 175, 55, 0.1);
  margin: 12px -24px;
  padding: 12px 24px;
}

.dre-total .dre-label,
.dre-total .dre-value {
  color: var(--gold-primary);
  font-weight: 600;
}

/* Capital Structure */
.capital-section {
  margin: 24px 0;
}

.capital-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  gap: 20px;
}

.capital-item:last-child {
  border-bottom: none;
}

.capital-label {
  color: var(--text-secondary);
  flex: 1;
}

.capital-value {
  color: var(--gold-primary);
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
  min-width: 120px;
}

.capital-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Operations Image */
.operations-image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin: 24px 0;
}

/* Contact Section */
.contact-section {
  text-align: center;
  padding: 40px 0;
}

.contact-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 24px 0;
}

.contact-person {
  text-align: center;
}

.contact-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-phone:hover {
  color: var(--gold-light);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

footer a,
footer a:visited {
  color: var(--gold-primary);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--gold-light);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  header {
    padding: 40px 0 30px;
  }

  .logo {
    max-width: 260px;
  }

  section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: column;
    gap: 24px;
  }

  th,
  td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .dre-item {
    flex-direction: column;
    gap: 4px;
  }

  .capital-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Selection */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--text-primary);
}

/* Assets Link */
.assets-link {
  margin: 16px 0;
}

.assets-link a {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
  transition:
    color 0.2s,
    text-decoration 0.2s;
}

.assets-link a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}
