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

:root {
  --bg:             #06060c;
  --surface:        #131320;
  --surface-raised: #1c1c30;
  --border:         rgba(255,255,255,0.11);
  --text:           #f0f0ff;
  --text-muted:     rgba(240,240,255,0.45);
  --radius-card:    26px;
  --font-head:      'Bricolage Grotesque', sans-serif;
  --font-body:      'Ubuntu', sans-serif;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);

}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== CONTENT LAYER ===== */
nav, main, footer { position: relative; z-index: 1; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 48px);
  max-width: 900px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8,8,15,0.45);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.025em;
}

.nav-logo span { color: var(--text-muted); }

.nav-contact-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-contact {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.nav-contact:hover { color: var(--text); }

/* ===== FULL-PAGE BACKGROUND ===== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Crosshatch grid + noise grain — covers entire page */
.page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E"),
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 200px 200px, 44px 44px, 44px 44px;
}

/* Ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}
.hero-orb-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #7C3AED, transparent 70%);
  top: -140px; left: -120px;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #C2410C, transparent 70%);
  bottom: 5%; right: -100px;
  animation: orb-drift 9s ease-in-out infinite alternate-reverse;
}
.hero-orb-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #0F766E, transparent 70%);
  top: 40%; left: 55%;
  animation: orb-drift 15s ease-in-out infinite alternate;
}
.hero-orb-4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #F472B6, transparent 70%);
  top: 15%; right: 5%;
  animation: orb-drift 11s ease-in-out infinite alternate-reverse;
}
.hero-orb-5 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, #34D399, transparent 70%);
  bottom: 30%; left: 18%;
  animation: orb-drift 14s ease-in-out infinite alternate;
}
.hero-orb-6 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #818CF8, transparent 70%);
  top: 60%; left: -80px;
  animation: orb-drift 8s ease-in-out infinite alternate-reverse;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.1); }
}

/* ===== HERO ===== */
.hero {
  min-height: 28dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 88px 24px 36px;
  position: relative;
}

.hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.18);
  margin-bottom: 20px;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  position: relative;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  padding-bottom: 0.2em;
  margin-bottom: 14px;
  background: linear-gradient(110deg,
    #ffffff 0%,
    rgba(255,255,255,0.92) 18%,
    #a78bfa 33%,
    #ffffff 48%,
    #34d399 63%,
    rgba(255,255,255,0.92) 78%,
    #ffffff 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-shimmer 12s ease-in-out infinite;
  position: relative;
}

@keyframes hero-shimmer {
  0%   { background-position: 100% 0; }
  50%  { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto 28px;
  line-height: 1.55;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #34D399; }
  50%       { opacity: 0.6; box-shadow: 0 0 16px #34D399; }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%   { opacity: 0; transform: scaleY(0.5) translateY(-10px); }
  50%  { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.8) translateY(10px); }
}

/* ===== FEATURED SECTION ===== */
.featured-section {
  padding: 0 32px 0;
  max-width: 1240px;
  margin: 0 auto;
}

.featured-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
  cursor: pointer;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 32px 80px color-mix(in srgb, var(--accent) 24%, transparent);
}

.featured-card-body {
  flex: 1;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 10px;
  width: fit-content;
  margin-bottom: 10px;
}

.app-badge--new {
  color: #A78BFA;
  background: rgba(167,139,250,0.14);
  border: 1px solid rgba(167,139,250,0.25);
}

.app-badge--updated {
  color: #34D399;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.22);
}

.featured-name {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.featured-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
}

.featured-pricing {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
}

.featured-card:hover .app-cta { color: var(--accent); gap: 10px; }

.featured-card-visual {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  overflow: hidden;
}

.featured-card-visual .app-name {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.featured-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}

.featured-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* ===== APPS SECTION ===== */
.apps-section {
  padding: 56px 32px 120px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ===== APP CARD ===== */
.app-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}

.app-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 28px 60px color-mix(in srgb, var(--accent) 28%, transparent);
}

.app-card-header {
  height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
}

.app-icon {
  width: 82px;
  height: 82px;
  border-radius: 19px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.app-card-body {
  padding: 18px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-name {
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
  text-align: center;
}

.app-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 20px;
}

.app-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  transition: color 200ms var(--ease), gap 200ms var(--ease);
}

.app-card:hover .app-cta { gap: 10px; color: var(--accent); }

/* ===== ABOUT STRIP ===== */
.about-strip {
  border-top: 1px solid var(--border);
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-strip h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.about-strip p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}
.about-link:hover {
  color: var(--text);
  background: var(--surface-raised);
  border-color: rgba(255,255,255,0.14);
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
footer a:hover { color: var(--text); }

/* ===== SCROLL ANIMATION ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.app-card.fade-up { transition-duration: 0.5s; }
.app-card:nth-child(2).fade-up { transition-delay: 55ms; }
.app-card:nth-child(3).fade-up { transition-delay: 110ms; }
.app-card:nth-child(4).fade-up { transition-delay: 165ms; }
.app-card:nth-child(5).fade-up { transition-delay: 220ms; }
.app-card:nth-child(6).fade-up { transition-delay: 275ms; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip { grid-template-columns: 1fr; gap: 28px; }
  .featured-card-visual { width: 220px; }
}

@media (max-width: 640px) {
  nav { top: 12px; width: calc(100% - 24px); padding: 10px 18px; }
  .featured-section { padding: 0 16px; }
  .featured-card { flex-direction: column; }
  .featured-card-visual { order: -1; width: 100%; height: 148px; }
  .featured-icon { width: 82px; height: 82px; }
  .featured-card-body { padding: 18px 24px 26px; gap: 0; }
  .featured-name { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 10px; }
  .featured-tagline { font-size: 0.875rem; line-height: 1.55; margin-bottom: 20px; }
  .featured-pricing { display: none; }
  .apps-section { padding: 48px 16px 80px; }
  .apps-grid { grid-template-columns: 1fr; gap: 14px; }
  footer { flex-direction: column; gap: 10px; text-align: center; padding: 24px 20px; }
  .about-strip { padding: 48px 20px; }
}
