/* Landing page: same "premium calm" look as the dashboard. */

:root {
  --bg: #0b0d11;
  --bg-2: #11141a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f5f8;
  --text-2: #a3acb9;
  --text-3: #6b7482;
  --ok: #3ddc97;
  --armed: #f5b13d;
  --accent: #3ddc97;        /* replaced by the installer's brand colour */
  --on-accent: #07090d;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Noto Sans Georgian", sans-serif;
  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wide: 1160px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f7;
    --bg-2: #ffffff;
    --surface: rgba(10, 20, 40, 0.035);
    --surface-2: rgba(10, 20, 40, 0.06);
    --line: rgba(10, 20, 40, 0.08);
    --line-2: rgba(10, 20, 40, 0.14);
    --text: #10141b;
    --text-2: #4d5664;
    --text-3: #7d8593;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--text);
  background: radial-gradient(110vmax 70vmax at 80% -10%, color-mix(in srgb, var(--accent) 14%, var(--bg)) 0%, var(--bg) 60%) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
svg { width: 1em; height: 1em; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  color: var(--on-accent); background: var(--accent);
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.97); }
.btn svg { font-size: 18px; }
.btn-ghost { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--wide); margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) 24px 14px;
}
.top::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-logo { display: grid; place-items: center; width: 34px; height: 34px; color: var(--accent); font-size: 28px; }
.brand-logo img { max-width: 100%; max-height: 100%; }
.top-nav { display: flex; gap: 22px; margin-left: 12px; }
.top-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.top-nav a:hover { color: var(--text); }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.lang button {
  border: 0; background: none; cursor: pointer; padding: 6px 10px; border-radius: 999px;
  font: 600 13px/1 var(--font); color: var(--text-3);
}
.lang button.is-on { background: var(--bg-2); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }

/* ------------------------------------------------------------ hero */
main { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 56px;
  padding: 72px 0 64px;
}
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 750; }
.lead { color: var(--text-2); font-size: 18.5px; margin-top: 22px; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 16px; color: var(--text-3); font-size: 14px; }

/* The drawn iPad */
.device {
  position: relative; aspect-ratio: 4 / 3; border-radius: 34px; padding: 12px;
  background: linear-gradient(160deg, #2a2f38, #14171c);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  transition: transform 0.8s var(--ease);
}
.device:hover { transform: perspective(1600px) rotateY(-4deg) rotateX(1deg); }
.device-screen {
  height: 100%; border-radius: 24px; overflow: hidden; display: flex;
  background: radial-gradient(120% 90% at 70% -20%, #161b24 0%, #0b0d11 60%);
  color: #f3f5f8; font-size: clamp(8px, 1.05vw, 13px);
}
.mock-rail { width: 13%; border-right: 1px solid rgba(255, 255, 255, 0.07); display: flex; flex-direction: column; align-items: center; gap: 0.9em; padding-top: 1.6em; }
.mock-mark { color: var(--accent); font-size: 2.2em; margin-bottom: 0.6em; }
.mock-item { width: 52%; aspect-ratio: 1; border-radius: 0.9em; background: rgba(255, 255, 255, 0.05); }
.mock-item.is-on { background: rgba(255, 255, 255, 0.12); }
.mock-main { flex: 1; display: flex; flex-direction: column; padding: 1.6em 2em; min-width: 0; }
.mock-bar { display: flex; justify-content: space-between; align-items: flex-start; }
.mock-bar div { display: flex; flex-direction: column; }
.mock-greet { color: #a3acb9; font-size: 0.95em; }
.mock-bar b { font-size: 1.9em; letter-spacing: -0.02em; }
.mock-clock { font-size: 1.9em; font-weight: 300; font-variant-numeric: tabular-nums; }
.mock-body { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2em; align-items: center; }
.mock-ring { position: relative; aspect-ratio: 1; }
.mock-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mock-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 9; }
.mock-arc {
  fill: none; stroke: var(--armed); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 603; stroke-dashoffset: 151;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--armed) 60%, transparent));
  animation: arc 2.4s var(--ease) both;
}
@keyframes arc { from { stroke-dashoffset: 603; } }
.mock-core { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25em; text-align: center; }
.mock-core svg { width: 2.8em; height: 2.8em; color: var(--armed); margin-bottom: 0.3em; }
.mock-core b { font-size: 1.55em; }
.mock-core span { color: #a3acb9; font-size: 0.95em; }
.mock-side { display: flex; flex-direction: column; gap: 0.6em; }
.mock-card {
  display: flex; align-items: center; gap: 0.7em; padding: 0.85em 1em; border-radius: 1em;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap; overflow: hidden;
}
.mock-card span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.mock-card em { font-style: normal; color: #6b7482; }
.mock-event { margin-top: 0.4em; }
.mock-dot { width: 0.6em; height: 0.6em; border-radius: 50%; flex: none; }
.mock-dot.ok { background: var(--armed); }
.mock-dot.off { background: #6b7482; }
.mock-dot.warn { background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* ------------------------------------------------------------ strip */
.strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  border-radius: var(--radius); overflow: hidden; background: var(--line);
  border: 1px solid var(--line);
}
.strip div { display: flex; flex-direction: column; gap: 6px; padding: 26px 28px; background: color-mix(in srgb, var(--bg) 97%, var(--text)); }
.strip b { font-size: 17px; }
.strip span { color: var(--text-2); font-size: 15px; }

/* ------------------------------------------------------------ sections */
.section { padding: 110px 0 0; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 720; max-width: 18em; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.features article {
  padding: 26px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.features article:hover { border-color: var(--line-2); transform: translateY(-2px); }
.features svg { font-size: 30px; color: var(--accent); }
.features h3 { font-size: 18px; margin: 18px 0 8px; }
.features p { color: var(--text-2); font-size: 15px; }

.steps ol { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; padding-top: 26px; border-top: 1px solid var(--line-2); }
.steps li::before { content: "0" counter(step); color: var(--accent); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.steps b { font-size: 19px; }
.steps span { color: var(--text-2); }

.installers {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center;
  margin-top: 110px; padding: 56px; border-radius: 34px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 12%, var(--bg-2)), var(--bg-2) 70%);
  border: 1px solid var(--line);
}
.installers .eyebrow { margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { position: relative; padding: 16px 18px 16px 50px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.security { display: flex; gap: 28px; align-items: flex-start; }
.security > svg { flex: none; font-size: 44px; color: var(--accent); margin-top: 4px; }
.security p { color: var(--text-2); font-size: 18px; margin-top: 16px; max-width: 46em; }

/* ------------------------------------------------------------ contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 40px; }
.form { display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--text-2); }
.form input, .form textarea {
  font: 16px/1.4 var(--font); color: var(--text);
  padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg-2); outline: none; resize: vertical;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.kind { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kind legend { font-size: 14px; color: var(--text-2); margin-bottom: 7px; padding: 0; }
.kind label { flex-direction: row; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind span { padding: 10px 15px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2); cursor: pointer; font-size: 15px; }
.kind input:checked + span { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg-2)); }
.kind input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.form .btn { align-self: flex-start; margin-top: 4px; }
.form-msg { font-size: 15px; min-height: 1.4em; color: var(--text-2); }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #ff5a4e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot {
  max-width: var(--wide); margin: 70px auto 0; padding: 28px 24px calc(env(safe-area-inset-bottom) + 28px);
  display: flex; justify-content: space-between; gap: 16px; color: var(--text-3); font-size: 14px;
  border-top: 1px solid var(--line);
}
.foot a { color: var(--text-2); text-decoration: none; }

/* ------------------------------------------------------------ smaller screens */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; }
  .device { transform: none; max-width: 640px; }
  .device:hover { transform: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .installers, .contact { grid-template-columns: 1fr; gap: 32px; }
  .installers { padding: 36px; }
}
@media (max-width: 760px) {
  .top { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .top-nav { display: none; }
  .brand-name { display: none; }
  main { padding: 0 16px; }
  .hero { padding: 36px 0 44px; }
  .lead { font-size: 17px; }
  .device { padding: 7px; border-radius: 22px; }
  .device-screen { border-radius: 16px; font-size: 7.5px; }
  .strip, .steps ol { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .section { padding-top: 76px; }
  .installers { margin-top: 76px; padding: 26px 20px; border-radius: 26px; }
  .security { flex-direction: column; gap: 14px; }
  .form { padding: 22px 18px; }
  .foot { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mock-arc, .mock-dot.warn { animation: none; }
  .device, .features article { transition: none; }
}

.contact-direct { margin-top: 22px; font-size: 18px; font-weight: 600; }
.contact-direct:empty { display: none; }
.contact-direct a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot-links { display: flex; gap: 18px; }
