/* ===================================
   CSS RESET & BASE STYLES
   =================================== */

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

:root {
  /* Color Palette */
  --color-bg-dark: #0a0e27;
  --color-bg-darker: #050810;
  --color-bg-card: #131a3a;
  --color-primary: #00d4ff;
  --color-primary-glow: rgba(0, 212, 255, 0.4);
  --color-secondary: #6366f1;
  --color-accent: #ec4899;
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-success: #10b981;
  --color-border: rgba(99, 102, 241, 0.2);

  /* Typography */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--color-primary-glow);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-darker);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ===================================
   BACKGROUND & CANVAS
   =================================== */

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    135deg,
    var(--color-bg-darker) 0%,
    var(--color-bg-dark) 100%
  );
}

#particleCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

/* ===================================
   LAYOUT & CONTAINERS
   =================================== */

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  margin: var(--spacing-sm) auto var(--spacing-md);
  border-radius: 2px;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--spacing-lg) 0;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Brain Container */
.brain-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto var(--spacing-lg);
}

#animatedBrain {
  width: 100%;
  height: 100%;
  position: relative;
}

.brain-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--color-primary-glow));
  animation: brainPulse 3s ease-in-out infinite;
}

@keyframes brainPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px var(--color-primary-glow));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px var(--color-primary-glow));
  }
}

/* Gear Orbit */
.gear-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
}

.gear {
  position: absolute;
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
  animation: rotateGear 8s linear infinite;
}

.gear-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-duration: 6s;
}

.gear-2 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-duration: 8s;
  animation-direction: reverse;
}

.gear-3 {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation-duration: 7s;
}

.gear-4 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation-duration: 9s;
  animation-direction: reverse;
}

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

/* Hero Title */
.hero-title {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.domain-name {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 50%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  display: block;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 20px var(--color-primary-glow));
  }
  50% {
    filter: drop-shadow(0 0 30px var(--color-primary-glow));
  }
}

.title-separator {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.7em;
}

.tagline {
  color: var(--color-text);
  font-weight: 400;
  font-size: 0.6em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.cta-container {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-text,
.btn-icon {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--color-primary-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
}

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

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xl);
  opacity: 0.6;
}

.scroll-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-arrow {
  font-size: 1.5rem;
  color: var(--color-primary);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* ===================================
   VALUE SECTION - REDESIGNED
   =================================== */

.value-section {
  background: var(--color-bg-dark);
  padding: var(--spacing-xl) 0;
}

.big-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary),
    var(--color-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-list {
  max-width: 900px;
  margin: 0 auto;
  display: block;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: rgba(19, 26, 58, 0.5);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.feature-item:hover {
  background: rgba(19, 26, 58, 0.8);
  border-left-color: var(--color-accent);
  transform: translateX(10px);
}

.feature-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  min-width: 60px;
}

.feature-content h3 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-heading);
}

.feature-content p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===================================
   USE CASES SECTION - REDESIGNED
   =================================== */

.use-cases-section {
  background: rgba(19, 26, 58, 0.3);
  padding: var(--spacing-xl) 0;
}

.use-case-list {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
}

.use-case-box {
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  transition: all var(--transition-base);
  display: block;
}

.use-case-box:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.use-case-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.use-case-box h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.use-case-box p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-number {
    margin: 0 auto;
  }
}

/* ===================================
   INFOGRAPHIC SECTION
   =================================== */

.infographic-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(19, 26, 58, 0.3) 100%
  );
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.flow-step.animate {
  opacity: 1;
  transform: translateY(0);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.flow-step:hover .step-icon {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.step-icon svg {
  width: 50px;
  height: 50px;
}

.step-content h4 {
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.flow-arrow {
  font-size: 2rem;
  color: var(--color-primary);
  opacity: 0.5;
}

/* ===================================
   PRICING SECTION
   =================================== */

.pricing-section {
  background: rgba(19, 26, 58, 0.2);
}

.pricing-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-secondary) 50%,
    var(--color-accent) 100%
  );
}

.pricing-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  color: white;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
}

.pricing-title {
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.pricing-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-sm);
}

.currency {
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 700;
}

.price {
  font-size: 4rem;
  font-family: var(--font-heading);
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--spacing-lg);
  padding: 0 var(--spacing-md);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  color: var(--color-text);
  font-size: 1rem;
}

.pricing-features svg {
  width: 24px;
  height: 24px;
  color: var(--color-success);
  flex-shrink: 0;
}

.pricing-cta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.pricing-note {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.pricing-note strong {
  color: var(--color-primary);
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(19, 26, 58, 0.3) 100%
  );
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.contact-link {
  font-size: 1.25rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
}

.contact-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.contact-value {
  font-size: 1.125rem;
  color: var(--color-text);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background: var(--color-bg-darker);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0;
}

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

.footer-domain {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.footer-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .brain-container {
    width: 200px;
    height: 200px;
  }

  .gear-orbit {
    width: 280px;
    height: 280px;
  }

  .gear {
    width: 40px;
    height: 40px;
  }

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

  .cta-container {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .flow-diagram {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .pricing-card {
    padding: var(--spacing-md);
  }

  .pricing-cta {
    width: 100%;
  }

  .pricing-cta .btn {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
  }

  .separator {
    display: none;
  }
}

@media (max-width: 480px) {
  .price {
    font-size: 3rem;
  }

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

  .contact-title {
    font-size: 1.75rem;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
a:focus,
button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Print Styles */
@media print {
  .background-container,
  .scroll-indicator,
  .gear-orbit {
    display: none;
  }
}
