:root {
  --bg: #080F12;
  --bg-secondary: #0A111F;
  --bg-card: rgba(13, 31, 38, 0.65);
  --bg-card-hover: rgba(16, 42, 51, 0.85);
  --cyan: #00D4FF;
  --cyan-bright: #38BDF8;
  --cyan-glow: rgba(0, 212, 255, 0.25);
  --emerald: #34D399;
  --text-main: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(255, 255, 255, 0.1);
  --border-cyan: rgba(0, 212, 255, 0.2);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Effects */
.nx-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(8, 15, 18, 0) 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.nx-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Navigation */
.nx-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 15, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.nx-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nx-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.nx-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nx-nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nx-nav__link:hover,
.nx-nav__link.active {
  color: var(--text-main);
}

.nx-nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyan);
}

/* Dropdown Ferramentas */
.nx-dropdown {
  position: relative;
  display: inline-block;
}

.nx-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.nx-dropdown__content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  background: rgba(10, 17, 31, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 212, 255, 0.1);
  z-index: 10;
}

.nx-dropdown:hover .nx-dropdown__content,
.nx-dropdown:focus-within .nx-dropdown__content {
  display: block;
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nx-dropdown__item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
}

.nx-dropdown__item svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

/* Buttons */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.nx-btn--primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0099C8 100%);
  color: #04090C;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.nx-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.45);
  background: linear-gradient(135deg, #33E0FF 0%, #00A8DD 100%);
}

.nx-btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border);
}

.nx-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.nx-btn--outline-cyan {
  background: transparent;
  color: var(--cyan);
  border-color: var(--border-cyan);
}

.nx-btn--outline-cyan:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

/* Main Layout */
.nx-main {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* Hero Header Section */
.nx-page-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.nx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.nx-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.nx-title em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--cyan);
}

.nx-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
}

/* Tool Grid Section */
.nx-tool-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .nx-tool-grid {
    grid-template-columns: 1fr;
  }
}

/* Glass Card */
.nx-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.nx-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.nx-card__title svg {
  color: var(--cyan);
}

/* Form Controls */
.nx-form-group {
  margin-bottom: 1.5rem;
}

.nx-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.nx-input,
.nx-select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(6, 12, 20, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s ease;
}

.nx-input:focus,
.nx-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
  background: rgba(6, 12, 20, 0.95);
}

.nx-input::placeholder {
  color: var(--text-muted);
}

/* Color Presets */
.nx-color-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.nx-color-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nx-color-pill:hover,
.nx-color-pill.active {
  border-color: var(--cyan);
  color: var(--text-main);
  background: rgba(0, 212, 255, 0.1);
}

.nx-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* Preview Box */
.nx-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: rgba(6, 12, 20, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  min-height: 280px;
  position: relative;
}

.nx-qr-display {
  background: #FFFFFF;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nx-qr-display:hover {
  transform: scale(1.03);
}

.nx-qr-display svg,
.nx-qr-display canvas {
  display: block;
  max-width: 220px;
  height: auto;
}

.nx-actions-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.nx-actions-group .nx-btn {
  width: 100%;
}

/* Feature Showcase Grid */
.nx-features-sec {
  margin-top: 5rem;
}

.nx-features-sec__title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.nx-features-sec__title em {
  font-family: var(--font-serif);
  color: var(--cyan);
}

.nx-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 840px) {
  .nx-features-grid {
    grid-template-columns: 1fr;
  }
}

.nx-feature-card {
  background: rgba(13, 31, 38, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.nx-feature-card:hover {
  border-color: var(--border-cyan);
  background: rgba(13, 31, 38, 0.7);
  transform: translateY(-3px);
}

.nx-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.nx-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.nx-feature-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Footer */
.nx-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 12, 20, 0.95);
  padding: 3rem 1.5rem;
  margin-top: auto;
}

.nx-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.nx-footer__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.nx-footer__copy a {
  color: var(--cyan);
  text-decoration: none;
}

/* Toast Notification */
.nx-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(10, 17, 31, 0.95);
  border: 1px solid var(--cyan);
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nx-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
