/* =============================================
   ORAKULL AI — stylesheet
   ============================================= */

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

:root {
  --bg:       #07070f;
  --bg2:      #0d0d1a;
  --bg3:      #111126;
  --purple:   #a855f7;
  --purple-d: #7c3aed;
  --cyan:     #06b6d4;
  --white:    #f0f0ff;
  --muted:    #8888aa;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(168,85,247,0.18);
  --radius:   16px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

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

/* -- CONTAINERS -- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   TYPOGRAPHY UTILITIES
   ============================================= */
.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--purple);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
}

.section {
  padding: 100px 0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  padding: 12px 26px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple-d) 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(168,85,247,0.35);
}
.btn--primary:hover {
  box-shadow: 0 0 40px rgba(168,85,247,0.6);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

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

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

.btn--lg { padding: 15px 34px; font-size: 16px; border-radius: 12px; }
.btn--full { width: 100%; }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.logo-icon {
  font-size: 22px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: spin-icon 8s linear infinite;
}

.logo-text em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes spin-icon {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--purple);
  letter-spacing: 0.03em;
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease 0.2s both;
}

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

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.35s both;
}

/* Glitch effect */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; right: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glitch::before {
  color: var(--cyan);
  animation: glitch1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  color: var(--purple);
  animation: glitch2 4s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
  0%,95%,100%  { transform: translate(0); }
  96%          { transform: translate(-3px, 1px); }
  97%          { transform: translate(3px, -1px); }
  98%          { transform: translate(-2px); }
}
@keyframes glitch2 {
  0%,95%,100%  { transform: translate(0); }
  96%          { transform: translate(3px, 1px); }
  97%          { transform: translate(-3px, -1px); }
  98%          { transform: translate(2px); }
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--muted);
  margin-bottom: 48px;
  min-height: 2.2em;
  animation: fadeUp 0.8s ease 0.5s both;
  font-weight: 300;
}

.cursor {
  color: var(--purple);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
  animation: fadeUp 0.8s ease 0.65s both;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.8s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__num em { font-style: normal; font-size: 1.1rem; }

.stat__label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--glass-border), transparent);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.5s both;
}

.scroll-arrow {
  width: 22px;
  height: 22px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  animation: bounce-arrow 2s infinite;
}

@keyframes bounce-arrow {
  0%,100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50%      { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* =============================================
   ABOUT / FEATURES
   ============================================= */
.about {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(168,85,247,0.07) 0%, transparent 70%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 30px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168,85,247,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(168,85,247,0.15);
}
.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  width: 56px;
  height: 56px;
  color: var(--purple);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 12px rgba(168,85,247,0.5));
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.how::before {
  content: '';
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.steps {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: flex-start;
}

.step__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(6,182,212,0.3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  padding-top: 6px;
}

.step__body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step__body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 520px;
}

.step__connector {
  width: 1px;
  height: 50px;
  margin-left: 38px;
  background: linear-gradient(180deg, var(--glass-border), transparent);
}

/* =============================================
   INVITE ONLY
   ============================================= */
.invite {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.invite__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

.invite__inner {
  max-width: 620px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 70px 50px;
  backdrop-filter: blur(20px);
  position: relative;
}

.invite__icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

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

.invite__desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.invite__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.tag {
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--purple);
  font-weight: 500;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--glass-border);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  color: var(--muted);
  font-size: 14px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--purple); }

/* =============================================
   MODAL
   ============================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__box {
  position: relative;
  z-index: 1;
  background: #0d0d1e;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 60px rgba(168,85,247,0.1);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.modal.open .modal__box {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  line-height: 0;
}
.modal__close:hover { color: var(--white); background: rgba(255,255,255,0.07); }

.modal__header {
  text-align: center;
  margin-bottom: 36px;
}

.modal__logo {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal__header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal__header p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.form-group input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input::placeholder { color: rgba(136,136,170,0.5); }

.form-group input:focus {
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
}

.form-error {
  color: #f87171;
  font-size: 13.5px;
  text-align: center;
  min-height: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.3s;
}

.form-error:empty { opacity: 0; }

/* Loader spinner */
.loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loader[hidden] {
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   KEYFRAMES UTILITIES
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; justify-content: center; }

  .hero__stats { gap: 24px; }
  .stat__divider { display: none; }

  .step {
    grid-template-columns: 56px 1fr;
    gap: 20px;
  }
  .step__num { font-size: 2.5rem; }
  .step__connector { margin-left: 26px; }

  .invite__inner { padding: 44px 28px; }

  .modal__box { padding: 36px 24px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__stats { flex-direction: column; gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
}
