/* ================================================================
   HATANAREQIR ALGOS — Core Stylesheet
   Theme: Deep Cyber-Fintech | Version 1.0
   ================================================================ */

/* === CUSTOM PROPERTIES === */
:root {
  --bg-deep:        #1a1625;
  --bg-mid:         #1f1b30;
  --bg-card:        #241d35;
  --bg-elevated:    #281e3a;
  --purple-primary: #a855f7;
  --purple-light:   #c084fc;
  --purple-dark:    #7c3aed;
  --purple-glow:    rgba(168, 85, 247, 0.35);
  --text-primary:   #f2ecff;
  --text-secondary: #b4a3cf;
  --border-subtle:  rgba(168, 85, 247, 0.18);
  --border-active:  rgba(168, 85, 247, 0.55);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.45);
  border-radius: 9999px;
}

/* === SELECTION === */
::selection {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
}

/* === SEMANTIC TAG STYLING === */
var, samp {
  font-style: normal;
  font-weight: 700;
  font-family: 'Inter', 'Courier New', monospace;
  color: var(--purple-light);
  letter-spacing: -0.01em;
}

/* === LAYOUT UTILITIES === */
.container-custom {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-padding {
  padding-block: 5rem;
}

/* === TYPOGRAPHY === */
.gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 45%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-text {
  text-shadow: 0 0 24px rgba(168, 85, 247, 0.7), 0 0 48px rgba(168, 85, 247, 0.35);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
}

.section-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #c084fc);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.55);
}

/* === HEADER / NAV === */
header {
  background: rgba(26, 22, 37, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-text {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, #a855f7, #c084fc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover { color: var(--purple-light); }
.nav-link:hover::after { transform: scaleX(1); }

#mobile-menu {
  background: rgba(22, 18, 32, 0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

.btn-primary > * { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--purple-light);
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--purple-primary);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

/* === HERO === */
.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 55%, rgba(168, 85, 247, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 15%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(192, 132, 252, 0.07) 0%, transparent 40%);
  pointer-events: none;
}

.hero-sphere {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  animation: float-sphere 8s ease-in-out infinite;
}

/* === FLOATING ANIMATION === */
@keyframes float-sphere {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-22px) scale(1.04); }
}

/* === CONTACT STRIP === */
.contact-strip {
  background: rgba(36, 29, 53, 0.55);
  border-top: 1px solid rgba(168, 85, 247, 0.12);
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
  backdrop-filter: blur(12px);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-item:hover { color: var(--purple-light); }

.contact-icon {
  width: 36px; height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-primary);
}

/* === CARDS === */
.glow-card {
  background: linear-gradient(145deg, rgba(36, 29, 53, 0.9) 0%, rgba(40, 30, 58, 0.7) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glow-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 12px 48px rgba(0,0,0,0.35), 0 0 60px rgba(168, 85, 247, 0.12);
  transform: translateY(-5px);
}

.card-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(124,58,237,0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.glow-card:hover .card-icon-wrap {
  background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(124,58,237,0.2));
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.3);
}

/* === TECH BADGES === */
.tech-badge {
  background: rgba(36, 29, 53, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.tech-badge:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.14);
}

/* === TIMELINE === */
.timeline-list {
  counter-reset: timeline-counter;
  list-style: none;
  padding: 0;
  position: relative;
}

.timeline-step {
  counter-increment: timeline-counter;
}

.timeline-number {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #a855f7, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-step .timeline-number::before {
  content: counter(timeline-counter, decimal-leading-zero);
}

/* Desktop horizontal layout override */
@media (min-width: 768px) {
  .timeline-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
  }
}

/* === PILL INPUTS === */
.pill-input,
.pill-select {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(36, 29, 53, 0.8);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pill-input::placeholder { color: rgba(180, 163, 207, 0.45); }

.pill-input:focus,
.pill-select:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1), 0 0 20px rgba(168, 85, 247, 0.08);
}

.pill-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23a855f7' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 16px;
  padding-right: 3rem;
  cursor: pointer;
}

.pill-select option {
  background: #1f1b30;
  color: var(--text-primary);
}

/* === FORM SECTION === */
.form-section {
  background: linear-gradient(180deg, rgba(36,29,53,0.85) 0%, rgba(26,22,37,0.97) 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.14);
}

/* === COOKIE BANNER === */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(28, 22, 42, 0.97);
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#cookie-banner.visible { transform: translateY(0); }

/* === ABOUT VISUAL === */
.about-visual-wrap {
  background: linear-gradient(145deg, rgba(40,30,58,0.8) 0%, rgba(26,22,37,0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === ANIMATIONS === */
@keyframes node-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.25); }
}

.node-pulse { animation: node-pulse 2.5s ease-in-out infinite; }

@keyframes orbit-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.orbit-slow { animation: orbit-slow 22s linear infinite; }

@keyframes orbit-rev {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.orbit-rev { animation: orbit-rev 16s linear infinite; }

@keyframes dash-flow {
  to { stroke-dashoffset: -100; }
}

.dash-flow { animation: dash-flow 3s linear infinite; }

/* Scroll reveal */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* === FOOTER === */
footer {
  background: rgba(18, 14, 28, 0.98);
  border-top: 1px solid rgba(168, 85, 247, 0.12);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.25s ease;
}

.footer-link:hover { color: var(--purple-light); }

.footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1rem;
}

/* === LEGAL PAGES === */
.legal-content h2 {
  color: var(--purple-light);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content ul {
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === THANKS PAGE === */
.thanks-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(124,58,237,0.15));
  border: 2px solid rgba(168, 85, 247, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 48px rgba(168, 85, 247, 0.3);
  animation: pulse-thanks 3s ease-in-out infinite;
}

@keyframes pulse-thanks {
  0%, 100% { box-shadow: 0 0 48px rgba(168,85,247,0.3); }
  50%       { box-shadow: 0 0 80px rgba(168,85,247,0.55); }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 640px) {
  .section-padding { padding-block: 3rem; }
  .container-custom { padding-inline: 1rem; }

  .timeline-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 2rem;
    position: relative;
  }

  .timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.375rem;
    top: 3.5rem;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(168,85,247,0.5) 0%, rgba(168,85,247,0.05) 100%);
  }

  .timeline-number {
    font-size: 2rem;
    min-width: 2.75rem;
    margin-bottom: 0;
  }
}

/* === INPUT FOCUS VISIBLE === */
.pill-input:focus-visible,
.pill-select:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: 2px solid var(--purple-primary);
  outline-offset: 3px;
}
