:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  line-height: 1.6;
  font-weight: 400;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --fg: #0f172a;
  --fg-muted: #475569;
  --muted: #64748b;
  --primary: #1e40af;
  --primary-hover: #1e3a8a;
  --primary-light: #3b82f6;
  --card: #ffffff;
  --stroke: #e2e8f0;
  --badge: #dbeafe;
  --success: #10b981;
}

/* Otimização: Preload crítico */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--fg);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  margin: 0 0 1rem;
  color: var(--fg-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  width: 100%;
}

/* Navigation */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--stroke);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  color: var(--fg-muted);
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  padding: clamp(4rem, 10vw, 6rem) 0;
  margin-bottom: 0;
}

.hero__content {
  max-width: 800px;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #e2e8f0;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  padding: clamp(3rem, 8vw, 4rem) 0;
}

.page-header h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.page-header__subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn.disabled {
  background: var(--stroke);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section__header {
  max-width: 800px;
  margin-bottom: 3rem;
  text-align: center;
}

.section__header h2 {
  margin-bottom: 1rem;
}

.section__lead {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  margin: 0 0 0.75rem;
  display: block;
}

/* Products Preview */
.products-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-card.coming-soon {
  opacity: 0.7;
}

.product-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.product-card h3 {
  margin-bottom: 0.75rem;
}

.product-card p {
  margin-bottom: 1.5rem;
  color: var(--fg-muted);
}

.product-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.product-link:hover {
  color: var(--primary-hover);
}

.product-link.disabled {
  color: var(--muted);
  cursor: not-allowed;
}

/* Products Grid */
.products-grid {
  display: grid;
  gap: 2rem;
}

.product-card-large {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1.25rem;
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.product-card-large.coming-soon {
  opacity: 0.7;
}

.product-card__header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.product-card__icon {
  font-size: 4rem;
  flex-shrink: 0;
}

.product-tag {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--fg-muted);
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-badge {
  padding: 0.5rem 1rem;
  background: var(--badge);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: var(--card);
}

.feature-item h3 {
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.feature-item p {
  color: var(--fg-muted);
  margin: 0;
}

/* Highlight Grid */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.highlight-grid article {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.highlight-grid article h3 {
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.highlight-grid article p {
  color: var(--fg-muted);
  margin: 0;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: inline-block;
  font-weight: 600;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--fg-muted);
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.about-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

.about-card h3 {
  margin-bottom: 1.5rem;
}

dl {
  margin: 0;
}

dl div {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--stroke);
}

dl div:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

dd {
  margin: 0;
  font-weight: 600;
  color: var(--fg);
  font-size: 1rem;
}

/* Activities */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.activity-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.activity-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-family: 'Courier New', monospace;
}

.activity-card p {
  margin: 0;
  color: var(--fg-muted);
}

/* Location */
.location-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.location-card h3 {
  margin-bottom: 1rem;
}

.location-card p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.muted {
  font-size: 0.9rem;
  color: var(--muted);
}

address {
  font-style: normal;
}

/* Privacy Policy Styles */
.privacy-content {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-content article {
  margin-bottom: 3rem;
}

.privacy-content article:last-child {
  margin-bottom: 0;
}

.privacy-content h2 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.privacy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.privacy-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
  list-style-type: disc;
}

.privacy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.privacy-content strong {
  color: var(--fg);
  font-weight: 600;
}

.privacy-content time {
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-card h2 {
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-item p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-item a {
  color: var(--primary);
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-cta {
  margin-top: 2rem;
}

/* Product Hero */
.product-hero {
  max-width: 900px;
  margin: 0 auto;
}

.product-hero__content h2 {
  margin-bottom: 1.5rem;
}

.product-hero__content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--fg-muted);
}

/* Stack List */
.stack-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stack-item {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: var(--card);
  text-align: center;
  font-weight: 600;
  color: var(--fg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
  background: var(--fg);
  color: #e2e8f0;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__section h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer__section p {
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer__section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__section ul li {
  margin-bottom: 0.5rem;
}

.footer__section ul li a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer__section ul li a:hover {
  color: #ffffff;
}

.footer__section a {
  color: var(--primary-light);
  font-weight: 600;
}

.footer__section a:hover {
  text-decoration: underline;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer__bottom p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-card {
    position: static;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Otimização: Melhorias de performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Otimização: Contraste melhorado para acessibilidade */
@media (prefers-contrast: high) {
  :root {
    --stroke: #94a3b8;
    --fg-muted: #334155;
  }
}
