﻿:root {
  color-scheme: dark;
  --bg: #050a14;
  --panel: rgba(13, 22, 39, 0.72);
  --panel-strong: rgba(17, 28, 50, 0.92);
  --text: #f7fbff;
  --muted: #a9b7cb;
  --soft: #71839e;
  --blue: #28b8ff;
  --blue-strong: #3487ff;
  --violet: #8b5cff;
  --purple: #b55cff;
  --line: rgba(156, 191, 255, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background:
    radial-gradient(circle at 78% 18%, rgba(139, 92, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 45% 20%, rgba(40, 184, 255, 0.2), transparent 28rem),
    linear-gradient(135deg, #040815 0%, #071526 44%, #0a081a 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site-shell::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

.ambient {
  position: fixed;
  z-index: -3;
  width: 38rem;
  height: 38rem;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.38;
  pointer-events: none;
}

.ambient-one {
  top: -10rem;
  right: -10rem;
  background: rgba(72, 140, 255, 0.45);
}

.ambient-two {
  bottom: 12rem;
  left: -16rem;
  background: rgba(151, 72, 255, 0.34);
}

.particle-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(40, 184, 255, 0.45) 0 1px, transparent 1.5px);
  background-position: 8% 18%, 84% 12%;
  background-size: 160px 160px, 220px 220px;
  opacity: 0.13;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 1.25rem 0;
}

.topbar.scrolled {
  background: rgba(5, 10, 20, 0.74);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 1.05rem;
  font-weight: 800;
  animation: fadeDown 700ms ease both;
}

.brand > span:last-child span,
.hero h1 span {
  background: linear-gradient(90deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background-image: url("assets/images/applogo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 0 24px rgba(45, 147, 255, 0.3);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 1.35rem;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  animation: fadeDown 800ms 80ms ease both;
}

.nav-links a {
  transition: color 180ms ease;
}

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

.nav-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 750;
}

.nav-cta {
  gap: 0.7rem;
  min-height: 50px;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  animation: fadeDown 800ms 140ms ease both;
}

.nav-cta img,
.store-button img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.store-button span:last-child {
  display: grid;
  line-height: 1.05;
}

.store-button small {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.menu-button {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: 4.25rem;
  width: min(1400px, calc(100% - 64px));
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 660px;
  animation: fadeUp 900ms 120ms ease both;
}

.eyebrow,
.section-kicker,
.section-heading p,
.cta-section p {
  color: #79d8ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow span {
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.hero h1 {
  margin: 0.9rem 0 0.5rem;
  font-size: clamp(3.4rem, 5vw, 5.15rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.subtitle {
  margin: 0;
  color: #dbe8ff;
  font-size: clamp(1.28rem, 2.3vw, 2rem);
  font-weight: 750;
}

.supporting {
  max-width: 560px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.1rem;
}

.primary-button {
  gap: 0.75rem;
  padding: 0 1.35rem;
  background: linear-gradient(90deg, var(--blue-strong), var(--violet));
  box-shadow: 0 16px 46px rgba(78, 129, 255, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.primary-button:active,
.secondary-button:active,
.nav-cta:active {
  transform: translateY(0) scale(0.98);
}

.store-button {
  min-height: 58px;
  padding: 0.58rem 1.35rem;
  text-align: left;
}

.store-button-disabled {
  border: 0;
  color: var(--text);
  cursor: default;
}

.secondary-button {
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  color: #dbe8ff;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 520px;
  margin-top: 2.4rem;
}

.quick-stats div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.quick-stats div,
.glass-card,
.feature-grid article,
.workspace-cards article,
.steps article,
.contact-grid a {
  will-change: transform;
}

.quick-stats div:hover,
.feature-grid article:hover,
.workspace-cards article:hover,
.steps article:hover {
  transform: translateY(-5px);
  border-color: rgba(126, 178, 255, 0.36);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
}

.quick-stats strong {
  display: block;
  font-size: 1.35rem;
}

.quick-stats span {
  color: var(--soft);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 660px;
  animation: fadeScale 850ms 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.phone {
  position: absolute;
  border: 1px solid rgba(183, 208, 255, 0.2);
  border-radius: 36px;
  background: linear-gradient(145deg, #172033, #050914);
  box-shadow: var(--shadow), inset 0 0 0 7px rgba(255, 255, 255, 0.035);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.phone-main {
  animation: phoneSettle 850ms 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.phone-back {
  animation: backPhoneSettle 850ms 430ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.phone::before {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 88px;
  height: 18px;
  border-radius: 0 0 16px 16px;
  background: #050914;
  content: "";
  transform: translateX(-50%);
  z-index: 2;
}

.phone-main {
  right: 0;
  top: 4%;
  width: min(310px, 52vw);
  height: 600px;
}

.phone-back {
  left: 12%;
  top: 18%;
  width: 280px;
  height: 500px;
  opacity: 0.78;
  transform: rotate(-5deg);
}

.phone-screen {
  position: absolute;
  inset: 12px;
  overflow: hidden;
  padding: 2.75rem 1rem 1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 5%, rgba(53, 151, 255, 0.18), transparent 12rem),
    linear-gradient(180deg, #101a2b, #080d18);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #91a4bd;
  font-size: 0.68rem;
  font-weight: 700;
}

.phone-status span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-status span:last-child {
  flex: 0 0 auto;
}

.phone h2 {
  margin: 1.1rem 0 0.35rem;
  font-size: 1rem;
}

.phone p {
  margin: 0;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.glass-card,
.insight-card,
.feature-grid article,
.workspace-panel,
.steps article {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.glass-card {
  min-height: 110px;
  padding: 0.9rem;
  border-radius: 8px;
  contain: layout paint;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(126, 178, 255, 0.36);
}

.glass-card strong {
  display: block;
  margin-top: 1.45rem;
  font-size: 1.5rem;
}

.card-icon,
.feature-icon,
.mini-icon,
.ui-icon,
.strip-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.card-icon,
.feature-icon,
.mini-icon,
.ui-icon,
.strip-icon {
  position: relative;
}

.card-icon::before,
.feature-icon::before,
.mini-icon::before,
.ui-icon::before,
.strip-icon::before {
  position: absolute;
  inset: 5px;
  content: "";
  background: #eff8ff;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.feature-icon::before {
  inset: 10px;
}

.strip-icon::before {
  inset: 4px;
}

.ui-icon {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.icon-book {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4.5A2.5 2.5 0 0 1 7.5 2H20v18H7.5A2.5 2.5 0 0 0 5 22V4.5Zm2.5-.5a.5.5 0 0 0-.5.5v13.7c.2-.1.3-.1.5-.1H18V4H7.5Z'/%3E%3C/svg%3E");
}

.icon-note,
.icon-pen {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 3h8l4 4v14H6V3Zm8 1.8V8h3.2L14 4.8ZM8 11v2h8v-2H8Zm0 4v2h6v-2H8Z'/%3E%3C/svg%3E");
}

.icon-folder {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6.5A2.5 2.5 0 0 1 5.5 4H10l2 2h6.5A2.5 2.5 0 0 1 21 8.5v8A3.5 3.5 0 0 1 17.5 20h-11A3.5 3.5 0 0 1 3 16.5v-10Z'/%3E%3C/svg%3E");
}

.icon-check {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.3 5.6 10 14.9l-4.3-4.3L4 12.3l6 6 11-11-1.7-1.7Z'/%3E%3C/svg%3E");
}

.icon-scan {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm12 0h2v6h-6v-2h4v-4ZM8 11h8v2H8v-2Z'/%3E%3C/svg%3E");
}

.icon-wave {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 10h2v4H4v-4Zm4-4h2v12H8V6Zm4 3h2v6h-2V9Zm4-5h2v16h-2V4Zm4 6h2v4h-2v-4Z'/%3E%3C/svg%3E");
}

.icon-cards {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4h12a2 2 0 0 1 2 2v10h-2V6H5V4Zm-2 4h12a2 2 0 0 1 2 2v10H5a2 2 0 0 1-2-2V8Zm3 4v2h8v-2H6Zm0 4v2h5v-2H6Z'/%3E%3C/svg%3E");
}

.icon-chat {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5.5A3.5 3.5 0 0 1 7.5 2h9A3.5 3.5 0 0 1 20 5.5v6A3.5 3.5 0 0 1 16.5 15H10l-5 5v-5.5A3.5 3.5 0 0 1 4 12V5.5Z'/%3E%3C/svg%3E");
}

.icon-review {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 3h12v18H6V3Zm3 4v2h6V7H9Zm0 4v2h6v-2H9Zm0 4v2h4v-2H9Z'/%3E%3C/svg%3E");
}

.icon-quiz {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 16h2v2h-2v-2Zm1-12a5 5 0 0 0-5 5h2a3 3 0 1 1 4.1 2.8A3.3 3.3 0 0 0 11 15h2c0-.7.5-1.2 1.2-1.5A5 5 0 0 0 12 4Z'/%3E%3C/svg%3E");
}

.icon-users {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0 2c-3.3 0-6 1.7-6 3.8V20h12v-2.2C15 15.7 12.3 14 9 14Zm8-2.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm.2 2c-.9 0-1.8.1-2.5.4 1.5.9 2.3 2.2 2.3 3.9V20h4v-2c0-2.5-1.8-4.5-3.8-4.5Z'/%3E%3C/svg%3E");
}

.icon-target {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 2h2v3.1A7 7 0 0 1 18.9 11H22v2h-3.1A7 7 0 0 1 13 18.9V22h-2v-3.1A7 7 0 0 1 5.1 13H2v-2h3.1A7 7 0 0 1 11 5.1V2Zm1 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 3a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z'/%3E%3C/svg%3E");
}

.icon-mail {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm0 3.2V17h16V8.2l-8 5.3-8-5.3ZM5.3 7l6.7 4.5L18.7 7H5.3Z'/%3E%3C/svg%3E");
}

.icon-phone {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.6 2h3.1l1.6 5.2-2.1 1.4a12.8 12.8 0 0 0 6.2 6.2l1.4-2.1 5.2 1.6v3.1A4.6 4.6 0 0 1 17.4 22C8.9 22 2 15.1 2 6.6A4.6 4.6 0 0 1 6.6 2Z'/%3E%3C/svg%3E");
}

.icon-shield {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 5 5v6c0 4.6 2.9 8.9 7 11 4.1-2.1 7-6.4 7-11V5l-7-3Zm0 2.2 5 2.1V11c0 3.6-2.1 7-5 8.8-2.9-1.8-5-5.2-5-8.8V6.3l5-2.1Z'/%3E%3C/svg%3E");
}
.icon-facebook {
  --icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 8h3V4h-3.5A4.5 4.5 0 0 0 9 8.5V11H6v4h3v7h4v-7h3.2l.8-4h-4V8.5A.5.5 0 0 1 13.5 8H14Z'/%3E%3C/svg%3E");
}

.cyan { background: linear-gradient(135deg, #28d5ff, #237dff); }
.violet { background: linear-gradient(135deg, #b55cff, #6938ff); }
.amber { background: linear-gradient(135deg, #ffb84d, #ff8a1f); }
.green { background: linear-gradient(135deg, #23df9d, #0b9f92); }

.insight-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: 8px;
}

.insight-card > span {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--blue), var(--violet), #19f4d0, var(--blue));
  box-shadow: 0 0 30px rgba(40, 184, 255, 0.32);
}

.insight-card > span::before {
  position: absolute;
  inset: 11px;
  content: "";
  background: #eff8ff;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.note-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.note-list div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #e9f2ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.mini-icon {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 1.25rem 0 4.5rem;
  border-top: 1px solid var(--line);
  color: #d7e7ff;
}

.logo-strip span {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem;
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 180ms ease, color 180ms ease;
}

.logo-strip span:hover {
  transform: translateY(-3px);
  color: var(--text);
}

.strip-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(40, 184, 255, 0.95), rgba(139, 92, 255, 0.95));
  font-style: normal;
  box-shadow: 0 0 24px rgba(74, 137, 255, 0.2);
}

.logo-strip span:last-child {
  border-right: 0;
}

.section {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 4.5rem 0;
}

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

.section-heading h2,
.workspace-panel h2,
.cta-section h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid-expanded {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article,
.steps article {
  min-height: 250px;
  padding: 1.4rem;
  border-radius: 8px;
  contain: layout paint;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.feature-grid h3,
.steps h3 {
  margin: 1.35rem 0 0.7rem;
  font-size: 1.25rem;
}

.feature-grid p,
.steps p,
.workspace-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-icon.notes { background: linear-gradient(135deg, #2dc7ff, #376dff); }
.feature-icon.cards { background: linear-gradient(135deg, #8b5cff, #de71ff); }
.feature-icon.focus { background: linear-gradient(135deg, #17e7c7, #3487ff); }
.feature-icon.subjects { background: linear-gradient(135deg, #34a7ff, #19e6c9); }
.feature-icon.files { background: linear-gradient(135deg, #ffb84d, #ff7b52); }
.feature-icon.tasks { background: linear-gradient(135deg, #24d79c, #13a8b2); }
.feature-icon.chat { background: linear-gradient(135deg, #28b8ff, #8b5cff); }
.feature-icon.quiz { background: linear-gradient(135deg, #b55cff, #ff71c8); }
.feature-icon.rooms { background: linear-gradient(135deg, #50d5ff, #6268ff); }
.feature-icon.scan { background: linear-gradient(135deg, #2dc7ff, #5f7cff); }
.feature-icon.voice { background: linear-gradient(135deg, #15d7d1, #8b5cff); }
.feature-icon.analytics { background: linear-gradient(135deg, #23df9d, #3487ff); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(55, 125, 255, 0.22);
}

.workspace-section {
  padding: 3rem 0;
}

.workspace-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 20%, rgba(85, 102, 255, 0.25), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.workspace-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.workspace-cards article {
  min-height: 142px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 8, 21, 0.42);
  contain: layout paint;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.workspace-cards strong {
  display: block;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.workspace-cards span {
  display: block;
  margin-top: 0.5rem;
  color: var(--soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.steps article span {
  color: #79d8ff;
  font-size: 0.85rem;
  font-weight: 800;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1400px, calc(100% - 64px));
  margin: 3rem auto 5rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(52, 135, 255, 0.18), rgba(139, 92, 255, 0.14)),
    rgba(255, 255, 255, 0.05);
}

.contact-section {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto 5rem;
  padding: 4rem 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.contact-grid a {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 104px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 178, 255, 0.36);
  background: rgba(255, 255, 255, 0.085);
}

.feature-grid article:active,
.workspace-cards article:active,
.steps article:active,
.contact-grid a:active,
.glass-card:active {
  transform: translateY(-2px) scale(0.99);
}

.contact-grid strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.contact-grid span {
  min-width: 0;
  color: var(--muted);
  word-break: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  color: #dbe8ff;
  font-weight: 700;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes backPhoneSettle {
  from {
    opacity: 0;
    transform: rotate(-5deg) translateY(22px) scale(0.97);
  }
  to {
    opacity: 0.78;
    transform: rotate(-5deg) translateY(0) scale(1);
  }
}

@keyframes mobilePhoneSettle {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes menuItemIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 78px);
    left: 50%;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: min(calc(100vw - 28px), 420px);
    max-height: calc(100vh - 106px);
    max-height: calc(100dvh - 106px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
      radial-gradient(circle at 100% 0, rgba(72, 140, 255, 0.18), transparent 10rem),
      rgba(7, 13, 28, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px) scale(0.98);
    transform-origin: top center;
    touch-action: pan-y;
    transition:
      opacity 220ms ease,
      visibility 220ms ease,
      transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .menu-button {
    position: relative;
    justify-self: end;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 180ms ease, border-color 180ms ease;
  }

  .menu-button span {
    grid-area: 1 / 1;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--text);
    transition: transform 180ms ease;
  }

  .menu-button span:first-child {
    transform: translateY(-4px);
  }

  .menu-button span:last-child {
    transform: translateY(4px);
  }

  .menu-button.is-open {
    border-color: rgba(126, 178, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
  }

  .menu-button.is-open span:first-child {
    transform: rotate(45deg);
  }

  .menu-button.is-open span:last-child {
    transform: rotate(-45deg);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .nav-links.open a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem;
    border: 1px solid rgba(156, 191, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: #e7f0ff;
    font-size: 0.84rem;
    opacity: 0;
    animation: menuItemIn 260ms ease both;
  }

  .nav-links.open a:nth-child(2) {
    animation-delay: 35ms;
  }

  .nav-links.open a:nth-child(3) {
    animation-delay: 70ms;
  }

  .nav-links.open a:nth-child(4) {
    animation-delay: 105ms;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-visual {
    min-height: 580px;
  }

  .phone-back {
    left: 6%;
  }

  .logo-strip,
  .feature-grid,
  .workspace-panel,
  .contact-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .logo-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .logo-strip span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero,
  .section,
  .logo-strip,
  .workspace-panel,
  .cta-section,
  .contact-section,
  footer {
    width: min(100% - 24px, 1400px);
  }

  .topbar {
    padding: 0.85rem 0 0.55rem;
  }

  .nav-links.open {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
  }

  .brand > span:last-child {
    max-width: 158px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.96rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    gap: 1rem;
    padding: 1rem 0 1.1rem;
  }

  .hero-copy {
    padding: 1rem;
    border: 1px solid rgba(156, 191, 255, 0.13);
    border-radius: 8px;
    background:
      radial-gradient(circle at 100% 0, rgba(139, 92, 255, 0.12), transparent 12rem),
      rgba(255, 255, 255, 0.035);
  }

  .eyebrow {
    gap: 0.55rem;
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .eyebrow span {
    width: 24px;
  }

  .hero h1 {
    max-width: 100%;
    margin-top: 0.7rem;
    font-size: clamp(2rem, 9.8vw, 2.75rem);
    line-height: 1;
    overflow-wrap: normal;
  }

  .subtitle {
    font-size: clamp(1.05rem, 5vw, 1.28rem);
    line-height: 1.18;
  }

  .supporting {
    margin-top: 0.8rem;
    font-size: 0.91rem;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 48px;
  }

  .store-button {
    min-height: 52px;
    padding: 0.5rem 1rem;
  }

  .nav-cta img,
  .store-button img {
    width: 24px;
    height: 24px;
  }

  .quick-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.85rem;
  }

  .quick-stats div {
    min-height: 68px;
    padding: 0.75rem 0.6rem;
    border-radius: 8px;
    background: rgba(6, 14, 31, 0.62);
  }

  .quick-stats strong {
    font-size: 1.15rem;
  }

  .quick-stats span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .hero-visual {
    display: grid;
    place-items: center;
    min-height: 445px;
    margin-top: 0;
  }

  .hero-visual::before {
    position: absolute;
    inset: 0.5rem 0 0;
    border: 1px solid rgba(126, 178, 255, 0.12);
    border-radius: 8px;
    background:
      radial-gradient(circle at 50% 12%, rgba(40, 184, 255, 0.18), transparent 11rem),
      rgba(255, 255, 255, 0.025);
    content: "";
  }

  .phone-main {
    right: auto;
    left: 50%;
    width: min(268px, 86vw);
    height: 430px;
    transform: translateX(-50%);
    animation: mobilePhoneSettle 700ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .phone-back {
    display: none;
  }

  .app-grid {
    gap: 0.5rem;
  }

  .glass-card {
    min-height: 76px;
    padding: 0.62rem;
  }

  .glass-card strong {
    margin-top: 0.75rem;
    font-size: 1.12rem;
  }

  .phone-screen {
    padding: 2.25rem 0.75rem 0.75rem;
  }

  .phone h2 {
    margin-top: 0.75rem;
    font-size: 0.84rem;
  }

  .phone p {
    font-size: 0.68rem;
  }

  .phone-status {
    font-size: 0.62rem;
  }

  .insight-card {
    gap: 0.7rem;
    margin-top: 0.62rem;
    padding: 0.68rem;
  }

  .insight-card div {
    min-width: 0;
  }

  .insight-card strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.12;
  }

  .insight-card > span {
    width: 38px;
    height: 38px;
  }

  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.7rem 0 1.55rem;
    border-top: 0;
  }

  .logo-strip span {
    gap: 0.55rem;
    justify-content: flex-start;
    min-height: 52px;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .logo-strip span:last-child {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .section {
    padding: 2.2rem 0;
  }

  .section-heading {
    margin-bottom: 1.35rem;
  }

  .section-heading p,
  .section-kicker,
  .cta-section p {
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .section-heading h2,
  .workspace-panel h2,
  .cta-section h2 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .feature-grid article,
  .steps article {
    min-height: auto;
    padding: 1rem;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03));
  }

  .feature-grid article,
  .workspace-cards article,
  .steps article,
  .contact-grid a,
  .logo-strip span {
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      background 180ms ease;
  }

  .feature-grid h3,
  .steps h3 {
    margin-top: 1rem;
    font-size: 1.08rem;
  }

  .feature-grid p,
  .steps p,
  .workspace-panel p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .workspace-section {
    padding: 1.35rem 0;
  }

  .workspace-panel {
    padding: 1rem;
    background:
      radial-gradient(circle at 85% 5%, rgba(40, 184, 255, 0.14), transparent 12rem),
      linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  }

  .workspace-cards {
    gap: 0.65rem;
  }

  .workspace-cards article {
    min-height: 106px;
    padding: 0.78rem;
  }

  .workspace-cards strong {
    margin-top: 0.7rem;
    font-size: 1rem;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    margin: 1.6rem auto 3rem;
    padding: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .contact-section {
    margin-bottom: 3rem;
    padding-top: 1.75rem;
  }

  .contact-grid a {
    min-height: 82px;
    padding: 0.95rem;
  }
}

@media (max-width: 380px) {
  .topbar,
  .hero,
  .section,
  .logo-strip,
  .workspace-panel,
  .cta-section,
  .contact-section,
  footer {
    width: min(100% - 20px, 1400px);
  }

  .brand > span:last-child {
    max-width: 132px;
    font-size: 0.88rem;
  }

  .hero h1 {
    font-size: clamp(1.92rem, 9.8vw, 2.28rem);
  }

  .subtitle {
    font-size: 1.12rem;
  }

  .supporting {
    font-size: 0.92rem;
  }

  .quick-stats div {
    padding: 0.65rem 0.45rem;
  }

  .quick-stats strong {
    font-size: 1rem;
  }

  .quick-stats span {
    font-size: 0.66rem;
  }

  .phone-main {
    width: min(250px, 88vw);
    height: 410px;
  }

  .logo-strip span {
    font-size: 0.74rem;
  }

  .strip-icon {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 640px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-links {
    width: 100%;
  }
}
