/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Fonts ────────────────────────────────────────────────
   Golos Text — основной текст (кириллица родная, не латинская докрутка),
   спокойный на маленьких размерах и в тёмной теме.
   J Audio Cassette — заголовки, бренд «Sphere», подписи блоков и крупные
   названия на холсте. Свои файлы (public/fonts), кириллица полная.

   У шрифта одно тонкое начертание — оно стало весом 300. Веса 400–700
   собраны из него утолщением контуров так, что штрих совпадает с Unbounded
   того же веса (прежний шрифт заголовков): подписи блоков (600) и бренд
   (700) остаются такими же плотными. Без своих файлов браузер нарисовал бы
   на 600–700 поддельный жирный — размазанный, чужой рисунку шрифта.
   Все веса сжаты на 10% по ширине, а середина строки в файлах совпадает с
   серединой прописных — текст стоит ровно по центру кнопок и блоков. ── */
@font-face {
  font-family: 'J Audio Cassette';
  src: url('/fonts/cassette-300.woff2') format('woff2'),
       url('/fonts/cassette-300.woff') format('woff');
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'J Audio Cassette';
  src: url('/fonts/cassette-400.woff2') format('woff2'),
       url('/fonts/cassette-400.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'J Audio Cassette';
  src: url('/fonts/cassette-500.woff2') format('woff2'),
       url('/fonts/cassette-500.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'J Audio Cassette';
  src: url('/fonts/cassette-500.woff2') format('woff2'),
       url('/fonts/cassette-500.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'J Audio Cassette';
  src: url('/fonts/cassette-500.woff2') format('woff2'),
       url('/fonts/cassette-500.woff') format('woff');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: 'Golos Text', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: 'J Audio Cassette', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Форма: единая система скруглений ─────────────────────────────
   По образцу Apple Liquid Glass (WWDC25 «Get to know the new design
   system»). Форм всего три, и выбирается она по РОЛИ элемента, а не на глаз:

   1. Капсула — радиус равен половине высоты. Все элементы управления:
      кнопки, поля ввода в одну строку, чипы, сегменты, переключатели,
      тултипы в одну строку, иконки-кнопки (квадратная капсула = круг).

   2. Фиксированный радиус — у самостоятельных поверхностей. Только ступени
      шкалы ниже, никаких «9px здесь, 11px там»: раньше в интерфейсе жило
      27 разных радиусов, и одинаковые по роли кнопки скруглялись на 7, 8, 9
      и 12 px.

   3. Концентрический — у вложенного в поверхность: радиус родителя минус
      отступ до края. Тогда кривая внутреннего элемента идёт параллельно
      внешней, как у кнопки в углу окна macOS, — а не спорит с ней.

   Круги (аватар, точка статуса, радиокнопка) остаются 50%: это не
   скругление, а сама форма. */
:root {
  --r-capsule: 999px;

  /* Ступени фиксированного радиуса */
  --r-xs: 6px;      /* метки в тексте: код, выделение, клавиша, событие в сетке */
  --r-sm: 12px;     /* мелкие плитки: день в календаре, картинка в заметке */
  --r-md: 18px;     /* карточки в потоке, пузыри чата, многострочные поля */
  --r-lg: 24px;     /* поповеры, меню, выпадающие списки */
  --r-xl: 30px;     /* панели и окна поверх холста */
  --r-2xl: 36px;    /* модальные окна */

  /* Концентричность: отступ поверхности до её содержимого и радиус того,
     что стоит внутри. Пункт меню, карточка задачи, строка настроек — все
     берут радиус отсюда, а не свой. */
  --pad-popover: 8px;
  --r-in-popover: calc(var(--r-lg) - var(--pad-popover));   /* 16px */
  --pad-panel: 16px;
  --r-in-panel: calc(var(--r-xl) - var(--pad-panel));       /* 14px */
  --pad-modal: 16px;
  --r-in-modal: calc(var(--r-2xl) - var(--pad-modal));      /* 20px */

  /* Материал стекла: размытие одно на весь интерфейс. Насыщенность
     поднимаем — размытие усредняет цвета и выхолащивает их, без этого
     стекло над цветными блоками выглядит серой плёнкой. */
  --glass-blur: blur(22px) saturate(170%);
}

/* ── Light theme (default) ───────────────────────────────── */
:root {
  --bg-app: #eef0f5;
  --bg-canvas: #e4e6ee;
  --surface-1: #ffffff;
  --surface-2: #f4f5f9;
  --surface-3: #e9ebf1;
  --border: rgba(15, 15, 20, 0.10);
  --border-strong: rgba(15, 15, 20, 0.18);
  --text-primary: #16171c;
  --text-secondary: rgba(22, 23, 28, 0.58);
  --accent: #3b6ef6;
  --accent-contrast: #ffffff;
  --danger: #ef4444;
  --danger-strong: #dc2626;

  --shadow-soft: 0 2px 10px rgba(15, 15, 20, 0.06);
  --shadow-node: 0 4px 16px rgba(15, 15, 20, 0.10);
  --glow-accent: none;
  --scrim: rgba(10, 10, 14, 0.28);

  /* ── Стекло (Liquid Glass) ─────────────────────────────────
     Только для слоя управления поверх холста: панели, меню, тулбар. На
     контент (блоки, карточки внутри панели) стекло не кладём — Apple прямо
     запрещает «стекло на стекле»: вложенное стекло теряет иерархию.
     fill — подложка поверхности: достаточно плотная, чтобы текст читался над
     любым участком доски, и достаточно прозрачная, чтобы доска угадывалась.
     rim — светлый блик по верхней кромке, edge — тонкая граница по контуру:
     вместе они дают толщину стекла без тяжёлой обводки. */
  --glass-fill: color-mix(in srgb, var(--surface-1) 80%, transparent);
  --glass-rim: rgba(255, 255, 255, 0.75);
  --glass-edge: rgba(15, 15, 20, 0.08);
  --glass-shadow: 0 1px 2px rgba(15, 15, 20, 0.05), 0 12px 32px -8px rgba(15, 15, 20, 0.18);

  /* Подсказка — инверсия темы (см. .tooltip-glass). Через текст и фон
     приложения, поэтому в тёмной теме переворачивается сама. */
  --tip-bg: var(--text-primary);
  --tip-text: var(--bg-app);

  --status-none: #c7c9d4;
  --status-burning: #ef4444;
  --status-in-progress: #eab308;
  --status-done: #22c55e;

  /* ── Панели: фон + «приподнятые» элементы на них ──────────
     Обычный режим — плоские поверхности как раньше. Режим «Градиент
     интерфейса» (см. [data-panel-gradient] ниже) переопределяет только эти
     токены, поэтому ни один компонент про настройку не знает. ── */
  --panel-bg: var(--glass-fill);
  /* Сплошной вариант подложки — для окна, которое и так лежит на затемнении
     и размывать под собой ему нечего (окно календаря). */
  --panel-solid: var(--surface-1);
  /* Всё, что лежит НА стеклянной панели, — не стекло, а тонированная
     подложка: полупрозрачный оттенок текста. Так кнопка одинаково читается
     и на белой панели, и на стекле над пёстрой доской, и в тёмной теме
     (там --text-primary светлый — формула та же). */
  --panel-elev: color-mix(in srgb, var(--text-primary) 6%, transparent);        /* кнопка/активная вкладка НА панели */
  --panel-elev-hover: color-mix(in srgb, var(--text-primary) 10%, transparent);
  --panel-inset: color-mix(in srgb, var(--text-primary) 5%, transparent);       /* утопленная дорожка под вкладками */
  --panel-hover: color-mix(in srgb, var(--text-primary) 5%, transparent);       /* мягкая подсветка строки под курсором */
  --panel-knob: var(--surface-1);        /* шайба переключателя / активная пилюля */

  /* Опорные цвета сине-зелёного градиента. Задаются в каждой теме отдельно:
     подмешивание в белый (#fff) и в почти-чёрный (#17191f) ведёт себя
     принципиально по-разному, одни и те же проценты дают либо выцветшую
     пастель, либо грязь. */
  --grad-a: color-mix(in srgb, #10b981 34%, #ffffff); /* изумруд */
  --grad-b: color-mix(in srgb, #22c9d4 30%, #ffffff); /* бирюза  */
  --grad-c: color-mix(in srgb, #3b6ef6 26%, #ffffff); /* синий   */
  /* Кнопка на цветной панели: полупрозрачное «стекло» вместо серой заливки.
     В светлой теме подложка белая (осветляет), в тёмной — тоже белая, но
     совсем слабая, иначе кнопка выбьется ярким пятном. */
  --panel-elev-grad: color-mix(in srgb, #22c9d4 52%, #ffffff);
  --panel-elev-grad-hover: color-mix(in srgb, #22c9d4 66%, #ffffff);
  --panel-inset-grad: color-mix(in srgb, #0e7490 17%, transparent);
  --panel-hover-grad: color-mix(in srgb, #22c9d4 30%, transparent);
  --panel-knob-grad: color-mix(in srgb, #22c9d4 15%, #ffffff);

  color-scheme: light;
}

/* ── Dark theme — follows OS unless a manual override is set ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Нейтральный графит без оттенка — как белый в светлой теме. Прежние
       поверхности (#17191f и соседи) уходили в сине-фиолетовый, и без
       градиента интерфейс выглядел подкрашенным. */
    --bg-app: #0c0c0c;
    --bg-canvas: #111111;
    --surface-1: #1a1a1a;
    --surface-2: #222222;
    --surface-3: #2b2b2b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text-primary: #f2f2f2;
    --text-secondary: rgba(242, 242, 242, 0.58);
    --accent: #5b8bff;
    --accent-contrast: #ffffff;
    --danger: #f87171;
    --danger-strong: #ef4444;

    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-node: 0 4px 18px rgba(0, 0, 0, 0.4);
    --glow-accent: 0 0 24px rgba(91, 139, 255, 0.35);
    --scrim: rgba(0, 0, 0, 0.55);

    /* В тёмной теме блик кромки едва заметен — яркий читался бы как белая
       обводка, — а глубину держит тень. */
    --glass-rim: rgba(255, 255, 255, 0.10);
    --glass-edge: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px -8px rgba(0, 0, 0, 0.6);

    --status-none: #3a3a3c;
    --status-burning: #f87171;
    --status-in-progress: #fbbf24;
    --status-done: #34d399;

    --panel-knob: var(--surface-3);
    /* Подмешиваем в тёмную поверхность, а не в белую — проценты выше, чем в
       светлой теме, иначе цвет тонет в почти-чёрном фоне. */
    --grad-a: color-mix(in srgb, #10b981 30%, #17191f);
    --grad-b: color-mix(in srgb, #22c9d4 26%, #17191f);
    --grad-c: color-mix(in srgb, #5b8bff 30%, #17191f);
    --panel-elev-grad: color-mix(in srgb, #22c9d4 44%, #17191f);
    --panel-elev-grad-hover: color-mix(in srgb, #22c9d4 56%, #17191f);
    --panel-inset-grad: rgba(0, 0, 0, 0.30);
    --panel-hover-grad: color-mix(in srgb, #22c9d4 17%, transparent);
    --panel-knob-grad: color-mix(in srgb, #22c9d4 46%, #17191f);

    color-scheme: dark;
  }
}

/* ── Manual override: forced dark ─────────────────────────── */
:root[data-theme="dark"] {
  /* Нейтральный графит — см. пояснение в блоке тёмной темы выше. */
  --bg-app: #0c0c0c;
  --bg-canvas: #111111;
  --surface-1: #1a1a1a;
  --surface-2: #222222;
  --surface-3: #2b2b2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f2f2f2;
  --text-secondary: rgba(242, 242, 242, 0.58);
  --accent: #5b8bff;
  --accent-contrast: #ffffff;
  --danger: #f87171;
  --danger-strong: #ef4444;

  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-node: 0 4px 18px rgba(0, 0, 0, 0.4);
  --glow-accent: 0 0 24px rgba(91, 139, 255, 0.35);
  --scrim: rgba(0, 0, 0, 0.55);

  --glass-rim: rgba(255, 255, 255, 0.10);
  --glass-edge: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px -8px rgba(0, 0, 0, 0.6);

  --status-none: #3a3a3c;
  --status-burning: #f87171;
  --status-in-progress: #fbbf24;
  --status-done: #34d399;

  --panel-knob: var(--surface-3);
  --grad-a: color-mix(in srgb, #10b981 30%, #17191f);
  --grad-b: color-mix(in srgb, #22c9d4 26%, #17191f);
  --grad-c: color-mix(in srgb, #5b8bff 30%, #17191f);
  --panel-elev-grad: color-mix(in srgb, #22c9d4 44%, #17191f);
  --panel-elev-grad-hover: color-mix(in srgb, #22c9d4 56%, #17191f);
  --panel-inset-grad: rgba(0, 0, 0, 0.30);
  --panel-hover-grad: color-mix(in srgb, #22c9d4 17%, transparent);
  --panel-knob-grad: color-mix(in srgb, #22c9d4 46%, #17191f);

  color-scheme: dark;
}

/* ── Manual override: forced light (re-asserts light even if OS is dark) ── */
:root[data-theme="light"] {
  --bg-app: #eef0f5;
  --bg-canvas: #e4e6ee;
  --surface-1: #ffffff;
  --surface-2: #f4f5f9;
  --surface-3: #e9ebf1;
  --border: rgba(15, 15, 20, 0.10);
  --border-strong: rgba(15, 15, 20, 0.18);
  --text-primary: #16171c;
  --text-secondary: rgba(22, 23, 28, 0.58);
  --accent: #3b6ef6;
  --accent-contrast: #ffffff;
  --danger: #ef4444;
  --danger-strong: #dc2626;

  --shadow-soft: 0 2px 10px rgba(15, 15, 20, 0.06);
  --shadow-node: 0 4px 16px rgba(15, 15, 20, 0.10);
  --glow-accent: none;
  --scrim: rgba(10, 10, 14, 0.28);

  --status-none: #c7c9d4;
  --status-burning: #ef4444;
  --status-in-progress: #eab308;
  --status-done: #22c55e;

  --panel-knob: var(--surface-1);
  --grad-a: color-mix(in srgb, #10b981 34%, #ffffff);
  --grad-b: color-mix(in srgb, #22c9d4 30%, #ffffff);
  --grad-c: color-mix(in srgb, #3b6ef6 26%, #ffffff);
  --panel-elev-grad: color-mix(in srgb, #22c9d4 52%, #ffffff);
  --panel-elev-grad-hover: color-mix(in srgb, #22c9d4 66%, #ffffff);
  --panel-inset-grad: color-mix(in srgb, #0e7490 17%, transparent);
  --panel-hover-grad: color-mix(in srgb, #22c9d4 30%, transparent);
  --panel-knob-grad: color-mix(in srgb, #22c9d4 15%, #ffffff);

  color-scheme: light;
}


/* ⚠ ПОРЯДОК ВАЖЕН: этот блок обязан идти ПОСЛЕ всех темовых блоков.
   У :root[data-panel-gradient] и :root[data-theme="light"|"dark"]
   одинаковая специфичность — при равной специфичности побеждает то
   правило, что ниже в файле. Когда блок стоял выше, темовые блоки
   возвращали --panel-elev/--panel-knob к --surface-1, и кнопки на
   градиентной панели оставались белыми (--panel-bg при этом работал
   только потому, что его темовые блоки не переопределяют).
   Новый темовый блок добавлять ТОЛЬКО выше этого правила.

   Сам градиент: зелёный → бирюза → синий по диагонали, как на мокапе;
   конкретные цвета берутся из grad-токенов активной темы. */
:root[data-panel-gradient="true"] {
  --panel-bg: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 52%, var(--grad-c) 100%);
  --panel-solid: var(--panel-bg);
  --panel-elev: var(--panel-elev-grad);
  --panel-elev-hover: var(--panel-elev-grad-hover);
  --panel-inset: var(--panel-inset-grad);
  --panel-hover: var(--panel-hover-grad);
  --panel-knob: var(--panel-knob-grad);
}


html, body, #root {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Дополнительный замок прокрутки для телефонов. overflow: hidden на body в
   мобильном Safari срабатывает не всегда: страница всё равно оттягивается и
   уезжает вместе с содержимым. position: fixed убирает саму возможность
   прокрутить документ — приложение живёт в одном экране, прокручиваются
   только панели внутри. */
@media (max-width: 768px) {
  body {
    position: fixed;
    inset: 0;
    width: 100%;
  }
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

/* Мобильные браузеры рисуют постоянно видимый скроллбар-трек у любого
   overflow:auto/scroll внутри всплывающих панелей (меню, календарь, задачи,
   ИИ-чат — все они помечены [data-ui-overlay]) — при попытке проскроллить
   контент справа появляется лишняя серая полоса. Сам скролл при этом
   работает как обычно, просто без видимого трека. Только мобилка — десктоп
   не трогаем, там штатные оверлей-скроллбары и так выглядят нормально.
   !important — гарантированно перекрывает более специфичные локальные
   стили скроллбара конкретных панелей (например .descendantList в
   NodeContextMenu), а не полагается на порядок каскада между файлами. */
@media (max-width: 768px) {
  [data-ui-overlay] *::-webkit-scrollbar {
    display: none !important;
  }
  [data-ui-overlay] * {
    scrollbar-width: none;
  }
}

/* ── Поверхности: стекло ─────────────────────────────────────
   .glass — панель или окно поверх холста (радиус --r-xl), .glass-sm —
   поповер, меню, всплывающая строка (--r-lg). Модуль компонента задаёт
   только геометрию (где стоит, размер, свой радиус по роли), а материал —
   подложка, кромка, тень, размытие — один на всех, отсюда.

   ⚠ backdrop-filter делает элемент контейнером для position: fixed
   потомков: такой потомок начинает считать координаты от угла поверхности,
   а не экрана. Поэтому всплывающее внутри стекла выносится в портал; а
   поверхность, внутри которой есть fixed-попапы без портала (окно
   календаря), размытие отключает у себя — см. .modal в CalendarModal. */
.glass,
.glass-sm {
  background: var(--panel-bg);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 0 var(--glass-rim), var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.glass { border-radius: var(--r-xl); }
.glass-sm { border-radius: var(--r-lg); }

/* «Уменьшить прозрачность» в системе — стекло становится сплошным: для
   людей, которым полупрозрачность мешает читать, это не украшение, а шум. */
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-fill: var(--surface-1); }
  .glass, .glass-sm { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ── Кнопки ────────────────────────────────────────────────────
   Капсула. Заливка — тонированная подложка (--panel-elev), а не ещё одно
   стекло: кнопки живут на стеклянных панелях, а стекло на стекле теряет
   иерархию. Тени у кнопки нет — объём держит панель под ней. */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 18px;
  background: var(--panel-elev);
  border: 1px solid transparent;
  border-radius: var(--r-capsule);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.15s;
  outline: none;
  user-select: none;
}

.btn-glass:hover {
  background: var(--panel-elev-hover);
}

.btn-glass:active {
  transform: scale(0.97);
}

.btn-glass:focus-visible,
.icon-btn:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-glass:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Круглая кнопка-иконка: закрыть, листать, действие в строке. Квадратная
   капсула — это круг, поэтому отдельного «кругового» радиуса нет. */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--r-capsule);
  background: var(--panel-elev);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.icon-btn:hover { background: var(--panel-elev-hover); color: var(--text-primary); }

/* Вложенная поверхность внутри стеклянной панели — поле сообщения
   ассистента, его карточки и подсказки. Своя подложка чуть темнее/светлее
   панели, тонкая кромка и блик по верху, как у стекла, но без размытия:
   стекло на стекло не кладём. Форму (радиус, отступы) задаёт сам элемент. */
.surface-inset {
  background: var(--panel-inset);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 0 var(--glass-rim);
}
.icon-btn:active { transform: scale(0.94); }

/* ── Поля ввода ────────────────────────────────────────────────
   Однострочное поле — капсула, как кнопка рядом с ним: поле и кнопка
   «Создать» в одной строке теперь одной формы. Многострочное (textarea)
   капсулой быть не может — на высоте 120 px углы превращаются в полукруги,
   — поэтому у него фиксированный --r-md. */
.input-glass {
  width: 100%;
  min-height: 42px;
  padding: 10px 18px;
  background: var(--panel-inset);
  border: 1px solid var(--border);
  border-radius: var(--r-capsule);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea.input-glass { border-radius: var(--r-md); }

.input-glass::placeholder {
  color: var(--text-secondary);
}

.input-glass:focus {
  border-color: var(--accent);
  background: var(--surface-1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* ── Подсказка ─────────────────────────────────────────────────
   Сплошная, в инверсии темы (тёмная на светлой, светлая на тёмной). В одну
   строку — капсула; с переносами модуль ставит --r-sm, иначе углы съедают
   буквы. Стрелка — того же цвета, что сама подсказка, поэтому читается её
   продолжением. Направление — data-arrow="up" | "down". */
.tooltip-glass {
  padding: 6px 12px;
  border-radius: var(--r-capsule);
  background: var(--tip-bg);
  color: var(--tip-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: var(--glass-shadow);
}
.tooltip-glass[data-arrow]::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  pointer-events: none;
}
.tooltip-glass[data-arrow="down"]::after { top: 100%; border-top-color: var(--tip-bg); }
.tooltip-glass[data-arrow="up"]::after { bottom: 100%; border-bottom-color: var(--tip-bg); }

/* Автозаполнение браузера рисует свой светлый фон и игнорирует тему сайта
   целиком (color-scheme на него не действует) — единственный обход:
   протолкнуть цвет поверхности через inset box-shadow побольше самого поля. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  box-shadow: 0 0 0 1000px var(--surface-2) inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-capsule); }

/* ── Mobile: prevent auto-zoom on input focus ──────────────── */
@media (max-width: 768px) {
  input, textarea, select { font-size: 16px !important; }
}

/* iOS Safari принудительно зумит всю страницу при фокусе на поле, у которого
   шрифт меньше 16px — после ввода холст остаётся в неправильном масштабе, и
   вернуть его можно только вручную. Правило общее для всех полей приложения:
   иначе пришлось бы помнить про это в каждом новом компоненте.
   Отдельные размеры внутри компонентов остаются как есть на десктопе. */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select {
    font-size: 16px;
  }
}
.landing-active {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
}
body.landing-active { position: static !important; inset: auto !important; width: 100% !important; }
#root.landing-active { overflow: visible !important; }

.landing-page {
  --landing-bg: #f2f4f8;
  --landing-ink: #111218;
  --landing-muted: #626875;
  --landing-blue: #326bf4;
  min-height: 100vh;
  overflow: hidden;
  color: var(--landing-ink);
  background: radial-gradient(circle at 88% 5%, rgba(105, 148, 255, .16), transparent 23rem), radial-gradient(circle at 8% 32%, rgba(158, 123, 255, .09), transparent 28rem), var(--landing-bg);
  font-family: var(--font-body);
}
.landing-page a { color: inherit; text-decoration: none; }
.landing-page button, .landing-page a { -webkit-tap-highlight-color: transparent; }

.landing-page .ui-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 21px; border: 1px solid transparent; border-radius: 999px; background: #111218; color: #fff; font: 600 14px/1 var(--font-body); letter-spacing: -.01em; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(17, 18, 24, .55), inset 0 1px 0 rgba(255, 255, 255, .16); transition: box-shadow .22s ease, background .22s ease; }
.landing-page .ui-button:hover { box-shadow: 0 16px 30px -13px rgba(17, 18, 24, .55), inset 0 1px 0 rgba(255, 255, 255, .18); }
.landing-page .ui-button--sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.landing-page .ui-button--lg { min-height: 54px; padding: 0 26px; font-size: 15px; }
.landing-page .ui-button--glass { color: var(--landing-ink); background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .82); box-shadow: 0 10px 30px -18px rgba(23, 31, 48, .28), inset 0 1px 0 #fff; backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.landing-page .ui-button--secondary { background: #fff; color: #15171e; box-shadow: 0 10px 28px -16px #000; }
.landing-page .ui-badge { width: fit-content; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.landing-page .ui-badge--glass { background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.86); box-shadow: inset 0 1px 0 #fff, 0 8px 24px -16px #526078; backdrop-filter: blur(18px); }
.landing-page .ui-badge--outline { border: 1px solid rgba(17,18,24,.13); color: #6c7180; background: rgba(255,255,255,.2); }
.landing-page .ui-badge--dark { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.72); }

.landing-nav-wrap { position: fixed; inset: 18px 0 auto; z-index: 100; padding: 0 22px; }
.landing-nav { width: min(1100px, 100%); height: 60px; margin: 0 auto; padding: 0 10px 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border: 1px solid rgba(255,255,255,.78); border-radius: 22px; background: rgba(247,248,251,.68); box-shadow: 0 16px 42px -26px rgba(36,42,58,.45), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(24px) saturate(165%); -webkit-backdrop-filter: blur(24px) saturate(165%); }
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-heading); font-weight: 600; font-size: 17px; letter-spacing: -.03em; }
.brand-lockup img { width: 29px; height: 29px; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(36,104,255,.22)); }
.nav-brand { justify-self: start; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 500; color: #626875; }
.nav-links a, .nav-login { transition: color .2s ease; }
.nav-links a:hover, .nav-login:hover { color: #111218; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 17px; }
.nav-login { font-size: 13px; font-weight: 600; color: #626875; }

.hero-section { width: min(1400px, 100%); min-height: 900px; margin: 0 auto; padding: 154px clamp(24px, 5vw, 76px) 88px; display: grid; grid-template-columns: minmax(390px, .83fr) minmax(560px, 1.17fr); align-items: center; gap: clamp(36px, 5vw, 84px); position: relative; }
.ambient { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.ambient-one { width: 430px; height: 430px; right: 8%; top: 18%; background: radial-gradient(circle, rgba(88,132,255,.18), transparent 66%); }
.ambient-two { width: 290px; height: 290px; right: 32%; bottom: 7%; background: radial-gradient(circle, rgba(113,232,196,.14), transparent 68%); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 28px 0 24px; font-family: var(--font-heading); font-size: clamp(54px, 5.15vw, 82px); font-weight: 500; line-height: .99; letter-spacing: -.06em; }
.hero-copy h1 span { color: #667080; }
.hero-copy > p { max-width: 590px; color: var(--landing-muted); font-size: 18px; line-height: 1.62; letter-spacing: -.015em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 35px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 21px; margin-top: 25px; color: #777e8b; font-size: 12px; font-weight: 500; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { padding: 2px; border-radius: 50%; background: rgba(44, 191, 126, .13); color: #15925c; }

.hero-visual { min-width: 0; position: relative; z-index: 1; perspective: 1400px; }
.hero-orbit { position: absolute; inset: 50% auto auto 50%; border: 1px solid rgba(86,111,166,.1); border-radius: 50%; transform: translate(-50%,-50%) rotate(-12deg); pointer-events: none; }
.hero-orbit-one { width: 118%; height: 78%; }
.hero-orbit-two { width: 88%; height: 118%; transform: translate(-50%,-50%) rotate(38deg); }
.canvas-window { width: 100%; aspect-ratio: 1.36; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.95); border-radius: 30px; background: rgba(246,248,252,.72); box-shadow: 0 40px 90px -46px rgba(45,55,82,.58), 0 14px 35px -24px rgba(52,68,104,.34), inset 0 1px 0 #fff; backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); transform: rotateY(-4deg) rotateX(2deg); animation: landing-float 7s ease-in-out infinite; }
.canvas-window-bar { height: 54px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(37,40,49,.06); background: rgba(255,255,255,.5); }
.window-controls { display: flex; gap: 6px; }
.window-controls i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #d7d9e1; }
.window-controls i:nth-child(1) { background: #ff8c7f; }.window-controls i:nth-child(2) { background: #ffd567; }.window-controls i:nth-child(3) { background: #6cdda4; }
.canvas-title { display: flex; align-items: center; gap: 7px; color: #3a3e48; font-size: 12px; font-weight: 700; }
.canvas-window-bar button { justify-self: end; display: grid; place-items: center; border: 0; background: transparent; color: #777d89; }
.canvas-stage { height: calc(100% - 54px); position: relative; overflow: hidden; background: #e9ebf2; }
.stage-grid { position: absolute; inset: 0; opacity: .45; background-image: radial-gradient(circle, #b8bdca 1px, transparent 1.2px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at center, #000 32%, transparent 88%); }
.canvas-connections { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.canvas-connections path { fill: none; stroke: rgba(22,23,28,.72); stroke-width: 2; stroke-linecap: round; opacity: .9; }
.canvas-node { padding: 14px; position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,.14); border-radius: 50%; color: var(--node-text,#16171c); background:var(--node-color); box-shadow: 0 4px 16px rgba(15,15,20,.10); transform: translate(-50%,-50%); }
.canvas-node strong { max-width:90%; font-family: var(--font-heading); font-size: 13px; line-height:1.08; text-align:center; font-weight: 600; }
.canvas-node-badge { position:absolute; width:34px; height:34px; display:grid; place-items:center; border:1px solid rgba(0,0,0,.14); border-radius:50%; background:var(--pill-color); box-shadow:0 2px 10px rgba(15,15,20,.06); }
.canvas-node-badge--voice { top:-5px;left:-5px; }.canvas-node-badge--note { top:-5px;right:-5px; }.canvas-node-badge--task { right:-5px;bottom:-5px; }
.canvas-node-badge-icon { width:22px;height:22px;display:block;background:var(--icon-color);-webkit-mask:var(--badge-icon) center/contain no-repeat;mask:var(--badge-icon) center/contain no-repeat; }
.node-main { left: 49%; top: 51%; width:128px; height:128px; }.node-idea { left: 24%; top: 22%; width:148px; height:74px; border-radius:999px; }.node-site { left: 78%; top: 22%; width:104px; height:104px; }.node-tasks { left: 80%; top: 78%; width:150px; height:72px; border-radius:999px; }.node-team { left: 20%; top: 78%; width:102px; height:102px; }
.canvas-node--root { --node-color:#9ca3af;--node-text:#16171c;--pill-color:#bec2c9;--icon-color:#3b3e43; }.canvas-node--purple { --node-color:#a855f7;--node-text:#fff;--pill-color:#c587f9;--icon-color:#41215f; }.canvas-node--green { --node-color:#22c55e;--node-text:#16171c;--pill-color:#70d88f;--icon-color:#0d4b24; }.canvas-node--yellow { --node-color:#facc15;--node-text:#16171c;--pill-color:#fbdb60;--icon-color:#5f4d08; }.canvas-node--blue { --node-color:#3b82f6;--node-text:#fff;--pill-color:#80abf9;--icon-color:#17335f; }
.canvas-tip { position: absolute; top: 17px; left: 50%; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; background: rgba(255,255,255,.62); color: #4b5260; font-size: 9px; font-weight: 600; box-shadow: 0 8px 24px -16px #4e586f; backdrop-filter: blur(15px); }
.canvas-tip svg { color: #745df0; }
.canvas-dock { position: absolute; z-index: 4; left: 50%; bottom: 15px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid rgba(15,15,20,.08); border-top-color:rgba(255,255,255,.75); border-radius: 999px; background: rgba(255,255,255,.80); box-shadow: 0 1px 2px rgba(15,15,20,.05),0 12px 32px -8px rgba(15,15,20,.18); backdrop-filter: blur(22px) saturate(170%); }
.canvas-dock span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #16171c; }
.floating-card { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.9); border-radius: 17px; background: rgba(255,255,255,.7); box-shadow: 0 18px 38px -23px rgba(29,36,54,.58), inset 0 1px 0 #fff; backdrop-filter: blur(20px) saturate(150%); font-size: 10px; }
.floating-card > span { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #7257e8; background: #e4dcff; }
.floating-card div { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }.floating-card strong { font-size: 10px; }.floating-card small { color: #7a808c; font-size: 8px; }.floating-card i { color: #777e8b; font-style: normal; }
.floating-card--voice { left: -6%; bottom: 7%; }.floating-card--today { right: -5%; top: 19%; }.floating-card--today > span { color: #16785b; background: #c8f0df; }

.section { width: min(1280px, 100%); margin: 0 auto; padding: 120px 48px; }
.section-heading { max-width: 760px; margin: 0 auto 55px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-heading h2, .workspace-copy h2, .mobile-copy h2, .ai-copy h2, .final-card h2 { font-family: var(--font-heading); font-size: clamp(44px, 5vw, 72px); font-weight: 500; line-height: 1.01; letter-spacing: -.055em; }
.section-heading h2 { margin: 22px 0 20px; }.section-heading p { max-width: 620px; color: var(--landing-muted); font-size: 17px; line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 310px; padding: 32px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.84); border-radius: 28px; background: rgba(255,255,255,.48); box-shadow: 0 18px 50px -38px #3e485e, inset 0 1px 0 #fff; backdrop-filter: blur(18px); transition: background .28s ease; }
.feature-card:hover { background: rgba(255,255,255,.68); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; }.feature-icon--blue { color: #3166db; background: #d7e2ff; }.feature-icon--green { color: #15815b; background: #cdf0df; }.feature-icon--violet { color: #7656d4; background: #e3d9ff; }
.feature-card h3 { margin: 52px 0 13px; font-family: var(--font-heading); font-size: 24px; font-weight: 600; letter-spacing: -.035em; }.feature-card p { color: #6a707c; font-size: 14px; line-height: 1.6; }.feature-card a { width: fit-content; margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; }

.workspace-section { padding-top: 70px; }
.workspace-shell { min-height: 690px; padding: 72px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 70px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 42px; background: radial-gradient(circle at 75% 30%, rgba(77,104,180,.23), transparent 32%), linear-gradient(145deg,#17191f,#0e0f13); color: #fff; box-shadow: 0 42px 80px -52px #151924, inset 0 1px 0 rgba(255,255,255,.13); }
.workspace-copy { position: relative; z-index: 2; }.workspace-copy h2 { margin: 26px 0 24px; font-size: clamp(42px, 4.3vw, 64px); }.workspace-copy > p { color: rgba(255,255,255,.62); font-size: 16px; line-height: 1.65; }
.workspace-copy ul { margin: 30px 0 34px; display: grid; gap: 15px; list-style: none; color: rgba(255,255,255,.78); font-size: 13px; }.workspace-copy li { display: flex; align-items: center; gap: 10px; }.workspace-copy li span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #4bd6a0; background: rgba(75,214,160,.13); }
.workspace-canvas { width: 760px; position: relative; }.workspace-canvas .canvas-window { transform: rotate(-2deg); animation: none; box-shadow: 0 36px 70px -35px rgba(0,0,0,.8); }.canvas-window--compact { aspect-ratio: 1.35; }

.mobile-section { min-height: 850px; padding-top: 90px; padding-bottom: 90px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; }
.mobile-copy h2 { margin: 25px 0 24px; }.mobile-copy > p { max-width: 515px; color: #676e7a; font-size: 16px; line-height: 1.67; }
.mobile-points { margin: 31px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.mobile-points > span { min-width: 0; padding: 17px; display: grid; grid-template-columns: 24px 1fr; gap: 2px 9px; border: 1px solid rgba(255,255,255,.76); border-radius: 20px; background: rgba(255,255,255,.39); box-shadow: inset 0 1px 0 #fff; }.mobile-points svg { grid-row: 1 / 3; color: #4f70d8; }.mobile-points b { font-size: 13px; }.mobile-points small { overflow: hidden; color: #7b818c; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.phones-wrap { height: 670px; position: relative; display: flex; align-items: center; justify-content: center; }.phone-glow { position: absolute; width: 580px; height: 580px; border-radius: 50%; background: radial-gradient(circle, rgba(96,134,241,.2), rgba(126,229,198,.08) 45%, transparent 70%); filter: blur(5px); }
.phone { width: 286px; height: 586px; padding: 8px; position: absolute; border-radius: 51px; background: linear-gradient(145deg,#555965,#111318 35%,#282c34 68%,#07080a); box-shadow: 0 38px 60px -36px rgba(22,26,39,.7), inset 0 0 0 1px rgba(255,255,255,.22), inset 0 0 0 2px #090b0f; }.phone::after { content:""; position:absolute; inset:3px; pointer-events:none; border:1px solid rgba(255,255,255,.16); border-radius:48px; }
.phone-screen { height: 100%; position: relative; overflow: hidden; border-radius: 43px; background: #eef0f5; }.dynamic-island { width: 82px; height: 23px; position: absolute; z-index: 8; top: 10px; left: 50%; transform: translateX(-50%); border-radius: 999px; background: #08090b; }.home-indicator { width: 92px; height: 4px; position: absolute; z-index: 8; left: 50%; bottom: 8px; transform: translateX(-50%); border-radius: 999px; background: #14161b; opacity: .85; }
.phone-board { right: 3%; top: 27px; transform: rotate(5deg); z-index: 2; }.phone-today { left: 7%; bottom: 7px; transform: rotate(-6deg) scale(.93); z-index: 1; }
.phone-header { height: 76px; padding: 31px 16px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 11px; }.phone-header .brand-lockup { justify-self: start; }.phone-header .brand-lockup img { width: 21px; height: 21px; }.phone-header strong { white-space: nowrap; font-size: 10px; }.phone-header > svg { justify-self: end; color: #777e8a; }
.phone-canvas { height: calc(100% - 76px); position: relative; background: #e5e7ee; }.phone-canvas::before { content:""; position:absolute; inset:0; opacity:.55; background-image:radial-gradient(circle,#bbc0cc 1px,transparent 1px); background-size:19px 19px; mask-image:radial-gradient(circle,#000,transparent 78%); }.phone-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }.phone-canvas path { fill: none; stroke: #a0a6b3; stroke-width: 1.5; }
.phone-node { width:52px;height:52px;padding:7px;position:absolute;display:grid;place-items:center;border:1px solid rgba(0,0,0,.14);border-radius:50%;font:600 8px var(--font-heading);box-shadow:0 4px 12px rgba(15,15,20,.10);transform:translate(-50%,-50%); }.pn-main { width:66px;height:66px;left:50%;top:43%;background:#9ca3af; }.pn-one { width:70px;height:30px;left:22%;top:17%;border-radius:999px;background:#a855f7;color:#fff; }.pn-two { left:79%;top:17%;background:#22c55e; }.pn-three { width:72px;height:30px;left:80%;top:72%;border-radius:999px;background:#facc15; }.pn-four { left:21%;top:72%;background:#3b82f6;color:#fff; }
.phone-dock { position: absolute; z-index: 6; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 6px 9px; display: flex; align-items:center; gap: 10px; border: 1px solid rgba(15,15,20,.08); border-top-color:rgba(255,255,255,.75); border-radius: 999px; background: rgba(255,255,255,.80); color: #16171c; box-shadow: 0 1px 2px rgba(15,15,20,.05),0 12px 32px -8px rgba(15,15,20,.18); backdrop-filter: blur(22px) saturate(170%); }
.today-top { padding: 51px 23px 13px; display: flex; flex-direction: column; gap: 3px; }.today-top small { color: #7a808c; font-size: 8px; }.today-top strong { font-family: var(--font-heading); font-size: 26px; font-weight: 500; letter-spacing: -.05em; }
.today-focus { margin: 7px 17px 12px; padding: 18px; display: grid; grid-template-columns: 1fr auto; border: 1px solid rgba(255,255,255,.85); border-radius: 23px; background: linear-gradient(145deg,rgba(255,255,255,.77),rgba(255,255,255,.37)); box-shadow: 0 10px 28px -20px #384157, inset 0 1px 0 #fff; }.today-focus span { color: #667080; font-size: 8px; }.today-focus b { grid-row: 1 / 3; grid-column: 2; font-family: var(--font-heading); font-size: 37px; font-weight: 500; line-height: 1; color: #326bf4; }.today-focus small { margin-top: 8px; font-size: 10px; font-weight: 600; }
.task-list { display: grid; gap: 7px; padding: 0 17px; }.task-row { padding: 11px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.85); border-radius: 16px; background: rgba(255,255,255,.58); box-shadow: inset 0 1px 0 #fff; }.task-check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(34,37,44,.12); color: #fff; }.task-check--blue { background: #638cf6; }.task-row > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }.task-row strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 8px; }.task-row small { display: flex; align-items: center; gap: 4px; color: #7b818d; font-size: 7px; }.task-row time { color: #777d88; font-size: 7px; }.tag-dot { width: 5px; height: 5px; border-radius: 50%; }.tag-dot--blue { background:#6790f8; }.tag-dot--pink { background:#e999bd; }.tag-dot--green { background:#65c69b; }
.assistant-pill { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 14px; display: flex; align-items: center; gap: 7px; border-radius: 999px; background: #171920; color: #fff; white-space: nowrap; font-size: 8px; box-shadow: 0 10px 22px -12px #000; }

.ai-section { padding-top: 80px; }.ai-card { min-height: 660px; padding: 74px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.85); border-radius: 42px; background: radial-gradient(circle at 78% 24%,rgba(105,135,255,.28),transparent 32%), radial-gradient(circle at 18% 80%,rgba(116,224,192,.2),transparent 35%), rgba(255,255,255,.48); box-shadow: 0 35px 80px -58px #36435e, inset 0 1px 0 #fff; backdrop-filter: blur(25px); }
.ai-copy h2 { margin: 25px 0 24px; font-size: clamp(42px,4.2vw,65px); }.ai-copy h2 span { color:#647083; }.ai-copy > p { color: #626976; line-height: 1.68; font-size: 16px; }.ai-chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 9px; }.ai-chips span { padding: 10px 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; background: rgba(255,255,255,.48); color: #5a6170; font-size: 11px; font-weight: 600; box-shadow: inset 0 1px 0 #fff; }
.ai-chat { padding: 20px; border: 1px solid rgba(255,255,255,.94); border-radius: 30px; background: rgba(247,248,252,.72); box-shadow: 0 28px 58px -36px #35415b, inset 0 1px 0 #fff; backdrop-filter: blur(20px); }.chat-top { padding: 2px 3px 17px; display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid rgba(34,38,48,.07); }.ai-orb { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#8c73f4,#4f7cf0 50%,#41caa4); box-shadow: inset 0 1px 0 rgba(255,255,255,.55),0 8px 17px -11px #435ad0; }.chat-top > div { display:flex; flex-direction:column; gap:2px; }.chat-top strong { font-size: 12px; }.chat-top small { color:#7c828d;font-size:8px; }.chat-top i { font-size:8px;font-style:normal;color:#1f9b68; }
.chat-user { max-width: 83%; margin: 18px 0 14px auto; padding: 12px 14px; border-radius: 17px 17px 5px 17px; background: #17191f; color: #fff; font-size: 10px; line-height: 1.5; }.chat-ai { padding: 15px; border: 1px solid rgba(255,255,255,.85); border-radius: 19px 19px 19px 5px; background: rgba(255,255,255,.59); box-shadow: inset 0 1px 0 #fff; }.chat-ai > p { margin-bottom: 12px; color:#5f6673;font-size:9px; }.plan-row { padding: 10px 0; display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:9px;border-top:1px solid rgba(39,43,52,.07); }.plan-row > span { width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:#e3e7f1;color:#667080;font-size:7px;font-weight:700; }.plan-row > div { display:flex;flex-direction:column;gap:3px; }.plan-row strong {font-size:9px}.plan-row small{color:#858b96;font-size:7px}.plan-row > svg{color:#6b7280}.chat-input { margin-top: 13px; padding: 8px 8px 8px 14px; display:flex;align-items:center;justify-content:space-between;border:1px solid rgba(39,43,52,.08);border-radius:999px;background:rgba(255,255,255,.67);color:#9196a0;font-size:8px; }.chat-input span { width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#17191f;color:#fff; }

.final-section { padding-top: 80px; padding-bottom: 80px; }.final-card { min-height: 570px; padding: 70px 30px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center; border: 1px solid rgba(255,255,255,.14); border-radius: 42px; background: radial-gradient(circle at 50% 10%,rgba(91,125,225,.25),transparent 34%),linear-gradient(145deg,#171920,#0d0e12);color:#fff;box-shadow:0 35px 70px -52px #11151e,inset 0 1px 0 rgba(255,255,255,.14); }.final-card > img { width: 360px; height: 360px; position: absolute; right: -75px; bottom: -105px; object-fit: contain; opacity: .24; filter: blur(.2px) saturate(1.15); transform: rotate(-20deg); }.final-card::before { content:"";width:360px;height:360px;position:absolute;left:-110px;top:-160px;border-radius:50%;background:radial-gradient(circle,rgba(77,220,181,.18),transparent 68%); }.final-card > *:not(img) { position:relative;z-index:1; }.final-card h2 { margin: 26px 0 19px;font-size:clamp(46px,5.5vw,76px); }.final-card p { margin-bottom:31px;color:rgba(255,255,255,.61);font-size:15px; }.final-card .ui-button { background:#fff;color:#14161b;box-shadow:0 12px 26px -16px #000; }
.landing-footer { width:min(1184px,calc(100% - 56px)); min-height:100px; margin:0 auto; display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-top:1px solid rgba(27,30,38,.09);color:#747b87;font-size:11px; }.landing-footer .brand-lockup { color:#1b1d24;font-size:15px; }.landing-footer .brand-lockup img{width:24px;height:24px}.landing-footer > p{justify-self:center}.landing-footer > div{justify-self:end;display:flex;gap:18px}.landing-footer a:hover{color:#111218}

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }.reveal.is-visible { opacity: 1; transform: none; }
@keyframes landing-float { 0%,100% { transform: rotateY(-4deg) rotateX(2deg) translateY(0); } 50% { transform: rotateY(-4deg) rotateX(2deg) translateY(-8px); } }

@media (max-width: 1080px) {
  .hero-section { min-height:auto; padding-top:150px; grid-template-columns:1fr; text-align:center; }.hero-copy { max-width:760px;margin:0 auto;display:flex;flex-direction:column;align-items:center; }.hero-visual { width:min(760px,92%);margin:30px auto 0; }.hero-meta { justify-content:center; }
  .workspace-shell { padding:60px 50px;grid-template-columns:1fr;gap:55px; }.workspace-copy { max-width:620px; }.workspace-canvas { width:750px; }
  .mobile-section { grid-template-columns:minmax(0,1fr);gap:10px; }.mobile-copy { width:100%;min-width:0;max-width:650px;margin:0 auto;text-align:center;display:flex;flex-direction:column;align-items:center; }.mobile-points { width:100%; }.phones-wrap { width:min(680px,100%);margin:0 auto; }.ai-card { padding:60px 50px;gap:50px; }
}
@media (max-width: 780px) {
  .landing-nav-wrap { inset:10px 0 auto;padding:0 10px; }.landing-nav { height:54px;grid-template-columns:1fr auto;padding-left:13px;border-radius:19px; }.nav-links,.nav-login { display:none; }.nav-actions { grid-column:2; }
  .hero-section { padding:120px 20px 65px;gap:35px; }.hero-copy h1 { margin-top:22px;font-size:clamp(45px,13.2vw,70px); }.hero-copy > p { font-size:16px;line-height:1.55; }.hero-actions { width:100%;justify-content:center; }.hero-actions .ui-button { flex:1 1 210px; }.hero-meta { font-size:10px; }.hero-visual { width:100%; }
  .canvas-window { border-radius:22px;transform:none;animation:none; }.canvas-window-bar { height:44px; }.canvas-stage{height:calc(100% - 44px)}.canvas-node{padding:8px}.canvas-node strong{font-size:9px}.canvas-node-badge{width:24px;height:24px}.canvas-node-badge--voice{top:-4px;left:-4px}.canvas-node-badge--note{top:-4px;right:-4px}.canvas-node-badge--task{right:-4px;bottom:-4px}.canvas-node-badge-icon{width:15px;height:15px}.canvas-node-badge svg{width:15px;height:15px}.node-main{width:86px;height:86px}.node-idea{width:96px;height:48px}.node-site{width:68px;height:68px}.node-tasks{width:100px;height:48px}.node-team{width:66px;height:66px}.canvas-tip { display:none; }.canvas-dock{bottom:8px;transform:translateX(-50%) scale(.82)}.floating-card--voice { left:2%;bottom:-9%; }.floating-card--today{right:0;top:6%; }
  .section { padding:80px 18px; }.section-heading { margin-bottom:35px; }.section-heading h2,.workspace-copy h2,.mobile-copy h2,.ai-copy h2,.final-card h2 { font-size:clamp(39px,11vw,58px); }.feature-grid { grid-template-columns:1fr; }.feature-card { min-height:250px;padding:25px; }.feature-card h3 { margin-top:35px; }
  .workspace-section { padding-top:30px; }.workspace-shell { min-height:auto;padding:45px 24px;border-radius:30px;gap:42px;grid-template-columns:minmax(0,1fr); }.workspace-copy { width:100%;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center; }.workspace-copy ul { text-align:left; }.workspace-canvas { width:720px;max-width:none;transform:translateX(-24px); }
  .mobile-section { padding-top:70px;padding-bottom:50px; }.phones-wrap { height:570px;transform:scale(.87);transform-origin:center top; }.phone-board { right:2%; }.phone-today{left:3%}
  .ai-section { padding-top:50px; }.ai-card { min-height:auto;padding:45px 22px;grid-template-columns:1fr;gap:40px;border-radius:30px; }.ai-copy { text-align:center;display:flex;flex-direction:column;align-items:center; }.ai-chat { width:min(500px,100%);margin:0 auto; }
  .final-section { padding-top:50px; }.final-card { min-height:520px;padding:55px 20px;border-radius:30px; }.landing-footer { width:calc(100% - 36px);padding:25px 0;grid-template-columns:1fr auto;gap:18px; }.landing-footer>p{display:none}.landing-footer>div{gap:11px}.landing-footer>div span{display:none}
}
@media (max-width: 560px) {
  .brand-lockup { font-size:15px; }.brand-lockup img{width:26px;height:26px}.landing-nav .ui-button { min-height:34px;padding:0 13px;font-size:11px; }.hero-copy .ui-badge { font-size:9px; }.hero-copy h1 { letter-spacing:-.065em; }.hero-actions { flex-direction:column; }.hero-actions .ui-button{width:100%;flex:auto}.hero-meta { max-width:330px;gap:8px 14px; }.hero-visual { margin-top:18px; }.canvas-window { aspect-ratio:1.14; }.node-idea{left:22%;top:23%}.node-site{left:78%;top:23%}.node-team{left:21%;top:76%}.node-tasks{left:79%;top:76%}.floating-card--voice { display:none; }.floating-card--today{transform:scale(.84);transform-origin:right top}
  .mobile-points { grid-template-columns:1fr; }.phones-wrap { width:650px;max-width:none;margin-left:50%;transform:translateX(-50%) scale(.75);transform-origin:center top;height:500px; }.phone-board { right:4%; }.phone-today{left:5%}.ai-chips { justify-content:center; }.chat-user { max-width:90%; }.final-card > img { width:260px;height:260px;right:-70px;bottom:-75px; }.landing-footer>div a:first-child{display:none}
}
@media (prefers-reduced-motion: reduce) { .canvas-window,.reveal { animation:none;transition:none; }.reveal { opacity:1;transform:none; } }
