/* ─── OmniFiles site — Material-adjacent, honest, lavender. Light + dark. ─── */
:root {
  --paper: #FAF8FC;
  --card: #FFFFFF;
  --ink: #1C1B1F;
  --ink-soft: #49454F;
  --line: #E7E0EC;
  --primary: #6750A4;
  --primary-deep: #4F378B;
  --on-accent: #FFFFFF;
  --container: #EADDFF;
  --container-soft: #F3EDFA;
  --chip-ink: #4F378B;
  --green: #2E7D32;
  --green-bg: #E6F4E7;
  --amber: #8A6D00;
  --amber-bg: #FFF3C8;
  --shadow: rgba(103, 80, 164, 0.18);
  --shadow-soft: rgba(28, 27, 31, 0.06);
  /* phone mock */
  --ph-bg: #FDF8FF;
  --ph-card: #F3EDF7;
  --ph-ink: #1C1B1F;
  --ph-ink-soft: #49454F;
  --ph-line: #E7E0EC;
  --ph-nav: #F3EDF7;
  --ph-active: #E8DEF8;
}

[data-theme="dark"] {
  --paper: #141218;
  --card: #1D1B22;
  --ink: #E6E0E9;
  --ink-soft: #CAC4D0;
  --line: #36333C;
  --primary: #D0BCFF;
  --primary-deep: #CFBCFF;
  --on-accent: #381E72;
  --container: #4F378B;
  --container-soft: #1A1722;
  --chip-ink: #EADDFF;
  --green: #8FD694;
  --green-bg: #1E3320;
  --amber: #F2D877;
  --amber-bg: #3A3113;
  --shadow: rgba(0, 0, 0, 0.5);
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --ph-bg: #141218;
  --ph-card: #211F26;
  --ph-ink: #E6E0E9;
  --ph-ink-soft: #CAC4D0;
  --ph-line: #36333C;
  --ph-nav: #211F26;
  --ph-active: #4A4458;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Inter', sans-serif; }

/* ═══ Top bar ═══ */
.top { padding: 1.2rem 0; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg { width: 26px; height: 26px; color: var(--primary); }
.top-tools { display: flex; align-items: center; gap: 0.7rem; padding-right: 3.4rem; }
.hub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hub-link svg { width: 15px; height: 15px; }
.hub-link:hover, .hub-link:focus-visible { color: var(--primary-deep); border-color: var(--primary); }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--chip-ink);
  background: var(--container);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}
.status-chip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.theme-toggle {
  position: fixed;
  top: 1.1rem;
  right: 1.2rem;
  z-index: 60;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: none; }

/* ═══ Hero ═══ */
.hero { padding: 3.2rem 0 4.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero .lede {
  margin: 1.4rem 0 1.8rem;
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 32rem;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.soon-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
}
.soon-chip svg { width: 18px; height: 18px; }
.notify {
  color: var(--primary-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--container);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}
.notify:hover, .notify:focus-visible { border-color: var(--primary); }
.hero-facts {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-facts li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.45rem;
}
.hero-facts em { font-style: italic; }

/* ═══ Phone mock — themes with the page ═══ */
.hero-shot { display: flex; justify-content: center; perspective: 1100px; }
.phone-scene { position: relative; will-change: transform; }
.float-chip {
  position: absolute;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--chip-ink);
  background: var(--container);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  box-shadow: 0 8px 24px var(--shadow-soft);
  animation: chip-bob 6s ease-in-out infinite;
  pointer-events: none;
  white-space: nowrap;
}
.fc1 { top: 8%;  left: -3.2rem; animation-delay: -1s; }
.fc2 { top: 30%; right: -3.4rem; animation-delay: -2.5s; }
.fc3 { top: 55%; left: -3.8rem; animation-delay: -4s; }
.fc4 { top: 74%; right: -3rem; animation-delay: -0.5s; }
.fc5 { top: -4%; right: 8%; animation-delay: -3.2s; }
.fc6 { bottom: -3%; left: 12%; animation-delay: -5s; }
@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.phone {
  will-change: transform;
  transition: transform 0.18s ease-out;
}
.phone {
  width: min(310px, 80vw);
  background: var(--ph-bg);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 24px 60px var(--shadow);
  overflow: hidden;
  font-size: 13px;
  color: var(--ph-ink);
  transition: background 0.3s ease, border-color 0.3s ease;
  user-select: none;
}
.ph-status {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1.2rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
}
.ph-appbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem 0.6rem;
}
.ph-appbar h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.ph-pro {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--chip-ink);
  background: var(--container);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.ph-avatar {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--container);
  color: var(--chip-ink);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-section {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 1.2rem 0.4rem;
}
.ph-section strong { font-size: 0.95rem; font-weight: 600; }
.ph-section a { color: var(--primary-deep); font-size: 0.75rem; font-weight: 600; text-decoration: none; }
.ph-card {
  background: var(--ph-card);
  border-radius: 18px;
  margin: 0 0.8rem;
  padding: 0.2rem 0.9rem;
  transition: background 0.3s ease;
}
.ph-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--ph-line);
}
.ph-row:first-child { border-top: none; }
.ph-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--ph-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ph-ico svg { width: 19px; height: 19px; }
.ph-txt { display: flex; flex-direction: column; min-width: 0; }
.ph-txt b { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-txt small { font-size: 0.68rem; color: var(--ph-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-chev { margin-left: auto; color: var(--ph-ink-soft); font-size: 1rem; }
.ph-gap { height: 0.7rem; }
.ph-nav {
  display: flex;
  justify-content: space-around;
  background: var(--ph-nav);
  margin-top: 0.9rem;
  padding: 0.55rem 0 0.8rem;
  transition: background 0.3s ease;
}
.ph-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ph-ink-soft);
}
.ph-nav svg { width: 20px; height: 20px; }
.ph-nav .on { color: var(--ph-ink); }
.ph-nav .on i {
  display: flex;
  background: var(--ph-active);
  border-radius: 999px;
  padding: 0.15rem 0.9rem;
}
.ph-nav i { display: flex; padding: 0.15rem 0.9rem; font-style: normal; }

/* ═══ Sections shared ═══ */
section { padding: 4.2rem 0; }
section h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}
.section-lede { color: var(--ink-soft); max-width: 38rem; margin-bottom: 2.2rem; }

/* ═══ Principles ═══ */
.principles { background: var(--container-soft); transition: background 0.3s ease; }
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.principle {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem 1.7rem;
}
.principle h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.55rem; }
.principle p { font-size: 0.92rem; color: var(--ink-soft); }

/* ═══ Demo ═══ */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.toggles { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.6rem; }
.toggles label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.toggles em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chip-ink);
  background: var(--container);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
}
.toggles input { position: absolute; opacity: 0; }
.switch {
  width: 46px; height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--line);
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.toggles input:checked + .switch { background: var(--primary); border-color: var(--primary); }
.toggles input:checked + .switch::after { transform: translateX(20px); }
.toggles input:focus-visible + .switch { outline: 2px solid var(--primary); outline-offset: 3px; }

.demo-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: 0 14px 40px var(--shadow-soft);
}
.panel-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.9rem; }
.loc-list { list-style: none; }
.loc {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.2rem;
  border-top: 1px solid var(--line);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.loc:first-child { border-top: none; }
.loc.adding { opacity: 0; transform: translateY(6px); }
.loc-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loc-icon svg { width: 22px; height: 22px; }
.loc-icon.device { background: var(--container); color: var(--chip-ink); }
.loc-icon.nas    { background: #E0F1FF; color: #17527E; }
.loc-icon.sftp   { background: #1C1B1F; color: #A6F4A6; }
.loc-icon.s3     { background: #FFE8D9; color: #8F3E00; }
.loc-icon.cloud  { background: #FFF0E3; color: #8A4B00; }
[data-theme="dark"] .loc-icon.nas   { background: #143247; color: #A3D4F7; }
[data-theme="dark"] .loc-icon.sftp  { background: #0E1A0E; color: #A6F4A6; }
[data-theme="dark"] .loc-icon.s3    { background: #3B2113; color: #FFB68A; }
[data-theme="dark"] .loc-icon.cloud { background: #3A2A18; color: #F5C08A; }
.loc-text { display: flex; flex-direction: column; min-width: 0; }
.loc-text strong { font-size: 0.95rem; font-weight: 600; }
.loc-text small { font-size: 0.78rem; color: var(--ink-soft); }
.loc-state {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}
.panel-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ═══ Capabilities ═══ */
.caps { background: var(--container-soft); transition: background 0.3s ease; }
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.cap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.7rem 1.8rem;
}
.cap-glyph {
  width: 34px; height: 34px;
  color: var(--primary);
  margin-bottom: 0.9rem;
}
.cap h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.55rem; }
.cap p { font-size: 0.92rem; color: var(--ink-soft); }
.cap p strong { color: var(--ink); font-weight: 600; }

/* ═══ Modular / under the hood ═══ */
.tidy-list { list-style: none; margin-top: 1.4rem; }
.tidy-list li {
  padding: 0.65rem 0 0.65rem 1.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-soft);
  position: relative;
}
.tidy-list li:first-child { border-top: none; }
.tidy-list li::before {
  content: "—";
  position: absolute;
  left: 0.2rem;
  color: var(--primary);
  font-weight: 700;
}
.under-hood {
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: 1.8rem 1.9rem;
  transition: background 0.3s ease, color 0.3s ease;
}
[data-theme="dark"] .under-hood { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.uh-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.uh-list { list-style: none; }
.uh-list li {
  font-size: 0.88rem;
  opacity: 0.92;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(128, 128, 160, 0.25);
}
.uh-list li:first-child { border-top: none; }

/* ═══ Sources / pricing ═══ */
.sources { background: var(--container-soft); transition: background 0.3s ease; }
.source-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.source-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.7rem 1.8rem;
}
.tier {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
}
.tier.free { background: var(--green-bg); color: var(--green); }
.tier.pro  { background: var(--amber-bg); color: var(--amber); }
.source-col ul { list-style: none; margin: 1.1rem 0 1.2rem; }
.source-col li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.source-col li:first-child { border-top: none; }
.source-col li strong { color: var(--ink); font-weight: 600; }
.col-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ═══ Roadmap ═══ */
.road { list-style: none; max-width: 46rem; }
.road li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.road li:first-child { border-top: none; }
.road span {
  flex-shrink: 0;
  width: 4.2rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.22rem 0;
}
.road .done span  { background: var(--green-bg); color: var(--green); }
.road .next span  { background: var(--container); color: var(--chip-ink); }
.road .later span { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }

/* ═══ Closing ═══ */
.closing { text-align: center; padding: 5rem 0; }
.closing h2 { margin-bottom: 1.2rem; }
.notify.big { font-size: 1.1rem; }

/* ═══ Footer ═══ */
footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.foot-cookie {
  max-width: 1080px;
  margin: 0 auto 1.2rem;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.foot-cookie strong { color: var(--ink); }
.foot-row { display: flex; justify-content: space-between; align-items: center; }
footer a { color: var(--primary-deep); text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* staggered reveals */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.rv-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-chip .dot { animation: none; }
  .float-chip { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .loc, .switch, .switch::after, body, .phone, .ph-card, .ph-nav { transition: none; }
}

@media (max-width: 700px) {
  .float-chip { display: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-shot { order: -1; }
  .phone { width: min(270px, 74vw); }
  .principle-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cap-grid { grid-template-columns: 1fr; }
  .source-cols { grid-template-columns: 1fr; }
}
