:root {
  --bg-dark: #0a1929;
  --bg-card: rgba(18, 40, 60, 0.8);
  --accent-primary: #3399ff;
  --accent-secondary: #66ccff;
  --text-light: #e6f0ff;
  --text-muted: #9bb8da;
  --border-glow: rgba(51, 153, 255, 0.3);
  --font-main: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  background: rgba(10, 25, 41, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--accent-primary);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

.logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s;
}

.logo img:hover {
  transform: scale(1.05);
}

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

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  transition: width 0.3s;
}

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

.main-nav a:hover {
  color: var(--accent-secondary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-light);
  margin: 5px 0;
  transition: 0.3s;
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 70% 30%, rgba(51,153,255,0.15) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/torz.png') no-repeat center center/cover;
  opacity: 0.03;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content .badge {
  background: rgba(51, 153, 255, 0.2);
  color: var(--accent-secondary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(51,153,255,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(51,153,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(51,153,255,0); }
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--accent-primary);
  text-shadow: 0 0 30px var(--accent-primary);
}

.hero .lead {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
}

.stat-item {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
}

.stat-item span {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: #0a1929;
  box-shadow: 0 4px 15px rgba(51,153,255,0.4);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(51,153,255,0.8);
}

.btn-glow {
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 10px var(--accent-primary); }
  to { box-shadow: 0 0 30px var(--accent-primary); }
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: #0a1929;
  transform: translateY(-3px);
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

.trust-badges {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-badges span {
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-image img {
  max-width: 100%;
  filter: drop-shadow(0 0 30px var(--accent-primary));
}

.floating {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  transition: all 0.3s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 45px rgba(51,153,255,0.2);
  border-color: var(--accent-primary);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-secondary);
}

.feature-card p {
  color: var(--text-muted);
}

/* Timeline (How it works) */
.steps-timeline {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.step-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
  position: relative;
}

.step-item::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 70px;
  width: 2px;
  height: calc(100% + 30px);
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.step-item:last-child::before {
  display: none;
}

.step-number {
  width: 70px;
  height: 70px;
  background: var(--accent-primary);
  color: #0a1929;
  font-size: 2.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 30px var(--accent-primary);
  z-index: 2;
}

.step-content {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-glow);
  flex: 1;
}

.step-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-secondary);
}

.step-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.step-details {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.step-details li {
  background: rgba(51,153,255,0.1);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  border: 1px solid var(--border-glow);
}

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

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-glow);
  text-align: center;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: scale(1.05);
  border-color: var(--accent-primary);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-secondary);
  line-height: 1.2;
}

.stat-number .small {
  font-size: 2rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

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

.showcase-img {
  max-width: 100%;
  border-radius: 20px;
  border: 2px solid var(--accent-primary);
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

.showcase-img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px var(--accent-primary);
}

.showcase-item h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent-secondary);
}

/* Testimonials */
.testimonials {
  background: linear-gradient(to bottom, transparent, rgba(51,153,255,0.05));
}

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

.testimonial-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-glow);
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.testimonial-rating {
  color: #ffbb33;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.testimonial-author {
  font-weight: 600;
  color: var(--accent-secondary);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-glow);
  cursor: pointer;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.faq-question {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-secondary);
  position: relative;
  padding-right: 2rem;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.8rem;
  color: var(--accent-primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--text-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #0a1929, #0a2a3f);
  text-align: center;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-secondary);
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-note {
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.cta-note code {
  background: #0a1a2a;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  border: 1px solid var(--accent-primary);
}

/* Footer */
.site-footer {
  background: #05101f;
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--accent-primary);
}

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

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

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

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .community-grid,
  .use-grid,
  .account-grid,
  .trade-cards,
  .stats-grid,
  .feature-showcase,
  .testimonial-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 2rem;
    transform: translateY(-150%);
    transition: transform 0.3s;
    border-bottom: 1px solid var(--accent-primary);
    backdrop-filter: blur(10px);
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .step-item {
    flex-direction: column;
  }

  .step-item::before {
    left: 35px;
    top: 70px;
    height: calc(100% - 50px);
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .btn {
    padding: 0.8rem 1.5rem;
  }
}