/* SmartDefusion - Digital Asset Hedge Fund Website Styles */

/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
  --primary-color: #6E519E;
  --primary-light: #8B6DB8;
  --primary-dark: #5A4282;
  --background-light: #FAFAFA;
  --background-purple: #F8F6FB;
  --text-dark: #2D2D2D;
  --text-muted: #666666;
  --text-light: #888888;
  --white: #FFFFFF;
  --border-color: #E8E4EF;
  --shadow-light: 0 2px 8px rgba(110, 81, 158, 0.08);
  --shadow-medium: 0 4px 16px rgba(110, 81, 158, 0.12);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ========================================
   Layout Utilities
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.bg-light {
  background-color: var(--background-light);
}

.bg-purple {
  background-color: var(--background-purple);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.nav-links a.active {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--white) 0%, var(--background-purple) 100%);
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-logo {
  position: absolute;
  right: -15%;
  top: 50%;
  transform: translateY(-50%);
  width: 70%;
  max-width: 800px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-logo img {
  width: 100%;
  height: auto;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
}

.hero-tagline {
  display: inline-block;
  background-color: var(--background-purple);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

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

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

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

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   Strategy Overview Section
   ======================================== */
.strategy-overview .content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.strategy-text h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.strategy-text p {
  margin-bottom: 1.5rem;
}

.strategy-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.highlight-icon {
  width: 48px;
  height: 48px;
  background-color: var(--background-purple);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.highlight-content h4 {
  margin-bottom: 0.25rem;
}

.highlight-content p {
  font-size: 0.9375rem;
}

/* ========================================
   Features Section
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background-color: var(--background-purple);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.feature-card h4 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9375rem;
}

/* ========================================
   Risk Management Section
   ======================================== */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.risk-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.risk-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.risk-content h4 {
  margin-bottom: 0.5rem;
}

/* ========================================
   Performance Section
   ======================================== */
.performance-placeholder {
  background-color: var(--white);
  border: 2px dashed var(--border-color);
  border-radius: 1rem;
  padding: 4rem 2rem;
  text-align: center;
}

.performance-placeholder .placeholder-icon {
  width: 80px;
  height: 80px;
  background-color: var(--background-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.performance-placeholder .placeholder-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
}

.performance-placeholder h3 {
  margin-bottom: 0.75rem;
}

.stats-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

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

.stat-item .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-card {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
}

.contact-card h3 {
  margin-bottom: 1rem;
}

.contact-card p {
  margin-bottom: 2rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  padding: 1rem 2rem;
  background-color: var(--background-purple);
  border-radius: 0.5rem;
}

.contact-email svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   Strategy Page Specific Styles
   ======================================== */
.page-hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--background-purple) 100%);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.strategy-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.strategy-section.reverse {
  direction: rtl;
}

.strategy-section.reverse > * {
  direction: ltr;
}

.strategy-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.strategy-content p {
  margin-bottom: 1rem;
}

.strategy-list {
  list-style: none;
  margin-top: 1.5rem;
}

.strategy-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.strategy-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.strategy-visual {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

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

.framework-item {
  padding: 1.5rem;
  background-color: var(--background-purple);
  border-radius: 0.75rem;
}

.framework-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.framework-item p {
  font-size: 0.875rem;
}

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

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

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

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

.footer-copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .strategy-overview .content-grid,
  .strategy-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .strategy-section.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--white);
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
  }

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

  .nav-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

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

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

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

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

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

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.875rem;
  }

  .container {
    padding: 0 1rem;
  }

  .stats-preview {
    grid-template-columns: 1fr;
  }

  .stat-item .stat-value {
    font-size: 2rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }

  .contact-email {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
