/* ocapps landing. Tokens and layout follow the approved design (dark, neon accents). */

:root {
  --bg: #090d1a;
  --panel: #151a2c;
  --panel-2: #0f1424;
  --chrome: #1b2136;
  --text: #eef2ff;
  --muted: #c7cfe6;
  --muted-2: #a3adc8;
  --muted-3: #8b95b0;
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.1);
  --purple: #a78bfa;
  --purple-soft: #c4b5fd;
  --blue: #38bdf8;
  --green: #4ade80;
  --yellow: #facc15;
  --orange: #fb923c;
  --pink: #f472b6;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--purple-soft); text-decoration: none; }
a:hover { color: var(--text); }

img { max-width: 100%; }

h1, h2, h3 { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: #0b1020;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- background ---------- */

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

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

.blob-1 { left: -8%; top: 2%; width: 640px; height: 640px; background: rgba(167, 139, 250, 0.3); animation: drift-1 26s ease-in-out infinite; }
.blob-2 { left: 60%; top: 6%; width: 560px; height: 560px; background: rgba(56, 189, 248, 0.22); animation: drift-2 30s ease-in-out infinite; }
.blob-3 { left: 70%; top: 22%; width: 620px; height: 620px; background: rgba(74, 222, 128, 0.14); animation: drift-1 34s ease-in-out infinite; }
.blob-4 { left: -10%; top: 38%; width: 700px; height: 700px; background: rgba(251, 146, 60, 0.13); animation: drift-2 28s ease-in-out infinite; }
.blob-5 { left: 55%; top: 52%; width: 640px; height: 640px; background: rgba(244, 114, 182, 0.16); animation: drift-1 32s ease-in-out infinite; }
.blob-6 { left: -6%; top: 68%; width: 620px; height: 620px; background: rgba(56, 189, 248, 0.18); animation: drift-2 36s ease-in-out infinite; }
.blob-7 { left: 60%; top: 84%; width: 700px; height: 700px; background: rgba(167, 139, 250, 0.24); animation: drift-1 30s ease-in-out infinite; }

.dotgrid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.6px);
  background-size: 48px 48px;
  animation: gridmove 6s linear infinite;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.18);
  animation: spin 40s linear infinite;
}
.ring-1 { left: 58%; top: 40px; width: 760px; height: 760px; border-style: dashed; }
.ring-2 { left: 64%; top: 140px; width: 560px; height: 560px; animation-duration: 28s; animation-direction: reverse; }

.spark {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
  animation: spark 10s linear infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(160px, 90px) scale(1.2); }
  66% { transform: translate(-90px, 140px) scale(0.9); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-180px, -60px) scale(0.85); }
}
@keyframes gridmove { to { background-position: 96px 48px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spark {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(-420px); opacity: 0; }
}
@keyframes up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes bar { from { width: 0; } to { width: 100%; } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes marquee { to { transform: translateX(-50%); } }

.page { position: relative; z-index: 1; }

/* ---------- shared ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--purple);
  color: #120b2b;
  font-weight: 700;
}
.btn-primary:hover { color: #120b2b; box-shadow: 0 12px 32px rgba(167, 139, 250, 0.35); }

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.btn-outline:hover { border-color: rgba(167, 139, 250, 0.55); }

.kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 14px 0 12px;
}

.section-sub {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
}

.reveal { animation: up linear both; }
@supports (animation-timeline: view()) {
  .reveal {
    animation: up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

/* ---------- nav ---------- */

.nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
}
.brand:hover { color: var(--text); }

.nav-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 16px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.langs {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
}
.langs button {
  min-width: 40px;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  font: 600 14px Inter, sans-serif;
  cursor: pointer;
}
.langs button[aria-pressed="true"] {
  background: var(--text);
  color: #0b1020;
}

.nav-github {
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--text);
  color: #0b1020;
  font-weight: 700;
}
.nav-github:hover { color: #0b1020; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding: 56px 28px 96px;
}

.hero-glow {
  position: absolute;
  left: -200px;
  top: -160px;
  width: 720px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.22), transparent);
  pointer-events: none;
}

.hero-copy {
  flex: 1 1 480px;
  min-width: 0;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-title {
  margin: 26px 0 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.shine {
  background: linear-gradient(90deg, #c4b5fd, #38bdf8, #4ade80, #facc15, #c4b5fd);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}

.hero-sub {
  margin: 0 0 34px;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  font-size: 15px;
  color: var(--muted-2);
}
.hero-meta span::before {
  content: "\25CF";
  margin-right: 8px;
  color: var(--purple);
}

.hero-visual {
  position: relative;
  flex: 1 1 520px;
  min-width: 0;
  height: 620px;
}

.browser {
  position: absolute;
  left: 0;
  top: 30px;
  width: 88%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  animation: up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--chrome);
}
.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4262;
}
.browser-url {
  margin-left: 12px;
  font-size: 13px;
  color: var(--muted-3);
}

.browser-body { padding: 18px 20px 20px; background: var(--panel-2); }

.memories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.memories-head strong { font-size: 17px; }
.memories-head span { font-size: 12px; color: var(--muted-3); }

.memories-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mem-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
}
.mem-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.mem-card:hover img { transform: scale(1.07); }
.mem-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 9px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.mem-cap strong { display: block; font-size: 14px; }
.mem-cap span { font-size: 11px; color: #dbe3ff; }

.month-label { margin-bottom: 8px; font-size: 12px; color: var(--muted-3); }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
.mini-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.phone {
  position: absolute;
  right: 0;
  top: 120px;
  width: 250px;
  height: 500px;
  padding: 10px;
  border-radius: 40px;
  background: #05070f;
  border: 2px solid #2a3150;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: #10141f;
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 12px;
  font-size: 18px;
  font-weight: 700;
}
.phone-head i { width: 22px; height: 22px; border-radius: 7px; background: var(--green); }

.phone-hero {
  position: relative;
  margin: 0 12px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
}
.phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.9s ease, transform 4s ease;
}
.phone-slide.is-active { opacity: 1; transform: scale(1.08); }

.phone-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
.phone-caption strong { display: block; font-size: 16px; }
.phone-caption span { font-size: 13px; color: #dbe3ff; }

.phone-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 12px;
}
.phone-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  font: 600 22px "Space Grotesk", sans-serif;
  color: var(--muted);
  animation: marquee 32s linear infinite;
}
.mq {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: 46px;
}
.mq::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

/* ---------- switching ---------- */

.band {
  background: rgba(13, 18, 36, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.band-inner { padding-top: 96px; padding-bottom: 96px; }

.kicker-blue { color: var(--blue); }
.kicker-purple { color: var(--purple); }
.kicker-green { color: var(--green); }
.kicker-orange { color: var(--orange); }

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 36px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
}
.tabs button {
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: 600 17px Inter, sans-serif;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.tabs button[aria-selected="true"] {
  background: var(--text);
  color: #0b1020;
}

.switch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

.rows {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  transition: transform 0.3s, border-color 0.3s;
  animation: up 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.row:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.55); }

.row-from {
  flex: 0 1 190px;
  font-size: 17px;
  color: var(--muted-2);
  text-decoration: line-through;
  text-decoration-color: rgba(163, 173, 200, 0.5);
}
.row-new .row-from { color: var(--text); text-decoration: none; }

.row-arrow { flex: none; color: var(--purple); }

.row-to { flex: 1 1 260px; min-width: 0; }
.row-to strong { display: block; font-size: 18px; }
.row-to span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.drops {
  flex: 1 1 300px;
  min-width: 0;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.14), rgba(56, 189, 248, 0.06));
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.drops h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  margin-bottom: 18px;
}
.drop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #dbe3ff;
}
.drop svg { flex: none; margin-top: 2px; }

/* ---------- apps ---------- */

.section { padding: 104px 0; }

.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 30px;
}
.app-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font: 600 16px Inter, sans-serif;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.app-tab::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--purple));
}
.app-tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.09); border-color: var(--dot, var(--purple)); }
.app-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--dot, var(--purple));
  animation: bar 6s linear both;
}
.app-tab[data-app="agenda"] { --dot: var(--orange); }
.app-tab[data-app="contacts"] { --dot: var(--pink); }
.app-tab[data-app="news"] { --dot: var(--blue); }
.app-tab[data-app="notes"] { --dot: var(--yellow); }
.app-tab[data-app="photos"] { --dot: var(--green); }

.panel { display: none; }
.panel.is-active {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  animation: up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.panel-copy { flex: 1 1 340px; min-width: 0; }
.panel-kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.panel-title {
  margin: 12px 0 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.points { list-style: none; margin: 0; padding: 0; }
.points li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
.points li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--dot, var(--purple));
}
.mobile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 15px;
  color: #dbe3ff;
}

.panel-shot {
  flex: 1.5 1 520px;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.screen {
  display: flex;
  flex-wrap: wrap;
  min-height: 420px;
  background: var(--panel-2);
}

.side {
  flex: 0 0 180px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  color: var(--muted);
}
.side-title {
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted-3);
}
.side-item { padding: 10px; border-radius: 8px; }
.side-item.is-on { font-weight: 600; color: var(--text); }

.screen-list {
  flex: 1 1 230px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
}
.person.is-on { background: rgba(244, 114, 182, 0.14); }
.avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pink);
  color: #0b1020;
  font-size: 13px;
  font-weight: 700;
}
.person strong { display: block; font-weight: 600; color: var(--text); }
.person span { font-size: 12px; color: var(--muted-3); }

.screen-detail { flex: 1 1 260px; min-width: 0; padding: 28px; font-size: 15px; color: var(--muted); }
.big-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pink);
  color: #0b1020;
  font: 700 26px "Space Grotesk", sans-serif;
}
.screen-detail h4 { margin: 14px 0 4px; font-size: 24px; color: var(--text); }
.screen-detail .role { margin-bottom: 18px; color: var(--muted-3); }
.field-label { font-size: 12px; color: var(--muted-3); }
.field-value { margin-bottom: 12px; color: var(--text); }

.note-md {
  flex: 1 1 220px;
  min-width: 0;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font: 15px/1.8 "DejaVu Sans Mono", ui-monospace, monospace;
  color: var(--muted);
  white-space: pre-line;
}
.note-preview { flex: 1 1 220px; min-width: 0; padding: 24px; font-size: 16px; line-height: 1.9; color: #dbe3ff; }
.note-preview h4 { margin: 0 0 8px; font-size: 24px; }
.tick { color: var(--green); }
.cross { color: var(--muted-3); }

.cal { flex: 1 1 420px; min-width: 0; padding: 20px; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-head strong { font-size: 18px; }
.cal-head span { font-size: 13px; color: var(--muted-3); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  font-size: 12px;
}
.cal-grid .dow { padding: 4px 0; text-align: center; color: var(--muted-3); text-transform: uppercase; letter-spacing: 0.06em; }
.day {
  min-height: 62px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted-2);
}
.day.is-mute { background: transparent; border-color: transparent; }
.day.is-today { outline: 1px solid rgba(251, 146, 60, 0.6); background: rgba(251, 146, 60, 0.08); }
.day b { display: block; font-weight: 600; color: var(--text); }
.ev { display: block; margin-top: 4px; padding: 2px 5px; border-radius: 4px; font-size: 10px; color: #0b1020; font-weight: 700; }
.ev-o { background: var(--orange); }
.ev-b { background: var(--blue); }
.ev-g { background: var(--green); }
.ev-p { background: var(--pink); }
.ev-y { background: var(--yellow); }

.news-list { flex: 1 1 260px; min-width: 0; padding: 14px; border-right: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; }
.news-item { padding: 10px; border-radius: 8px; }
.news-item.is-on { background: rgba(56, 189, 248, 0.14); }
.news-item strong { display: block; font-weight: 600; color: var(--text); line-height: 1.35; }
.news-item span { font-size: 12px; color: var(--muted-3); }
.news-read { flex: 1 1 300px; min-width: 0; padding: 26px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.news-read h4 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; color: var(--text); }
.news-read .meta { margin-bottom: 14px; font-size: 12px; color: var(--muted-3); }
.news-read p { margin: 0 0 12px; }

.photo-panel { flex: 1 1 360px; min-width: 0; padding: 20px; }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}
.g-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  grid-column: span 2;
  grid-row: span 2;
}
.g-item.is-1 { grid-column: span 1; grid-row: span 1; }
.g-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.7s;
}
.g-item:hover img { transform: scale(1.07); }
.g-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 50px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
.g-cap strong { display: block; font-size: 20px; }
.g-cap span { font-size: 14px; color: #dbe3ff; }
.g-note { margin: 18px 0 0; font-size: 13px; color: var(--muted-3); }

/* ---------- steps + cta ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.step {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  transition: transform 0.3s, border-color 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.55); }
.step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--step, var(--purple));
  color: #0b1020;
  font: 700 20px "Space Grotesk", sans-serif;
}
.step-title { margin: 20px 0 10px; font-size: 21px; font-weight: 700; }
.step-text { font-size: 16px; line-height: 1.6; color: var(--muted); }

.cta {
  position: relative;
  overflow: hidden;
  padding: 64px 40px;
  border-radius: 28px;
  text-align: center;
  background: #12182e;
  border: 1px solid rgba(167, 139, 250, 0.3);
  margin-bottom: 110px;
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -220px;
  width: 900px;
  height: 500px;
  margin-left: -450px;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.2), transparent);
}
.cta h2 {
  position: relative;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.cta p {
  position: relative;
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}
.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.cta-actions .btn { min-height: 48px; padding: 0 22px; font-size: 16px; border-radius: 14px; }

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted-2);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero { gap: 32px; }
  .hero-visual { flex-basis: 100%; height: 480px; }
  .phone { width: 220px; height: 440px; top: 100px; }
  .phone-hero { height: 250px; }
}

@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 40px 20px 64px; }
  .hero-visual { height: auto; }
  .browser { position: relative; top: 0; width: 100%; }
  .phone { display: none; }
  .band-inner { padding-top: 64px; padding-bottom: 64px; }
  .section { padding: 64px 0; }
  .cta { padding: 44px 22px; margin-bottom: 64px; }
  .panel-shot { flex-basis: 100%; }
  .panel-title { font-size: 30px; }
  .side { flex-basis: 140px; }
  .g-item, .g-item.is-1 { grid-column: span 1; grid-row: span 1; }
  .cal-day { min-height: 48px; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .hero-title { font-size: clamp(38px, 10vw, 48px); }
  .hero-sub { font-size: 18px; }
  .memories-grid { flex-wrap: wrap; }
  .mem-card { flex-basis: 100%; height: 130px; }
  .mini-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabs button { padding: 0 16px; font-size: 15px; }
  .app-tab { padding: 0 16px; font-size: 15px; min-height: 46px; }
  .side { flex-basis: 100%; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .screen-list, .note-md { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .cal { padding: 12px; }
  .day { min-height: 44px; padding: 4px; }
  .ev { font-size: 9px; }
  .footer { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
