/* ===== CSS Variables (shadcn/ui inspired) ===== */
:root {
  /* Colors - Dark Theme */
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;

  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;

  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;

  --primary: 217.2 91.2% 59.8%;
  --primary-foreground: 222.47 84% 4.9%;

  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;

  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;

  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;

  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;

  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 224.3 76.3% 48%;

  --success: 142 76% 36%;
  --warning: 38 92% 50%;

  /* Spacing */
  --radius: 0.5rem;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
}

/* Import Inter font for Russian */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
}

/* ===== Landing Page Container ===== */
.landing-page {
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, hsl(var(--primary) / 0.15), transparent),
    hsl(var(--background));
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.badge-icon {
  color: hsl(var(--success));
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: hsl(var(--foreground));
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(263 70% 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  margin: 0 0 2rem;
  max-width: 600px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.feature-check {
  flex-shrink: 0;
  color: hsl(var(--success));
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.trust-indicators {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: hsl(var(--card) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2);
  backdrop-filter: blur(12px);
}

.trust-item {
  flex: 1;
}

.trust-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.trust-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.trust-divider {
  width: 1px;
  height: 2rem;
  background: hsl(var(--border));
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsl(var(--primary) / 0.4);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
  background: hsl(var(--muted));
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn-arrow {
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== Portfolio Card ===== */
.hero-visual {
  position: relative;
  z-index: 1;
}

.portfolio-card {
  background: hsl(var(--card) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 3);
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.portfolio-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: hsl(var(--success) / 0.1);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--success));
}

.status-badge svg {
  animation: pulse 2s ease-in-out infinite;
}

.portfolio-balance {
  margin-bottom: 2rem;
}

.balance-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.balance-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.balance-change {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: hsl(var(--success) / 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--success));
}

.portfolio-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid hsl(var(--border));
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.portfolio-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 100px;
  margin-bottom: 2rem;
  padding: 1rem;
  background: hsl(var(--muted) / 0.3);
  border-radius: var(--radius);
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, hsl(var(--primary)), hsl(263 70% 50%));
  border-radius: 4px;
  transition: all 0.3s ease;
  animation: chartGrow 1s ease-out;
}

@keyframes chartGrow {
  from { height: 0; }
}

.chart-bar:hover {
  opacity: 0.8;
  transform: scaleY(1.05);
}

.portfolio-allocation {
  margin-top: 1.5rem;
}

.allocation-header {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.allocation-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.allocation-protocol {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.protocol-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.allocation-percent {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

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

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto;
}

/* ===== How It Works Section ===== */
.how-it-works {
  padding: 6rem 0;
  background: hsl(var(--background));
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.step {
  position: relative;
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2);
  transition: all 0.3s;
}

.step:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsl(var(--primary) / 0.15);
}

.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(263 70% 50%));
  border-radius: calc(var(--radius) * 1.5);
  margin-bottom: 1.5rem;
  color: hsl(var(--primary-foreground));
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  color: hsl(var(--muted));
  line-height: 1;
  opacity: 0.5;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.75rem;
}

.step-description {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

.step-connector {
  align-self: center;
  margin-top: 3rem;
}

/* ===== Benefits Section ===== */
.benefits {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, hsl(var(--primary) / 0.08), transparent),
    hsl(var(--background));
}

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

.benefit-card {
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2);
  transition: all 0.3s;
}

.benefit-card:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-4px);
  box-shadow: 0 12px 32px hsl(var(--primary) / 0.15);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
  border-radius: calc(var(--radius) * 1.5);
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
}

.benefit-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.75rem;
}

.benefit-description {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

/* ===== CTA Section ===== */
.cta {
  padding: 6rem 0;
  background: hsl(var(--background));
}

.cta-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  padding: 4rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(263 70% 50% / 0.1));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 3);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, hsl(var(--primary) / 0.15), transparent);
  animation: rotate 20s linear infinite;
}

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

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

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 2rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  z-index: 1;
}

.cta-stat {
  padding: 2rem;
  background: hsl(var(--card) / 0.8);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2);
  text-align: center;
  backdrop-filter: blur(12px);
}

.cta-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(263 70% 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.cta-stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ===== Footer ===== */
.footer {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(263 70% 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted));
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
  text-decoration: none;
}

.social-link:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-2px);
}

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

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.footer-link {
  display: block;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-legal-link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: hsl(var(--primary));
}

.footer-divider {
  color: hsl(var(--muted-foreground));
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .trust-indicators {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-divider {
    width: 100%;
    height: 1px;
  }

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

  .step-connector {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-card {
    grid-template-columns: 1fr;
    padding: 3rem;
  }

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

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-lg, .btn-xl {
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .cta-title {
    font-size: 2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
