:root {
  --primary: #0a1628;
  --primary-light: #132240;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #dbeafe;
  --text: #1e293b;
  --text-secondary: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --success: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  background: var(--primary);
  color: white;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

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

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: white;
}

.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: white; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 18px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.05); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 48px;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.value-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}

.value-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.value-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Content cards */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.content-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.content-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.content-card-body { padding: 24px; }

.content-card .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 12px;
}

.content-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.4; }
.content-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.content-card .meta { font-size: 13px; color: #94a3b8; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 24px; max-width: 700px; margin: 0 auto; }

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.step-content h3 { font-size: 16px; margin-bottom: 4px; }
.step-content p { font-size: 14px; color: var(--text-secondary); }

/* CTA */
.cta-section {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.cta-section p { color: #94a3b8; font-size: 16px; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Footer */
footer {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 0 32px;
  color: #94a3b8;
}

footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }

footer h4 { color: white; font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }

footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a { color: #94a3b8; text-decoration: none; font-size: 14px; }
footer ul a:hover { color: white; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
}

/* Page header */
.page-header {
  background: var(--primary);
  color: white;
  padding: 60px 0 48px;
  text-align: center;
}

.page-header h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.page-header p { color: #94a3b8; font-size: 16px; max-width: 500px; margin: 0 auto; }

/* Content page */
.content-page { padding: 48px 0 80px; }
.content-body { max-width: 720px; margin: 0 auto; }
.content-body h2 { font-size: 24px; margin: 32px 0 12px; }
.content-body h3 { font-size: 18px; margin: 24px 0 8px; }
.content-body p { margin-bottom: 16px; color: var(--text-secondary); line-height: 1.8; }
.content-body ul { margin: 0 0 16px 24px; }

/* Rates bar — clean minimal */
.rates-bar {
  background: var(--primary);
  color: #cbd5e1;
  padding: 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1;
}

.rates-bar .container {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.rates-bar-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-right: 20px;
  flex-shrink: 0;
}

.rates-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 24px;
  flex-shrink: 0;
}

.rates-bar-curr {
  font-weight: 700;
  color: white;
}

.rates-bar-rate {
  font-weight: 600;
  color: white;
}

.rates-bar-rub {
  color: #94a3b8;
  font-size: 12px;
}

.rates-bar-meta {
  color: #64748b;
  font-size: 13px;
  margin-left: auto;
  flex-shrink: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
  .rates-bar .container { padding: 8px 12px; font-size: 13px; }
  .rates-bar-label { font-size: 13px; margin-right: 12px; }
  .rates-bar-item { margin-right: 16px; gap: 4px; }
  .rates-bar-meta { font-size: 12px; padding-left: 12px; }
}

@media (max-width: 480px) {
  .rates-bar-meta { display: none; }
}

/* Page header */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  }

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

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  nav { position: relative; }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 48px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
    padding: 0 8px;
  }

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

  .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px; /* better touch target */
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 24px;
    padding: 0 8px;
  }

  .section-subtitle {
    font-size: 15px;
    padding: 0 16px;
    margin-bottom: 32px;
  }

  .values-grid, .content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-card, .content-card {
    padding: 24px;
  }

  .value-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .value-card h3 {
    font-size: 16px;
  }

  /* Steps */
  .step {
    gap: 14px;
  }

  .step-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 14px;
  }

  .step-content h3 {
    font-size: 15px;
  }

  .step-content p {
    font-size: 13px;
  }

  /* CTA */
  .cta-section {
    padding: 48px 24px;
  }

  .cta-section h2 {
    font-size: 26px;
  }

  .cta-section p {
    font-size: 15px;
  }

  /* Page header */
  .page-header {
    padding: 40px 16px 32px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .page-header p {
    font-size: 15px;
  }

  /* Content page */
  .content-page {
    padding: 32px 0 48px;
  }

  .content-body {
    padding: 0 16px;
  }

  .content-body h2 {
    font-size: 20px;
  }

  .content-body p, .content-body li {
    font-size: 15px;
  }

  /* Footer */
  footer {
    padding: 32px 16px 24px;
  }

  footer .container {
    flex-direction: column;
    gap: 24px;
  }

  footer h4 {
    margin-bottom: 12px;
  }

  .container {
    padding: 0 16px;
  }

  .hero img[alt="VEDi Tech"] {
    width: 72px !important;
    height: 72px !important;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  .section-title {
    font-size: 22px;
  }

  .container {
    padding: 0 12px;
  }
}
