/* Font imports */
@font-face {
  font-family: 'UnboundPro';
  src: url('fonts/UnboundPro-BoldItalic.otf') format('opentype');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4A63FF;
  --primary-dark: #3A53EF;
  --secondary: #9B5DE5;
  --accent: #50E3C2;
  --background: #0f0f25;
  --background-light: #141432;
  --text: #ffffff;
  --text-muted: #B0B0C0;
  --border: #2A2A4A;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  color: var(--accent);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 99, 255, 0.4);
  color: white;
}

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

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

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 37, 0.9);
  backdrop-filter: blur(5px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

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

.logo-text {
  font-family: 'UnboundPro', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 1rem;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav a {
  color: var(--text);
  font-weight: 500;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, var(--background-light) 0%, var(--background) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

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

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

.typewriter {
  color: var(--accent);
  font-weight: 600;
  height: 1.5em;
}

/* Features Section */
.features {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--background-light);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

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

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

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

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.step h3 {
  margin-bottom: 1rem;
}

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

/* Visualization Section */
.visualization {
  padding: 6rem 0;
  overflow: hidden;
}

.visualization-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.network-container {
  margin-top: 3rem;
  width: 100%;
  max-width: 800px;
  position: relative;
}

.network-container svg {
  width: 100%;
  height: auto;
  max-height: 500px;
}

/* Benefits Section */
.benefits {
  padding: 6rem 0;
  background: var(--background-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  padding: 2rem;
  background: linear-gradient(rgba(20, 20, 50, 0.5), rgba(15, 15, 37, 0.5));
  border-radius: 8px;
  border: 1px solid var(--border);
}

.benefit-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.benefit-card ul {
  list-style-position: inside;
  color: var(--text-muted);
}

.benefit-card li {
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

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

.contact-links {
  margin-top: 2rem;
}

.contact-links a {
  display: block;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(15, 15, 37, 0.5);
  color: var(--text);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form-error {
  color: #ff5252;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  background: var(--background-light);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-logo {
  font-family: 'UnboundPro', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-muted);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  color: white;
}

.copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background-light);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }
  
  nav.open {
    max-height: 300px;
  }
  
  nav ul {
    flex-direction: column;
    padding: 1rem;
  }
  
  nav ul li {
    margin: 0 0 1rem 0;
  }
  
  .feature-card, .benefit-card, .contact-form {
    margin-bottom: 1.5rem;
  }
  
  .steps {
    gap: 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}