/* ============================================================
   STYLE.CSS — Main styles
   ============================================================ */

/* ── Custom properties ──────────────────────────────────────── */
:root {
  --bg:          #05050e;
  --bg-raised:   #0c0c20;
  --bg-card:     #0f0f28;

  --purple:      #8b5cf6;
  --purple-dim:  rgba(139, 92, 246, 0.14);
  --purple-glow: rgba(139, 92, 246, 0.42);

  --blue:        #60a5fa;
  --blue-dim:    rgba( 96, 165, 250, 0.10);
  --blue-glow:   rgba( 96, 165, 250, 0.30);

  --text-1:  #eeeeff;
  --text-2:  #9898c0;
  --text-3:  #56566e;

  --border:    rgba(139, 92, 246, 0.13);
  --border-hi: rgba(139, 92, 246, 0.30);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;

  --head: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-1);
  font-family: var(--body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle dot grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(139, 92, 246, 0.065) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* JS adds this class to hide the system cursor on pointer devices */
.js-cursor-active,
.js-cursor-active * {
  cursor: none !important;
}

/* ── Custom cursor ───────────────────────────────────────────── */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .18s ease, height .18s ease, background .18s ease;
  box-shadow: 0 0 10px var(--purple-glow), 0 0 22px var(--purple-glow);
  will-change: left, top;
}

#cursor.big {
  width: 38px;
  height: 38px;
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 20px var(--purple-glow), 0 0 50px rgba(139, 92, 246, 0.15);
}

.trail-dot {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  background: var(--blue);
  will-change: left, top, opacity;
}

/* ── Orb container ───────────────────────────────────────────── */
.orb-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55) 0%, transparent 70%);
  top: -220px;
  left: -180px;
  animation: floatOrb1 22s ease-in-out infinite;
}

.orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.45) 0%, transparent 70%);
  bottom: -120px;
  right: -120px;
  animation: floatOrb2 28s ease-in-out infinite;
}

.orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.38) 0%, transparent 70%);
  top: 45%;
  left: 55%;
  animation: floatOrb3 19s ease-in-out infinite;
}

/* Sections sit above background layers */
section,
footer {
  position: relative;
  z-index: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
}

.hero-content {
  max-width: 700px;
}

.hero-eyebrow {
  display: block;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--purple);
  letter-spacing: 0.10em;
  text-transform: lowercase;
  margin-bottom: 0.4rem;
}

.hero-name {
  font-family: var(--head);
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
  color: var(--text-1); /* fallback */
  background: linear-gradient(130deg, #ffffff 0%, var(--purple) 55%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--head);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 1.6rem;
  line-height: 1.45;
}

.hero-bio {
  font-size: 1.02rem;
  color: var(--text-2);
  max-width: 570px;
  line-height: 1.80;
  margin-bottom: 2.5rem;
}

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

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scrollFade 2.8s ease-in-out infinite;
}

.scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.scroll-hint-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollDrop 2.8s ease-in-out infinite;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.82rem 1.85rem;
  background: var(--purple);
  color: #fff;
  font-family: var(--head);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-xl);
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 22px var(--purple-glow);
  transition: transform   .24s var(--ease-expo),
              box-shadow  .24s var(--ease-expo),
              background  .20s ease;
}

.btn-primary svg {
  transition: transform .24s var(--ease-expo);
}

.btn-primary:hover {
  background: #9d6bf8;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 38px rgba(139, 92, 246, 0.55),
              0 0   64px rgba(139, 92, 246, 0.18);
}

.btn-primary:hover svg {
  transform: translateY(3px);
}

.btn-download {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.8rem;
  padding: 0.78rem 1.65rem;
  background: transparent;
  color: var(--purple);
  font-family: var(--head);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-hi);
  animation: glowPulse 3s ease-in-out infinite;
  transition: transform      .24s var(--ease-expo),
              box-shadow     .24s var(--ease-expo),
              background     .20s ease,
              color          .20s ease,
              border-color   .20s ease;
}

.btn-download svg {
  transition: transform .24s var(--ease-expo);
}

.btn-download:hover {
  background: var(--purple-dim);
  border-color: var(--purple);
  color: #c4b5fd;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.40),
              0 10px 28px rgba(139, 92, 246, 0.14);
  animation: none;
}

.btn-download:hover svg {
  transform: translateY(2px);
}

/* ============================================================
   APPS SECTION
   ============================================================ */
.apps-section {
  padding: 5rem 0 3.5rem;
}

.section-head {
  margin-bottom: 2.75rem;
}

.section-title {
  font-family: var(--head);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-3);
}

.app-grid {
  display: grid;
  gap: 1.5rem;
}

/* ── App card ─────────────────────────────────────────────── */
.app-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(12, 12, 32, 0.80) 100%);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform      .32s var(--ease-expo),
              box-shadow     .32s var(--ease-expo),
              border-color   .28s ease;
}

.app-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hi);
  box-shadow:
    0 24px 64px rgba(139, 92, 246, 0.18),
    0 48px 96px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(139, 92, 246, 0.10);
}

.app-card-layout {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .app-card-layout {
    grid-template-columns: 300px 1fr;
  }
}

/* ── Mock visual panel ───────────────────────────────────── */
.app-visual {
  background: linear-gradient(145deg, #080818 0%, #0b0b22 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2rem 1.75rem;
  min-height: 210px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

/* Inner ambient glow */
.app-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(139, 92, 246, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(96, 165, 250, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

@media (min-width: 640px) {
  .app-visual {
    border-bottom: none;
    border-right: 1px solid var(--border);
    min-height: 100%;
  }
}

/* Mock window chrome */
.mock-window {
  width: 100%;
  max-width: 230px;
  background: #111128;
  border-radius: var(--r-sm);
  border: 1px solid rgba(139, 92, 246, 0.20);
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 1;
}

.mock-titlebar {
  background: #18182e;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mock-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.mock-titlelabel {
  font-size: 0.6rem;
  font-family: var(--body);
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.mock-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mock-line {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    rgba(139, 92, 246, 0.22) 0%,
    rgba(96,  165, 250, 0.10) 100%);
}

.mock-caret {
  width: 2px;
  height: 12px;
  background: var(--purple);
  border-radius: 1px;
  margin-top: 2px;
  opacity: 0.85;
  animation: caretBlink 1.1s ease-in-out infinite;
}

.visual-caption {
  font-size: 0.67rem;
  color: var(--text-3);
  letter-spacing: 0.07em;
  position: relative;
  z-index: 1;
}

/* ── App info panel ──────────────────────────────────────── */
.app-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.app-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.app-name {
  font-family: var(--head);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.025em;
  line-height: 1;
}

.tag-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
}

.tag-platform {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.22);
}

.tag-tech {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.app-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.76;
  margin-bottom: 1.3rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  margin-bottom: auto;
}

.feature-list li {
  font-size: 0.88rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--purple-glow);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-name {
  font-family: var(--head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.2rem;
}

.footer-year {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-3);
  font-style: italic;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity   .78s var(--ease-expo) var(--delay, 0ms),
    transform .78s var(--ease-expo) var(--delay, 0ms);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero-section {
    padding: 5rem 0 4rem;
  }

  .scroll-hint {
    display: none;
  }

  .app-info {
    padding: 1.5rem;
  }

  .app-name {
    font-size: 1.6rem;
  }
}
