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

:root {
  /* Colors */
  --navy: #0A2540;
  --navy-light: #1A3A5C;
  --blue: #1A56DB;
  --blue-light: #3B82F6;
  --blue-pale: #EBF2FF;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --white: #FFFFFF;
  --success: #059669;
  
  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 1.25rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 8px 30px rgba(10, 37, 64, 0.12);
  --shadow-xl: 0 20px 50px rgba(10, 37, 64, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== Animation Classes ===== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

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

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-base);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
}

.nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
}

.nav.active {
  display: flex;
}

.nav-link {
  color: var(--navy);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.875rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--blue);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--blue);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: var(--gray-50);
}

.btn-full {
  width: 100%;
}

/* Exchange Card Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.exchange-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  width: 100%;
  max-width: 340px;
}

.exchange-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.exchange-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exchange-row:first-child {
  padding-top: 0;
}

.currency-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  min-width: 95px;
}

.currency-badge.crypto {
  background: var(--gray-100);
  color: var(--navy);
}

.currency-badge.fiat {
  background: var(--blue-pale);
  color: var(--blue);
}

.currency-icon {
  width: 22px;
  height: 22px;
}

.currency-symbol {
  font-size: 1.125rem;
  font-weight: 700;
  width: 22px;
  text-align: center;
}

.exchange-arrow {
  color: var(--slate-light);
  animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}

/* ===== Stats Section ===== */
.stats {
  padding: 3.5rem 0;
  background: var(--navy);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: inline;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--white);
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue-light);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--slate-light);
  margin-top: 0.25rem;
}

/* ===== Section Styles ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--slate);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Services Section ===== */
.services {
  padding: var(--section-padding);
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  padding: 2rem 1.75rem;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.service-icon-wrapper {
  margin-bottom: 1.5rem;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--blue-pale);
  border-radius: 14px;
  color: var(--blue);
}

.service-title {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.625rem;
}

.service-desc {
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ===== How It Works Section ===== */
.how-it-works {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.step:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  border-radius: 50%;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.step-desc {
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.step-connector {
  display: none;
}

/* ===== Currencies Section ===== */
.currencies {
  padding: var(--section-padding);
  background: var(--white);
}

.currencies-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.currency-group {
  text-align: center;
}

.currency-group-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.currency-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.currency-tag {
  padding: 0.625rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  transition: all var(--transition-fast);
}

.currency-tag:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== Contact Section ===== */
.contact {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-info .section-title {
  text-align: left;
}

.contact-text {
  color: var(--slate);
  margin-bottom: 2rem;
  max-width: 460px;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: all var(--transition-base);
}

.contact-method:hover {
  border-color: var(--blue);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: 10px;
  color: var(--blue);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  margin-top: 0.125rem;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.9375rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
}

.form-input::placeholder {
  color: var(--slate-light);
}

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

.form-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--slate);
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 0 2rem;
  background: var(--navy);
  color: var(--white);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--navy-light);
}

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

.footer-logo {
  height: 34px;
  margin-bottom: 0.875rem;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--slate-light);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--slate-light);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--slate);
}

/* ===== Desktop Styles (768px+) ===== */
@media (min-width: 768px) {
  :root {
    --section-padding: 6rem 0;
    --container-padding: 2rem;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    gap: 2.5rem;
  }
  
  .nav-link {
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.9375rem;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width var(--transition-base);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  .hero {
    padding: 9rem 0 6rem;
  }
  
  .hero .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
  }
  
  .hero-content {
    text-align: left;
    max-width: 540px;
  }
  
  .hero-subtitle {
    margin: 0 0 2rem;
  }
  
  .hero-cta {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2.25rem 2rem;
  }
  
  .steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
  }
  
  .step:hover {
    border: none;
    box-shadow: none;
  }
  
  .step-number {
    margin: 0 auto 1.25rem;
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
  
  .step-connector {
    display: block;
    flex: 1;
    max-width: 100px;
    height: 2px;
    background: var(--gray-300);
    margin-top: 32px;
  }
  
  .currencies-wrapper {
    flex-direction: row;
    gap: 4rem;
    justify-content: center;
  }
  
  .currency-group {
    flex: 1;
    max-width: 400px;
  }
  
  .contact-wrapper {
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
  }
  
  .contact-info {
    flex: 1;
  }
  
  .contact-form-wrapper {
    flex: 1;
    max-width: 480px;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .footer-brand {
    text-align: left;
  }
}

/* ===== Large Desktop (1024px+) ===== */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2.5rem 1.75rem;
  }
  
  .exchange-card {
    padding: 1.5rem;
    max-width: 360px;
  }
  
  .exchange-row {
    padding: 1rem 0;
  }
}

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