/* ==============================================================
   AuronixFlow AI — public site + admin login
   Dark, built around the logo: near-black, white and cyan.
   ============================================================== */

:root {
  color-scheme: dark;
  --bg: #05080D;
  --bg-2: #080D14;
  --surface: #0D141D;
  --surface-2: #121B26;
  --border: #1A2532;
  --border-2: #26354A;
  --text: #F4F8FB;
  --text-2: #A3B1C0;
  --text-3: #6B7A8C;

  --cyan: #12E2F0;
  --cyan-hover: #62EEF7;
  --cyan-ink: #02161A;
  --cyan-soft: rgba(18, 226, 240, 0.10);
  --cyan-line: rgba(18, 226, 240, 0.35);

  /* Status colours used in the product mockups */
  --st-done: #00C875;
  --st-working: #FDAB3D;
  --st-stuck: #E2445C;
  --st-blue: #579BFC;
  --st-purple: #A25DDC;

  --error-bg: rgba(226, 68, 92, 0.12);
  --error-border: rgba(226, 68, 92, 0.4);
  --error-text: #FF9CAB;
  --ok-bg: rgba(0, 200, 117, 0.12);
  --ok-border: rgba(0, 200, 117, 0.4);
  --ok-text: #6EF0B4;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --pill: 999px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border);
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', 'Figtree', sans-serif;
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--pill);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--cyan); color: var(--cyan-ink); }
.btn-primary:hover { background: var(--cyan-hover); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { border-color: var(--cyan-line); color: var(--cyan); background: transparent; }
.btn-ghost:hover { background: var(--cyan-soft); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, .tile:focus-within {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
.fineprint { margin-top: 12px; color: var(--text-3); font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { height: 30px; width: auto; }
.brand-word { height: 15px; width: auto; }
.brand-name { color: var(--text); font: 600 18px/1 var(--font-display); letter-spacing: .16em; white-space: nowrap; }
.brand-name span { color: var(--cyan); }
.brand-group { display: flex; align-items: center; gap: 14px; }
.brand-by { display: flex; align-items: center; gap: 6px; padding-left: 14px; border-left: 1px solid var(--border); color: var(--text-3); font-size: 12px; text-decoration: none; }
.brand-by img { height: 10px; width: auto; opacity: .85; }
.brand-by:hover img { opacity: 1; }
.powered-by { display: inline-flex; flex-direction: column; gap: 8px; margin-top: 20px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); }
.powered-by > span:first-child { color: var(--text-3); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.powered-by:hover { border-color: var(--cyan-line); }
.powered-logo { display: flex; align-items: center; gap: 8px; }
.powered-logo img:first-child { height: 22px; width: auto; }
.powered-logo img:last-child { height: 11px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .nav-link { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav .nav-link:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; }
@media (max-width: 860px) { .site-nav .nav-link { display: none; } }
@media (max-width: 520px) { .nav-actions .btn-ghost { display: none; } .brand-word { height: 12px; } .brand-name { font-size: 15px; } }
@media (max-width: 1000px) { .brand-by { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 56px; overflow: hidden; }
/* Soft cyan glow plus a faint grid that fades out toward the edges */
.hero::before {
  content: ''; position: absolute; inset: -160px 0 auto; height: 680px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 50% 20%, rgba(18, 226, 240, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 45% at 15% 0%, rgba(87, 155, 252, 0.10), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
}
.hero { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 4px 12px 4px 4px;
  border: 1px solid var(--border-2); border-radius: var(--pill); background: rgba(13, 20, 29, .7);
  color: var(--text-2); font-size: 13px; font-weight: 500;
}
.eyebrow-tag { padding: 2px 8px; border-radius: var(--pill); background: var(--cyan); color: var(--cyan-ink); font-size: 11px; font-weight: 700; }
.hero h1 {
  max-width: 960px; margin: 0 auto 14px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.12; font-weight: 600;
  letter-spacing: -0.03em; text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--cyan), #7DF3FA 60%, var(--st-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 640px; margin: 0 auto 32px; color: var(--text-2); font-size: 17px; line-height: 1.6; }

/* Website input */
.score-bar {
  display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; padding: 8px 8px 8px 20px;
  border: 1px solid var(--border-2); border-radius: var(--pill); background: var(--surface);
  box-shadow: 0 20px 50px -24px rgba(18, 226, 240, .35);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.score-bar:focus-within { border-color: var(--cyan-line); box-shadow: 0 0 0 4px var(--cyan-soft), 0 20px 50px -24px rgba(18, 226, 240, .5); }
.score-globe { flex: none; width: 18px; height: 18px; color: var(--text-3); }
.score-bar input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 16px var(--font); }
.score-bar input::placeholder { color: var(--text-3); }
.score-bar input:focus-visible { outline: none; }
.score-bar .btn { flex: none; min-height: 48px; padding: 0 26px; }
.hero .fineprint { margin: 12px 0 0; }

/* Example result under the input */
.score-result {
  position: relative; display: flex; align-items: center; gap: 20px; max-width: 760px; margin: 40px auto 0; padding: 22px 26px;
  border: 1px solid var(--border-2); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  text-align: left; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.sr-label {
  position: absolute; top: -10px; left: 20px; padding: 2px 10px; border: 1px solid var(--border-2); border-radius: var(--pill);
  background: var(--bg); color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.sr-main { flex: 1; min-width: 0; }
.sr-main strong { display: block; color: var(--text); font-size: 16px; font-weight: 600; }
.sr-main small { color: var(--text-3); font-size: 13px; }
.sr-tags { margin-top: 4px; }
.tag { display: inline-block; margin: 4px 4px 0 0; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text-2); font-size: 11px; }
.score-result .pill { flex: none; padding: 6px 14px; }
.score-ring {
  --p: 0%; position: relative; display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%;
  background: conic-gradient(var(--st-done) var(--p), var(--border-2) 0); transition: --p 1s cubic-bezier(.4, 0, .2, 1);
}
.score-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface-2); }
.score-ring span { position: relative; color: var(--text); font: 700 18px var(--font-display); }
/* While the example site is being "read", the card shimmers */
.score-result::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(18, 226, 240, .10) 50%, transparent 70%) -100% 0 / 200% 100% no-repeat;
}
.score-result.scanning::after { opacity: 1; animation: card-scan 1.1s linear infinite; }
.score-result.scanning .sr-main, .score-result.scanning .pill { opacity: .35; }
.score-result .sr-main, .score-result .pill { transition: opacity .3s ease; }
@keyframes card-scan { to { background-position: 200% 0; } }
@media (max-width: 520px) {
  .score-bar { padding-left: 12px; }
  .score-bar .btn { padding: 0 14px; }
  .score-globe { display: none; }
  .score-result { flex-wrap: wrap; }
}

/* Selectable "what to automate" chips (they feed the contact form) */
.tiles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.form-prompt { margin: 0 0 10px; color: var(--text); font-size: 14px; font-weight: 600; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile label {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px;
  border: 1px solid var(--border-2); border-radius: var(--pill); background: rgba(13, 20, 29, .8); color: var(--text-2);
  font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer; user-select: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.tile label:hover { border-color: var(--cyan-line); color: var(--text); }
.tile svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }
.tile input:checked + label { border-color: var(--cyan); background: var(--cyan-soft); color: var(--text); }
.tile input:checked + label svg {
  border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5 5-6' fill='none' stroke='%2302161A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tile input:checked + label svg * { visibility: hidden; }

/* ---------- Tool strip ---------- */
.tool-strip { padding: 40px 0 24px; text-align: center; }
.tool-strip p { margin: 0 0 24px; color: var(--text-3); font-size: 14px; }
.tool-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 44px; }
.tool-name { color: var(--text-2); font-family: var(--font-display); font-size: 22px; font-weight: 600; opacity: .75; letter-spacing: -0.01em; }
.tool-name:nth-child(3n+2) { font-weight: 500; font-style: italic; }
.tool-name:nth-child(3n) { font-weight: 700; letter-spacing: 0.02em; font-size: 19px; }

/* ---------- Feature rows ---------- */
.feature { padding: 88px 0; }
.feature .container { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) {
  .feature .container { grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
  .feature.reverse .feature-copy { order: 2; }
}
.feature-copy h2 { margin: 0 0 18px; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; font-weight: 500; }
.feature-copy p { margin: 0 0 28px; color: var(--text-2); font-size: 17px; line-height: 1.75; max-width: 460px; }

/* ---------- Product mockups ---------- */
.mock-stage { position: relative; padding: 24px 28px 36px 0; }
.mock {
  border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow);
  font-size: 11px; color: var(--text-2); overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.mock-body { padding: 16px 18px 20px; }
.mock-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--text); font: 600 16px/1.2 var(--font-display); }
.mock-title span { color: var(--text-3); font: 500 14px var(--font); letter-spacing: .1em; }
.mock-group { margin: 0 0 4px; font-size: 12px; font-weight: 600; }
.mock-group.g1 { color: var(--st-blue); }
.mock-group.g2 { color: var(--st-purple); }
.mock-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; table-layout: fixed; }
.mock-table th { padding: 4px 6px; color: var(--text-3); font-weight: 500; font-size: 10px; text-align: center; }
.mock-table th:first-child { text-align: left; }
.mock-table td { padding: 0 6px; height: 28px; border-top: 1px solid var(--border); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-table td:first-child { text-align: left; color: var(--text); border-left: 3px solid var(--st-blue); padding-left: 8px; }
.mock-table.purple td:first-child { border-left-color: var(--st-purple); }
.avatar {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  color: #fff; font-size: 9px; font-weight: 700; vertical-align: middle;
}
.bar { display: block; height: 7px; border-radius: 99px; background: var(--border-2); overflow: hidden; }
.bar b { display: block; height: 100%; border-radius: inherit; background: var(--st-blue); }
.pill { display: block; padding: 5px 0; border-radius: 4px; color: #fff; font-weight: 600; font-size: 10px; text-align: center; }
.pill.done { background: var(--st-done); }
.pill.working { background: var(--st-working); }
.pill.stuck { background: var(--st-stuck); }
.pill.hot { background: var(--st-done); }
.pill.warm { background: var(--st-working); }
.pill.nurture { background: #5F6E82; }

.float-card {
  position: absolute; border-radius: var(--r-md); background: var(--surface-2);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .8), 0 0 0 1px var(--border-2);
  font-size: 11px;
}
.float-status { top: -8px; right: 0; width: 112px; padding: 8px; display: grid; gap: 5px; }
.float-status .pill { font-size: 10px; }
.float-status small { color: var(--text-3); font-size: 10px; text-align: center; }
.cursor { position: absolute; width: 20px; height: 20px; color: var(--text); filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }

.float-recipe { right: 0; bottom: 0; width: 200px; padding: 18px 16px 14px; text-align: center; color: var(--text-2); line-height: 1.6; }
.float-recipe .plus { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan); font-size: 18px; }
.float-recipe strong { color: var(--text); }
.float-recipe .add { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-2); color: var(--cyan); font-weight: 600; }

.dash-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.dash-panel { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-2); }
.dash-panel h4 { margin: 0 0 10px; color: var(--text); font-size: 11px; font-weight: 600; }
.gantt { display: grid; gap: 7px; }
.gantt-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; }
.gantt-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-track { position: relative; height: 9px; }
.gantt-track b { position: absolute; top: 0; height: 100%; border-radius: 99px; }
.donut-row { display: flex; align-items: center; gap: 18px; }
.donut {
  flex: none; width: 74px; height: 74px; border-radius: 50%;
  background: conic-gradient(var(--st-done) 0 46%, var(--st-working) 46% 78%, var(--st-stuck) 78% 100%);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%); mask: radial-gradient(circle, transparent 46%, #000 47%);
}
.legend { display: grid; gap: 4px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.float-cal { right: -4px; bottom: 0; width: 190px; padding: 12px; }
.float-cal h5 { margin: 0 0 8px; color: var(--text); font-size: 11px; font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; color: var(--text-3); font-size: 8px; text-align: center; }
.cal b { height: 4px; border-radius: 99px; align-self: center; }

/* Live dashboard mock: starts once the section scrolls into view, then loops */
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
.mock-title .live-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: var(--pill);
  background: var(--cyan-soft); color: var(--cyan); font: 600 10px var(--font); letter-spacing: .04em;
}
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: live-pulse 1.6s ease-out infinite; }
.dash-live .mock { position: relative; }
.dash-live .mock::after {
  content: ''; position: absolute; left: 0; right: 0; top: -80px; height: 80px; pointer-events: none;
  background: linear-gradient(transparent, rgba(18, 226, 240, .07), transparent);
}
.dash-live.in .mock::after { animation: scan 4.5s linear infinite; }
.dash-live .gantt-track b { overflow: hidden; transform-origin: left center; }
.dash-live.in .gantt-track b { animation: gantt-grow 7s cubic-bezier(.2, .8, .2, 1) infinite; }
.dash-live.in .gantt-row:nth-child(2) b { animation-delay: .35s; }
.dash-live.in .gantt-row:nth-child(3) b { animation-delay: .7s; }
.dash-live.in .gantt-row:nth-child(4) b { animation-delay: 1.05s; }
.dash-live .gantt-track b::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
}
.dash-live.in .gantt-track b::after { animation: shimmer 2.4s ease-in-out infinite; }
.dash-live .donut { position: relative; }
.dash-live .donut::after { content: ''; position: absolute; inset: 0; background: conic-gradient(transparent 0 var(--p), var(--bg-2) var(--p)); }
.dash-live.in .donut::after { animation: donut-draw 7s cubic-bezier(.4, 0, .2, 1) infinite; }
.dash-live.in .legend span { animation: legend-in 7s ease infinite; }
.dash-live.in .legend span:nth-child(2) { animation-delay: .25s; }
.dash-live.in .legend span:nth-child(3) { animation-delay: .5s; }
.dash-live.in .float-cal { animation: float-bob 5s ease-in-out infinite; }
.dash-live.in .cal b[style] { animation: cal-blink 3.6s ease-in-out infinite; }
.dash-live.in .cal b[style]:nth-of-type(3n+1) { animation-delay: .6s; }
.dash-live.in .cal b[style]:nth-of-type(3n+2) { animation-delay: 1.2s; }
/* Lead tables: rows stream in, score bars fill, in-progress pills pulse */
.dash-live.in .mock-table tbody tr { animation: row-in 9s ease infinite; }
.dash-live.in .mock-table tbody tr:nth-child(2) { animation-delay: .15s; }
.dash-live.in .mock-table tbody tr:nth-child(3) { animation-delay: .3s; }
.dash-live.in .mock-table tbody tr:nth-child(4) { animation-delay: .45s; }
.dash-live.in .mock-table tbody tr:nth-child(5) { animation-delay: .6s; }
.dash-live.in .mock-table tbody tr:nth-child(6) { animation-delay: .75s; }
.dash-live.in .mock-table.purple tbody tr { animation-delay: .5s; }
.dash-live.in .mock-table.purple tbody tr:nth-child(2) { animation-delay: .65s; }
.dash-live .bar b { position: relative; overflow: hidden; transform-origin: left center; }
.dash-live.in .bar b { animation: gantt-grow 9s cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: .4s; }
.dash-live .bar b::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
}
.dash-live.in .bar b::after { animation: shimmer 2.4s ease-in-out infinite; }
.dash-live.in .mock-table .pill.working { animation: pill-busy 1.4s ease-in-out infinite; }
/* Status card: each status lights up in turn while the cursor clicks it */
.dash-live.in .float-status .pill { animation: status-cycle 5s ease infinite; }
.dash-live.in .float-status .pill:nth-of-type(2) { animation-delay: 1s; }
.dash-live.in .float-status .pill:nth-of-type(3) { animation-delay: 2s; }
.dash-live.in .float-status .pill:nth-of-type(4) { animation-delay: 3s; }
.dash-live.in .float-status .pill:nth-of-type(5) { animation-delay: 4s; }
.dash-live.in .status-cursor { animation: cursor-walk 5s ease-in-out infinite; }
/* Workflow recipe card: floats, its + icon pings, the action glows */
.dash-live.in .float-recipe { animation: float-bob 5s ease-in-out infinite; }
.dash-live.in .float-recipe .plus { animation: live-pulse 1.8s ease-out infinite; }
.dash-live.in .float-recipe .add { animation: add-glow 3s ease-in-out infinite; }
@keyframes row-in { 0% { opacity: 0; transform: translateX(-12px); } 8%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-12px); } }
@keyframes pill-busy { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); box-shadow: 0 0 12px rgba(253, 171, 61, .55); } }
@keyframes status-cycle { 0%, 18% { transform: scale(1.06); box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); } 24%, 100% { transform: none; box-shadow: none; } }
@keyframes cursor-walk {
  0%, 14% { transform: translate(0, 0); } 20%, 34% { transform: translate(0, 31px); } 40%, 54% { transform: translate(0, 62px); }
  60%, 74% { transform: translate(0, 93px); } 80%, 94% { transform: translate(0, 124px); } 100% { transform: translate(0, 0); }
}
@keyframes add-glow { 0%, 100% { color: var(--cyan); text-shadow: none; } 50% { color: var(--cyan-hover); text-shadow: 0 0 12px rgba(18, 226, 240, .6); } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 226, 240, .6); } 100% { box-shadow: 0 0 0 7px rgba(18, 226, 240, 0); } }
@keyframes scan { from { top: -80px; } to { top: 100%; } }
@keyframes gantt-grow { 0% { transform: scaleX(0); opacity: .3; } 20%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(0); opacity: .3; } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(200%); } }
@keyframes donut-draw { 0% { --p: 0%; } 28%, 88% { --p: 100%; } 100% { --p: 0%; } }
@keyframes legend-in { 0% { opacity: 0; transform: translateX(-6px); } 15%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-6px); } }
@keyframes float-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes cal-blink { 0%, 100% { opacity: 1; transform: scaleX(1); } 50% { opacity: .35; transform: scaleX(.5); } }

@media (max-width: 560px) {
  .mock-stage { padding-right: 0; }
  .float-status { width: 92px; }
  .float-recipe, .float-cal { position: relative; width: auto; margin: -20px 12px 0; right: auto; bottom: auto; }
  .mock-table .hide-sm { display: none; }
}

/* ---------- Why us cards (monday's award row) ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 600; }
.section-head p { margin: 0; color: var(--text-2); font-size: 17px; }
.block { padding: 96px 0; }
.why-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card {
  padding: 32px 24px; border-radius: var(--r-lg); background: var(--surface);
  box-shadow: 0 0 0 1px var(--border); text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.why-card:hover { box-shadow: 0 0 0 1px var(--cyan-line), 0 20px 40px -20px rgba(18, 226, 240, .25); transform: translateY(-3px); }
.why-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 18px; background: var(--cyan-soft); color: var(--cyan);
}
.why-icon svg { width: 30px; height: 30px; }
.why-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.why-card p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- Integrations hex grid ---------- */
.integrations { overflow: hidden; }
.hex-rows { display: grid; gap: 10px; justify-items: start; margin-top: 8px; }
/* Each row holds its hexagons twice; sliding by exactly half loops seamlessly.
   padding-right equals the gap so both halves are the same width. */
.hex-row { display: flex; gap: 12px; padding-right: 12px; width: max-content; animation: hex-slide 45s linear infinite; }
.hex-row.offset { margin-left: -62px; animation-direction: reverse; animation-duration: 50s; }
.hex-rows:hover .hex-row { animation-play-state: paused; }
@keyframes hex-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hex {
  flex: none; display: grid; place-items: center; width: 112px; height: 124px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color: #fff; font: 700 15px/1.1 var(--font-display); text-align: center; padding: 0 12px;
  transition: transform .2s ease, filter .2s ease;
}
.hex:hover { transform: scale(1.06); filter: brightness(1.1); }
@media (max-width: 640px) {
  .hex { width: 84px; height: 94px; font-size: 12px; }
  .hex-row.offset { margin-left: -48px; }
}

/* ---------- Final CTA + contact ---------- */
.cta { padding: 96px 0 104px; text-align: center; position: relative; }
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 50% 100%, rgba(18, 226, 240, 0.10), transparent 70%);
}
.cta h2 { margin: 0 auto 14px; max-width: 760px; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; font-weight: 400; }
.cta h2 strong { font-weight: 600; }
.cta > .container > p { margin: 0 auto 40px; max-width: 560px; color: var(--text-2); font-size: 17px; }
.contact-card {
  max-width: 720px; margin: 0 auto; padding: 28px; text-align: left;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow);
}
.chosen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.chosen:empty { display: none; }
.chip { padding: 4px 12px; border: 1px solid var(--cyan-line); border-radius: var(--pill); background: var(--cyan-soft); color: var(--cyan); font-size: 13px; font-weight: 500; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .optional { color: var(--text-3); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border-2); border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--text); font: 15px/1.5 var(--font);
  transition: border-color .15s ease;
}
.field input:hover, .field textarea:hover { border-color: #33465F; }
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form-foot .fineprint { margin: 0; }

.notice { padding: 12px 14px; border: 1px solid; border-radius: var(--r-sm); font-size: 14px; }
.notice[hidden] { display: none; }
.notice-error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
.notice-ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }
.footer-top { display: grid; gap: 36px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { margin: 16px 0 0; max-width: 280px; }
.footer-col h4 { margin: 0 0 14px; color: var(--text); font-size: 14px; font-weight: 600; font-family: var(--font); letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile label, .why-card, .hex { transition: none; }
}

/* ---------- Admin login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-page::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(18, 226, 240, 0.12), transparent 70%);
}
.login-card { width: 100%; max-width: 400px; }
.login-card .brand { justify-content: center; margin-bottom: 28px; }
.login-card .brand img { height: 40px; }
.login-card .brand-name { font-size: 24px; }
.card { padding: 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.login-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; text-align: center; }
.login-card .sub { margin: 0 0 20px; color: var(--text-2); font-size: 14px; text-align: center; }
.login-card .btn { width: 100%; border-radius: var(--r-sm); }
.login-back { display: block; margin-top: 20px; text-align: center; color: var(--text-3); font-size: 13px; text-decoration: none; }
.login-back:hover { color: var(--text-2); }

/* ---------- Robot check on the contact form ---------- */
.captcha {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border-2); border-radius: var(--r-sm); background: var(--bg-2);
}
.captcha-check { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--text); user-select: none; }
.captcha-check input { position: absolute; opacity: 0; pointer-events: none; }
.captcha-box {
  position: relative; flex: none; width: 24px; height: 24px;
  border: 2px solid var(--border-2); border-radius: 6px; background: var(--bg);
  transition: border-color .15s ease, background-color .15s ease;
}
.captcha-check:hover .captcha-box { border-color: var(--cyan-line); }
.captcha-check input:focus-visible + .captcha-box { outline: 2px solid var(--cyan); outline-offset: 3px; }
.captcha[data-state="working"] .captcha-box {
  border-color: var(--border-2); border-top-color: var(--cyan); border-radius: 50%;
  animation: captcha-spin .8s linear infinite;
}
.captcha[data-state="done"] .captcha-box {
  border-color: var(--st-done); background: var(--st-done) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.captcha[data-state="done"] .captcha-check { cursor: default; }
.captcha[data-state="error"] { border-color: var(--error-border); }
.captcha-meta { color: var(--text-3); font-size: 12px; line-height: 1.3; text-align: right; }
.captcha-meta svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--cyan); }
@keyframes captcha-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .captcha[data-state="working"] .captcha-box { animation-duration: 2.5s; } }
@media (max-width: 420px) { .captcha-meta { display: none; } }

/* Math question spam check */
.captcha-q { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-2); font-size: 15px; }
.captcha-q svg { flex: none; width: 18px; height: 18px; color: var(--cyan); }
.captcha-q strong { color: var(--text); font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.captcha-row { display: flex; align-items: center; gap: 8px; flex: none; }
.captcha-row input {
  width: 96px; padding: 9px 12px; border: 1px solid var(--border-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text); font: 600 16px/1.3 var(--font); text-align: center;
}
.captcha-row input:hover { border-color: #33465F; }
.captcha-refresh {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--border-2); border-radius: var(--r-sm); background: transparent; color: var(--text-2); cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.captcha-refresh:hover { color: var(--cyan); border-color: var(--cyan-line); }
.captcha-refresh:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.captcha-refresh svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .captcha { flex-direction: column; align-items: stretch; } .captcha-row input { flex: 1; width: auto; } }
.contact-card .chosen { display: none; }

/* ---------- FAQ ---------- */
.faq { padding: 88px 0 24px; }
.faq-list { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--border-2); border-radius: var(--r-md); background: var(--surface); transition: border-color .15s ease; }
.faq details[open] { border-color: var(--cyan-line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px;
  color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--cyan); font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
