/* ================================
   CSS Variables & Tokens
   ================================ */
:root {
  /* Brand Colors */
  --blue: #012BE1;
  --navy: #010413;
  --panel: #041F8D;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.55);
  
  /* Semantic Colors */
  --bg-primary: var(--navy);
  --bg-panel: var(--panel);
  --text-primary: var(--white);
  --text-secondary: var(--muted);
  --accent: var(--blue);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Typography Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  
  /* Effects */
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================
   Custom Font
   ================================ */
@font-face {
  font-family: 'Monologue';
  src: url('./assets/fonts/Monologue%20DEMO%20Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Monologue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ================================
   Layout Utilities
   ================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* ================================
   Header
   ================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(1, 4, 19, 0.6);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-bottom: 1px solid rgba(1, 43, 225, 0.1);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.header.scrolled {
  background: rgba(1, 4, 19, 0.85);
  border-bottom-color: rgba(1, 43, 225, 0.3);
  box-shadow: 0 4px 24px rgba(1, 43, 225, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.logo-area {
  display: flex;
  align-items: center;
  height: 40px;
}

.logo-img {
  height: 40px;
  max-height: 40px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo-tag {
  font-size: 0.625rem;
  color: var(--muted2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  padding: 6px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  border-radius: 20px;
  transition: all var(--transition-fast);
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.lang-btn.active {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(1, 43, 225, 0.4);
}

/* ================================
   Hero Section
   ================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(1, 43, 225, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(4, 31, 141, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, #000814 100%);
  z-index: -2;
}

.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--blue);
  top: -200px;
  left: -100px;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--panel);
  bottom: -150px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-orb {
    animation: none;
  }
}

.hero-watermark {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
}

.watermark-img {
  width: 600px;
  max-width: min(46vw, 600px);
  height: auto;
}

@media (max-width: 1024px) {
  .watermark-img {
    width: 400px;
    max-width: min(42vw, 400px);
  }
}

@media (max-width: 768px) {
  .hero-watermark {
    right: -20%;
    opacity: 0.02;
  }
  .watermark-img {
    width: 300px;
    max-width: min(38vw, 300px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--spacing-3xl) var(--spacing-lg);
}

.hero-main {
  max-width: 700px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, rgba(1, 43, 225, 0.2), rgba(4, 31, 141, 0.3));
  border: 1px solid rgba(1, 43, 225, 0.4);
  border-radius: 24px;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--white) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
  line-height: 1.5;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-sm);
  color: var(--muted2);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.trust-line .dot {
  opacity: 0.5;
}

.cta-group {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: 12px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(1, 43, 225, 0.3);
}

.btn-primary:hover {
  background: #0124C8;
  box-shadow: 0 6px 24px rgba(1, 43, 225, 0.5);
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.response-hint {
  font-size: var(--text-sm);
  color: var(--muted2);
  font-style: italic;
}

/* Wave Grid */
.wave-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 0;
}

.wave-grid svg {
  width: 100%;
  height: 100%;
}

/* ================================
   Mission & About Section
   ================================ */
.mission-about {
  padding: var(--spacing-3xl) 0;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 31, 141, 0.1) 100%);
}

.content-block {
  margin-bottom: var(--spacing-3xl);
  max-width: 800px;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--white) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-text {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.7;
}

/* Value Cards */
.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.value-card {
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, rgba(1, 43, 225, 0.08), rgba(4, 31, 141, 0.12));
  border: 1px solid rgba(1, 43, 225, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 43, 225, 0.4);
  box-shadow: 0 8px 32px rgba(1, 43, 225, 0.2);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 43, 225, 0.15);
  border-radius: 12px;
  color: var(--blue);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.card-text {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
}

/* ================================
   Contact Section
   ================================ */
.contact {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(180deg, rgba(4, 31, 141, 0.05) 0%, transparent 100%);
}

.contact-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* WhatsApp CTA */
.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.05));
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 20px;
  margin-bottom: var(--spacing-2xl);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

@media (max-width: 640px) {
  .whatsapp-cta {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }
}

.whatsapp-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.15);
  border-radius: 16px;
  color: #25D366;
  flex-shrink: 0;
}

.whatsapp-content {
  flex: 1;
}

.whatsapp-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--white);
}

.whatsapp-number {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #25D366;
  margin-bottom: var(--spacing-md);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--navy);
  padding: 12px 28px;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all var(--transition-base);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(1, 43, 225, 0.3);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 43, 225, 0.15);
  border-radius: 10px;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-label {
  font-size: var(--text-sm);
  color: var(--muted2);
  margin-bottom: 4px;
}

.contact-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
  word-break: break-all;
  transition: color var(--transition-fast);
}

.contact-value:hover {
  color: var(--blue);
}

.copy-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted2);
  border-radius: 8px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(1, 43, 225, 0.15);
  color: var(--blue);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ================================
   Footer
   ================================ */
.footer {
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(1, 4, 19, 0.6);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.footer-logo-img {
  height: 60px;
  max-height: 60px;
  max-width: 120px;
  width: auto;
  opacity: 0.6;
}

.footer-logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-logo-tag {
  font-size: 0.625rem;
  color: var(--muted2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--muted2);
  margin-bottom: var(--spacing-sm);
}

.footer-note {
  font-size: var(--text-sm);
  color: var(--muted2);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.footer-credit {
  font-size: var(--text-xs);
  color: var(--muted2);
  margin-top: var(--spacing-sm);
}

.footer-credit-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.footer-credit-link:hover {
  color: var(--white);
}

.footer-credit-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ================================
   Toast Notification
   ================================ */
.toast {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  padding: 14px 24px;
  background: rgba(1, 43, 225, 0.95);
  color: var(--white);
  border-radius: 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(1, 43, 225, 0.4);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-base);
  z-index: 10000;
  pointer-events: none;
}

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

@media (max-width: 640px) {
  .toast {
    left: var(--spacing-md);
    right: var(--spacing-md);
    bottom: var(--spacing-md);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-3xl);
  }
  
  .hero-content {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .cta-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .value-cards {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 var(--spacing-md);
  }
  
  .lang-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .trust-line {
    font-size: 0.75rem;
  }
}

/* ================================
   Print Styles
   ================================ */
@media print {
  .header,
  .toast,
  .btn,
  .copy-btn,
  .lang-switcher {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
