/* ==========================================
   MIRAE FUTURA - Design System & CSS
   Style: Italian Space Age Retro 70s / Orange & Chrome
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syncopate:wght@400;700&display=swap');

:root {
  /* Color Palette */
  --retro-orange: #EA580C;
  --retro-orange-glow: rgba(234, 88, 12, 0.4);
  --retro-orange-light: #FB923C;
  --chrome-base: #E2E8F0;
  --chrome-highlight: #FFFFFF;
  --chrome-shadow: #94A3B8;
  --cosmic-violet: #4C1D95;
  --cosmic-violet-dark: #2E1065;
  --space-black: #09090B;
  --space-dark-gray: #18181B;
  --space-card-bg: rgba(24, 24, 27, 0.75);
  --space-border: rgba(226, 232, 240, 0.15);

  /* Fonts */
  --font-heading: 'Syncopate', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--space-black);
  color: var(--chrome-base);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(76, 29, 149, 0.25) 0%, var(--space-black) 70%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: #fff;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--chrome-base);
}

p {
  color: #A1A1AA;
  margin-bottom: 1rem;
}

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

/* Chrome Gradient Text & Elements */
.chrome-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 40%, #94A3B8 70%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.orange-text {
  color: var(--retro-orange);
  text-shadow: 0 0 15px var(--retro-orange-glow);
}

/* Background Retro Circles & Orbs */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.retro-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floatOrb 20s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.circle-orange-1 {
  width: 500px;
  height: 500px;
  background: var(--retro-orange);
  top: -100px;
  right: -100px;
}

.circle-violet-1 {
  width: 600px;
  height: 600px;
  background: var(--cosmic-violet);
  bottom: 10%;
  left: -200px;
  animation-delay: -5s;
}

.circle-orange-2 {
  width: 350px;
  height: 350px;
  background: var(--retro-orange-light);
  bottom: -50px;
  right: 15%;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Chrome Framing Utility */
.chrome-frame {
  position: relative;
  background: var(--space-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--space-border);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
              inset 0 1px 1px rgba(255, 255, 255, 0.3),
              inset 0 -1px 1px rgba(0, 0, 0, 0.5);
  transition: var(--transition-normal);
  overflow: hidden;
}

.chrome-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  pointer-events: none;
}

.chrome-frame:hover {
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 25px 60px rgba(234, 88, 12, 0.25),
              inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
}

/* Retro Space Age Oval / Arch Shapes */
.space-arch {
  border-radius: 120px 120px 24px 24px;
}

.space-pill {
  border-radius: 9999px;
}

/* Buttons */
.btn-mirae {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--retro-orange) 0%, #C2410C 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 30px var(--retro-orange-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--retro-orange-light) 0%, var(--retro-orange) 100%);
  box-shadow: 0 15px 40px rgba(234, 88, 12, 0.6);
  transform: scale(1.03);
}

.btn-chrome {
  background: rgba(226, 232, 240, 0.08);
  color: var(--chrome-highlight);
  border: 1px solid rgba(226, 232, 240, 0.3);
  backdrop-filter: blur(8px);
}

.btn-chrome:hover {
  background: rgba(256, 256, 256, 0.2);
  border-color: #FFFFFF;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  transform: scale(1.03);
}

/* Header Navigation */
header.mirae-header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1200px);
  z-index: 100;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.2);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.logo-orb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--retro-orange), var(--cosmic-violet));
  border: 2px solid var(--chrome-base);
  box-shadow: 0 0 12px var(--retro-orange-glow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #D4D4D8;
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--retro-orange-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--retro-orange);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Layout Containers */
.container {
  width: min(90%, 1200px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

main {
  flex: 1;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-container {
  width: 100%;
  max-width: 480px;
  height: 520px;
  border-radius: 240px 240px 40px 40px;
  overflow: hidden;
  border: 2px solid var(--chrome-shadow);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8),
              0 0 40px var(--retro-orange-glow);
  position: relative;
}

.hero-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.hero-img-container:hover img {
  transform: scale(1.08);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.4);
  color: var(--retro-orange-light);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

/* Product Cards */
.product-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.product-image {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  background: #121215;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(9, 9, 11, 0.85);
  border: 1px solid var(--retro-orange);
  color: var(--retro-orange-light);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-family: var(--font-heading);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.product-desc {
  font-size: 0.9rem;
  color: #9CA3AF;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.1);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--retro-orange-light);
}

/* Filter Controls */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.6rem;
  border-radius: 9999px;
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid var(--space-border);
  color: #A1A1AA;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--retro-orange);
  box-shadow: 0 0 20px var(--retro-orange-glow);
}

/* Testimonials / Feature Box */
.testimonial-card {
  padding: 2.5rem;
  position: relative;
}

.quote-icon {
  font-size: 3rem;
  color: var(--retro-orange);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  color: #E4E4E7;
  margin-bottom: 1.5rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--retro-orange);
  object-fit: cover;
}

.author-name {
  font-weight: 700;
  color: #fff;
}

.author-role {
  font-size: 0.8rem;
  color: #71717A;
}

/* Form Styles */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-control {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid var(--space-border);
  border-radius: 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--retro-orange);
  box-shadow: 0 0 20px var(--retro-orange-glow);
}

.form-label {
  position: absolute;
  left: 1.5rem;
  top: 1.2rem;
  color: #71717A;
  pointer-events: none;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -0.6rem;
  left: 1rem;
  font-size: 0.75rem;
  padding: 0 0.5rem;
  background: var(--space-black);
  color: var(--retro-orange-light);
  border-radius: 4px;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Space Age Radar Map Simulation */
.radar-map-container {
  height: 450px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at center, #1E1B4B 0%, #09090B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--space-border);
}

.radar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(234, 88, 12, 0.4) 360deg);
  animation: rotateRadar 6s linear infinite;
  pointer-events: none;
}

@keyframes rotateRadar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-grid {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px dashed rgba(226, 232, 240, 0.2);
  border-radius: 50%;
}

.radar-grid::before {
  content: '';
  position: absolute;
  top: 25%; left: 25%;
  width: 50%; height: 50%;
  border: 1px dashed rgba(226, 232, 240, 0.2);
  border-radius: 50%;
}

.radar-pin {
  position: absolute;
  top: 48%;
  left: 52%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.pin-point {
  width: 18px;
  height: 18px;
  background: var(--retro-orange);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--retro-orange);
  animation: pulsePin 2s infinite alternate;
}

@keyframes pulsePin {
  from { transform: scale(0.9); box-shadow: 0 0 10px var(--retro-orange); }
  to { transform: scale(1.3); box-shadow: 0 0 30px var(--retro-orange); }
}

.pin-label {
  margin-top: 0.5rem;
  background: rgba(9, 9, 11, 0.9);
  border: 1px solid var(--retro-orange);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: #fff;
}

/* Legal Pages Styling */
.legal-content {
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--retro-orange);
  padding-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--retro-orange-light);
}

.legal-content p, .legal-content ul {
  color: #D4D4D8;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* Scroll Reveal Initial States */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* GDPR Cookie Consent Modal */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: min(90%, 650px);
  z-index: 1000;
  padding: 2rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* Footer */
footer.mirae-footer {
  background: rgba(9, 9, 11, 0.95);
  border-top: 1px solid var(--space-border);
  padding: 4rem 0 2rem 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--retro-orange-light);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: #A1A1AA;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #71717A;
}

/* Responsive Rules */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(9, 9, 11, 0.95);
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 0.5rem;
    border: 1px solid var(--space-border);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
}
