@import "tailwindcss";

@theme {
  /* === PALETA CORPORATIVA AMD-TOPOGRAFIA, LDA. === */
  --color-brand-blue: #06458F;        /* AZUL CORPORATIVO - Primary */
  --color-brand-navy: #06458F;        /* AZUL ESCURO - Dark Surfaces */
  --color-brand-green: #8BCB4A;       /* VERDE CORPORATIVO - Accent */
  --color-brand-graphite: #5D6267;    /* CINZA GRAFITE - Body Text */
  --color-brand-light: #F4F6F8;       /* CINZA CLARO - Surface */
  --color-brand-white: #FFFFFF;       /* Branco - Base */

  /* === DERIVAÇÕES PARA UI === */
  --color-brand-blue-hover: #053A78;  /* Hover do azul primário */
  --color-brand-blue-soft: rgba(6, 69, 143, 0.08);
  --color-brand-navy-deep: #052C56;   /* Hover do azul escuro */
  --color-brand-blue-bright: #0A529F; /* Azul luminoso para hovers */
  --color-brand-accent-light: #A2DE68;/* Verde luminoso (detalhes) */
  --color-brand-slate: #A9B8C9;       /* Azul-cinza claro (texto muted sobre dark) */
  --color-brand-surface: #F4F6F8;     /* Alias para light */

  /* === TIPOGRAFIA === */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* === BORDER RADIUS === */
  --radius-lg: 0.625rem;   /* 10px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.25rem;   /* 20px */
  --radius-3xl: 1.75rem;   /* 28px */
}

@layer base {
  body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1E293B;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  }

  button, input, select, textarea {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  }
}

/* Glassmorphism Utility */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 69, 143, 0.10);
}

/* Soft Premium Shadow */
.soft-shadow {
  box-shadow: 0 20px 50px -12px rgba(6, 69, 143, 0.12);
}

/* Smooth Transitions */
.smooth-transition {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fundo Cartográfico Subtil (Linhas de Nível Matemáticas) */
.contour-bg {
  background-color: var(--color-brand-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M0 20 Q 20 15, 40 35 T 80 30 M0 50 Q 30 65, 50 45 T 80 60 M0 5 Q 40 0, 40 40 T 80 75' fill='none' stroke='%2306458F' stroke-width='0.4' stroke-opacity='0.05'/%3E%3C/svg%3E");
}

/* Assinatura Visual AMD — Rede Geométrica de Pontos e Linhas (Georreferenciação) */
.amd-geo-grid {
  background-image:
    radial-gradient(circle, rgba(6, 69, 143, 0.35) 1.2px, transparent 1.2px),
    linear-gradient(rgba(6, 69, 143, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 69, 143, 0.05) 1px, transparent 1px);
  background-size: 22px 22px, 88px 88px, 88px 88px;
}

.amd-geo-grid--dark {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.2px, transparent 1.2px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px, 88px 88px, 88px 88px;
}

/* Cantos de Precisão (Target Lock) */
.target-lock {
  position: relative;
  transition: all 0.3s ease;
}
.target-lock::before, .target-lock::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.target-lock::before {
  top: 8px;
  left: 8px;
  border-top: 1px solid var(--color-brand-green);
  border-left: 1px solid var(--color-brand-green);
}
.target-lock::after {
  bottom: 8px;
  right: 8px;
  border-bottom: 1px solid var(--color-brand-green);
  border-right: 1px solid var(--color-brand-green);
}
.target-lock:hover::before, .target-lock:hover::after {
  opacity: 1;
}

/* Global Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Page Load Fade-in */
.fade-in-load {
  animation: fadeInLoad 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInLoad {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Premium Hover Transitions for Cards/Buttons */
.hover-premium {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-premium:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 20px 40px -15px rgba(6, 69, 143, 0.18);
}
