:root {
  --bg: #0b0912;
  --surface: #14111d;
  --surface-2: #1b1628;
  --text: #f8f5ff;
  --muted: #bdb5cc;
  --purple: #7c4dff;
  --pink: #ff4f86;
  --cyan: #29d9ff;
  --gold: #ffb300;
  --line: rgba(255, 255, 255, 0.1);
  --max: 1180px;
}

html[data-theme="light"] {
  --bg: #f7f5fc;
  --surface: #ffffff;
  --surface-2: #efeaf8;
  --text: #120e1e;
  --muted: #5a5270;
  --line: rgba(18, 14, 30, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(124, 77, 255, 0.16), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(255, 79, 134, 0.12), transparent 38%),
    radial-gradient(circle at 50% 82%, rgba(41, 217, 255, 0.08), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  height: 80px;
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(11, 9, 18, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-theme="light"] .site-header {
  background: rgba(247, 245, 252, 0.85);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand span span {
  color: var(--pink);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid rgba(255, 79, 134, 0.55);
  border-radius: 14px;
  color: var(--text) !important;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: rgba(255, 79, 134, 0.14);
  transform: translateY(-1px);
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-button {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
}

main { overflow: hidden; }

.container {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  min-height: 760px;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 142px 24px 76px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 52px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(3.1rem, 6.2vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

h1 em {
  font-style: normal;
  background: linear-gradient(110deg, var(--purple), var(--pink) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 600px;
  font-size: 1.14rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid var(--line);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.button.primary {
  background: linear-gradient(120deg, var(--purple), var(--pink));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(255, 79, 134, 0.26);
}

.button.primary:hover {
  box-shadow: 0 18px 40px rgba(255, 79, 134, 0.38);
}

.button.ghost {
  background: var(--surface);
  color: var(--text);
}

/* Orbit Hero Art */
.hero-art {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  animation: spin 28s linear infinite;
}

.orbit.one { width: 350px; height: 350px; }
.orbit.two {
  width: 265px;
  height: 265px;
  border-color: rgba(41, 217, 255, 0.32);
  animation-direction: reverse;
  animation-duration: 20s;
}

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

.hero-art img {
  width: 170px;
  height: 170px;
  border-radius: 36px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow: 0 22px 50px rgba(124, 77, 255, 0.35);
  animation: floatSlow 6s ease-in-out infinite;
}

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

.code-chip, .product-chip {
  position: absolute;
  z-index: 3;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.code-chip {
  top: 38px;
  left: 14px;
  color: var(--cyan);
  animation: floatSlow 5.5s ease-in-out infinite;
}

.product-chip {
  bottom: 42px;
  right: 12px;
  color: var(--pink);
  animation: floatSlow 6.5s ease-in-out infinite reverse;
}

/* Principles strip */
.principles {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.principles p {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
}

/* Sections */
.section {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 92px 24px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

/* Featured Product + Phone Mockup */
.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(155deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(41, 217, 255, 0.12);
  border: 1px solid rgba(41, 217, 255, 0.28);
  margin-bottom: 14px;
}

.product-copy h3 {
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.product-copy p {
  color: var(--muted);
}

.product-copy ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 18px 0 26px;
}

.product-copy li {
  margin-bottom: 6px;
}

.product-copy a {
  color: var(--pink);
  font-weight: 700;
}

.product-copy a:hover { text-decoration: underline; }

.phone-stage {
  display: grid;
  place-items: center;
}

.phone {
  width: 266px;
  padding: 16px;
  border-radius: 34px;
  background: #07090e;
  border: 2px solid rgba(41, 217, 255, 0.35);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  color: #f4f7fb;
  animation: floatSlow 6.5s ease-in-out infinite;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.phone-bar span span { color: var(--cyan); }

.story {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #10223a, #17152e);
  border: 1px solid rgba(41, 217, 255, 0.25);
  margin-bottom: 12px;
}

.story small {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #ff3b5c;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.story strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.25;
  margin-bottom: 4px;
}

.story i {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--cyan);
}

.phone-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.phone-cards i {
  display: block;
  height: 74px;
  border-radius: 12px;
  background: linear-gradient(160deg, #162033, #0e1422);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-nav {
  display: flex;
  justify-content: space-around;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: var(--muted);
}

.phone-nav b:first-child { color: var(--cyan); }

/* Method Grid */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.method-grid article {
  padding: 26px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.method-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 77, 255, 0.5);
}

.method-grid span {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--pink);
  margin-bottom: 12px;
}

.method-grid h3 { margin-bottom: 8px; font-size: 1.15rem; }
.method-grid p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Apps Filter & Grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.filter-chip.active {
  background: linear-gradient(120deg, var(--purple), var(--pink));
  color: #fff;
  border-color: transparent;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(41, 217, 255, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.app-card.hidden { display: none; }
.app-card.filtering-in { animation: cardPopIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes cardPopIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-top {
  display: flex;
  align-items: center;
  gap: 15px;
}

.app-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 17px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.app-icon-box img, .app-icon-box svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(41, 217, 255, 0.1);
  border: 1px solid rgba(41, 217, 255, 0.25);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.app-badge.gold {
  color: var(--gold);
  background: rgba(255, 179, 0, 0.12);
  border-color: rgba(255, 179, 0, 0.28);
}

.app-card h3 { margin: 0; font-size: 1.22rem; font-weight: 800; }
.app-desc { margin: 14px 0 16px; color: var(--muted); font-size: 0.92rem; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.card-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
}

.card-links a:first-child { color: var(--cyan); }
.card-links a:last-child { color: var(--muted); }
.card-links a:hover { text-decoration: underline; }

/* Brand Story & Contact */
.brand-story {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 44px;
  align-items: center;
}

.brand-mark-box {
  display: grid;
  place-items: center;
  padding: 40px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.brand-mark-box img {
  width: 140px;
  height: 140px;
  border-radius: 30px;
}

.swatches {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.swatches i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.swatches i:nth-child(1) { background: var(--purple); }
.swatches i:nth-child(2) { background: var(--pink); }
.swatches i:nth-child(3) { background: var(--cyan); }
.swatches i:nth-child(4) { background: var(--bg); }

.contact-inner {
  padding: 52px 40px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.16), rgba(255, 79, 134, 0.14));
  border: 1px solid rgba(255, 79, 134, 0.35);
}

.contact-inner h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 12px; }
.contact-inner p { max-width: 540px; margin: 0 auto 26px; color: var(--muted); }
.contact-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Footer */
footer {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 36px 24px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--pink); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .orbit, .hero-art img, .code-chip, .product-chip, .phone, .eyebrow i { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 960px) {
  .hero, .product, .brand-story { grid-template-columns: 1fr; }
  .principles, .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .menu-button { display: block; }
  nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  }
  nav.open { display: flex; }
  .principles, .method-grid { grid-template-columns: 1fr; }
  .product { padding: 26px 20px; }
}
