/* ============================================
   Final Renamer Website - Design System
   ============================================ */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* CSS Custom Properties */
:root {
  /* Colors - Deep Blue Theme */
  --color-bg-primary: #0a1628;
  --color-bg-secondary: #0f2744;
  --color-bg-card: rgba(30, 58, 95, 0.6);
  --color-bg-card-hover: rgba(40, 75, 120, 0.7);

  --color-accent-primary: #4dabf7;
  --color-accent-secondary: #74c0fc;
  --color-accent-glow: rgba(77, 171, 247, 0.4);

  --color-text-primary: #ffffff;
  --color-text-secondary: #adb5bd;
  --color-text-muted: #6c757d;

  /* Gradients */
  --gradient-hero: linear-gradient(
    135deg,
    #0a1628 0%,
    #1e3a5f 50%,
    #0a1628 100%
  );
  --gradient-accent: linear-gradient(135deg, #4dabf7 0%, #74c0fc 100%);
  --gradient-card: linear-gradient(
    145deg,
    rgba(30, 58, 95, 0.8) 0%,
    rgba(15, 39, 68, 0.6) 100%
  );

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--color-accent-glow);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
h3 {
  font-size: clamp(1rem, 1.75vw, 1.25rem);
}

p {
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-lg),
    0 0 40px var(--color-accent-glow);
  color: var(--color-bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-accent-primary);
}

.btn-secondary:hover {
  background: var(--color-accent-primary);
  color: var(--color-bg-primary);
}

.btn-lg {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.95rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(77, 171, 247, 0.1);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: var(--space-xs) 0;
  background: rgba(10, 22, 40, 0.95);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-brand img {
  width: 40px;
  height: 40px;
}

.nav-brand span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-accent-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("assets/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.15;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    var(--color-accent-glow) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-text {
  animation: fadeInUp 0.8s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(77, 171, 247, 0.1);
  border: 1px solid var(--color-accent-primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-md);
}

.hero-title {
  margin-bottom: var(--space-md);
}

.hero-title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  max-width: 450px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-image img {
  width: 100%;
  max-width: 280px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  animation: float 6s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

/* Features Section */
.features {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-subtitle {
  color: var(--color-accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}

/* Cards 1-6 ocupam 2 colunas cada (3 por linha) */
.feature-card {
  grid-column: span 2;
}

/* Centraliza os últimos 2 cards: pulam 1 coluna no início */
.feature-card:nth-child(7) {
  grid-column: 2 / 4;
}

.feature-card:nth-child(8) {
  grid-column: 4 / 6;
}

.feature-card {
  position: relative;
  padding: var(--space-lg);
  background: var(--gradient-card);
  border: 1px solid rgba(77, 171, 247, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(77, 171, 247, 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(77, 171, 247, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.feature-title {
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.feature-description {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Responsive: em telas menores */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card,
  .feature-card:nth-child(7),
  .feature-card:nth-child(8) {
    grid-column: span 1;
  }
}

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

/* How It Works Section */
.how-it-works {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.step-card {
  position: relative;
  text-align: center;
  padding: var(--space-lg);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: var(--gradient-accent);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 2;
}

.step-title {
  margin-bottom: var(--space-xs);
}

.step-connector {
  position: absolute;
  top: 72px;
  left: calc(50% + 40px);
  width: calc(100% - 40px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-primary), transparent);
  z-index: 1;
}

.step-card:last-child .step-connector {
  display: none;
}

/* CTA Section */
.cta-section {
  padding: var(--space-2xl) 0;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    var(--color-accent-glow) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  margin-bottom: var(--space-sm);
}

.cta-description {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Footer */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--color-bg-secondary);
  border-top: 1px solid rgba(77, 171, 247, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-brand img {
  height: 48px;
}

.footer-text {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* Microsoft Store Badge */
.ms-store-badge {
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.ms-store-badge:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  color: var(--color-text-primary);
}

.ms-store-badge img {
  height: 96px;
  width: auto;
}

.ms-store-badge span {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.ms-store-badge strong {
  display: block;
  font-size: 1rem;
  color: var(--color-text-primary);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-fast);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto var(--space-lg);
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 300px;
    margin: 0 auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    max-width: 300px;
  }
}
