/* General & Utilities */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rethink Sans", sans-serif;
  background-color: #050505;
  color: #9ca3af;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1 {
  font-size: 5rem;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 35px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  color: #9ca3af;
  margin-bottom: 16px;
}

h2 span {
  color: #ffffff;
}

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

.text-white {
  color: #ffffff;
}

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

.flex {
  display: flex;
}

.gap-4 {
  gap: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.4s ease-out,
    transform 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: #ffffff;
  color: #050505;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #e5e5e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-outline:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

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

.logo-img {
  width: 85%;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

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

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
  z-index: 1001;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  border-bottom: 1px solid #262626;
  min-height: 95vh;
  display: flex;
  align-items: center;
}

.grid-scene {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-color: #050505;
}

canvas#simulation-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      to bottom,
      #050505 0%,
      #050505 30%,
      transparent 60%
    ),
    radial-gradient(ellipse at center, transparent 30%, #050505 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  color: #ffffff;
  margin-bottom: 24px;
  animation: fadeIn 1s ease-out;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

.subtitle {
  font-size: 1.125rem;
  color: #9ca3af;
  max-width: 740px;
  margin: 0 auto 40px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Intro Section */
.intro-section {
  padding: 100px 0;
  border-bottom: 1px solid #262626;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pill-badge {
  display: inline-block;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.icon-row {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.intro-card {
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  padding: 40px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.intro-card:hover {
  border-color: #333;
}

/* Products Section */
.products-section {
  padding: 100px 0;
  border-bottom: 1px solid #262626;
  background-color: #050505;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.product-card {
  background-color: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  background-color: #0f0f0f;
  border-color: #444;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.prod-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.prod-header h3 {
  font-size: 1.75rem;
  color: #ffffff;
}

.prod-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.prod-desc {
  font-size: 1rem;
  margin-bottom: 32px;
  color: #9ca3af;
}

.prod-actions {
  display: flex;
  gap: 12px;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Workflow Section */
.workflow-section {
  padding: 100px 0;
  border-bottom: 1px solid #262626;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.workflow-diagram {
  max-width: 100%;
  height: auto;
}

/* Pricing Section */
.pricing-section {
  padding: 100px 0;
  border-bottom: 1px solid #262626;
}

.toggle-container {
  display: flex;
  justify-content: center;
  margin: 32px 0 60px;
}

.toggle-switch {
  background: #1a1a1a;
  padding: 4px;
  border-radius: 99px;
  display: flex;
}

.toggle-btn {
  padding: 8px 24px;
  border-radius: 99px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-btn.active {
  background: #fff;
  color: #000;
  font-weight: 600;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 32px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.price-card.pro {
  background: #1f1f1f;
  border-color: #444;
  transform: scale(1.05);
  z-index: 2;
}

.price-card.pro:hover {
  transform: scale(1.05) translateY(-5px);
}

.price-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 4px;
  font-weight: 600;
}

.price-sub {
  font-size: 0.85rem;
  margin-bottom: 24px;
  display: block;
}

.price-amount {
  font-size: 2.5rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
}

.price-amount span {
  font-size: 1rem;
  color: #9ca3af;
  font-weight: 400;
  margin-left: 4px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.feature-list i {
  color: #ffffff;
}

/* Team Section */
.team-section {
  padding: 100px 0;
  border-bottom: 1px solid #262626;
  background-color: #050505;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.team-card {
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: #444;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #0f0f0f;
}

.team-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #262626;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.team-card:hover .team-img {
  border-color: #444;
}

.team-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 6px;
  font-weight: 600;
}

.team-role {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 24px;
  display: block;
  font-weight: 400;
}

.team-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.team-socials .btn {
  flex: 1;
  padding: 8px 0;
  justify-content: center;
  gap: 5px;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer CTA */
.footer-cta {
  padding: 80px 0;
  border-bottom: 1px solid #262626;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  border: 1px solid #262626;
  border-radius: 16px;
  overflow: hidden;
  background: #080808;
}

.contact-info {
  padding: 48px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-row i {
  margin-top: 4px;
  color: #ffffff;
}

.map-box {
  position: relative;
  min-height: 300px;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

/* Footer */
footer {
  padding: 60px 0 20px;
  font-size: 0.9rem;
}

.footer-logo {
  width: 60%;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 24px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  margin-bottom: 12px;
}

.footer-col a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

.social-link:hover {
  color: #ffffff;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  padding-top: 20px;
  border-top: 1px solid #111;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .price-card.pro {
    transform: scale(1);
  }
  .products-section {
    gap: 1px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  .nav-links,
  .nav-actions {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }

  .navbar.active {
    height: auto;
    min-height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    align-items: flex-start;
    padding-top: 10px;
  }
  .navbar.active .nav-container {
    flex-wrap: wrap;
  }
  .navbar.active .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 24px 0;
    border-bottom: 1px solid #222;
    order: 3;
  }
  .navbar.active .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 24px 0;
    gap: 16px;
    order: 4;
  }
  .navbar.active .nav-actions .btn {
    width: 100%;
  }

  .intro-grid,
  .workflow-grid,
  .footer-cols,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .products-section {
    grid-template-columns: 1fr;
  }
}