/* FluidBridge site: Apple-style, black, in the app's colors. */
:root {
  --bg: #000;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --line: #2c2c2e;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --green: #8dc63f;
  --green-dark: #0e1a00;
  --heart: #ff375f;
  --yellow: #ffd60a;
  --orange: #ff9f0a;
  --radius: 28px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap { display: flex; align-items: center; height: 52px; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav .links { margin-left: auto; display: flex; gap: 24px; font-size: 14px; white-space: nowrap; }
.nav .links a { color: var(--muted); }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Type */
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }
.eyebrow { color: var(--green); font-weight: 600; font-size: 17px; margin: 0 0 10px; }
.display { font-size: clamp(44px, 8vw, 88px); font-weight: 700; line-height: 1.04; }
.headline { font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.08; }
.lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); line-height: 1.4; max-width: 720px; }
.green { color: var(--green); }
.heart { color: var(--heart); }
.yellow { color: var(--yellow); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

section { padding: 110px 0; }
section + section { border-top: 1px solid var(--line); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.center .actions { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 980px;
  font-size: 17px; font-weight: 600;
}
.btn:hover { text-decoration: none; }
.btn-green { background: var(--green); color: #000; }
.btn-green:hover { background: #9ad44b; }
.btn-ghost { color: var(--green); border: 1px solid rgba(141, 198, 63, 0.5); }
.btn-ghost:hover { background: rgba(141, 198, 63, 0.1); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Hero */
.hero { padding: 90px 0 0; overflow: hidden; }
.hero .phones { display: flex; justify-content: center; align-items: flex-end; gap: 26px; margin-top: 64px; }
.hero .phones .phone:nth-child(1), .hero .phones .phone:nth-child(3) { width: 250px; opacity: 0.9; margin-bottom: -60px; }
.hero .phones .phone:nth-child(2) { width: 300px; }

/* App name block */
.appname { display: flex; flex-direction: column; align-items: center; margin-bottom: 34px; }
.appname img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 18px 50px rgba(141, 198, 63, 0.25); }
.appname-title { font-size: clamp(34px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 0; }
.appname-sub { color: var(--muted); font-size: 19px; margin: 4px 0 0; }

/* Phone frame */
.phone {
  width: 280px; flex: none;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(145deg, #3a3a3c, #1c1c1e);
  box-shadow: 0 30px 80px rgba(141, 198, 63, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.phone img { border-radius: 37px; width: 100%; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; background: #000; }
.phone.small { width: 220px; border-radius: 38px; padding: 8px; }
.phone.small img { border-radius: 30px; }

/* Flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 56px; }
.flow .node { background: var(--card); border-radius: var(--radius); padding: 30px 22px; text-align: center; }
.flow .node svg { width: 44px; height: 44px; margin: 0 auto 14px; display: block; }
.flow .node h3 { font-size: 21px; }
.flow .node p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.flow .arrow { color: var(--green); font-size: 30px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.card { background: var(--card); border-radius: var(--radius); padding: 30px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .icon { width: 40px; height: 40px; margin-bottom: 18px; }
.card.wide { grid-column: span 2; }

/* Split: text + phone */
.split { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.split.reverse { grid-template-columns: auto 1fr; }
.split ul { color: var(--muted); padding-left: 20px; }
.split li { margin: 8px 0; }
.split li strong { color: var(--text); }

/* Gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 50px 22px 30px; margin: 0 -22px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 14px; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 16px; }
th, td { text-align: left; padding: 15px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 14px; }
td:first-child { font-weight: 600; }
.ok { color: var(--green); font-weight: 600; }
.no { color: var(--muted); }
.table-card { background: var(--card); border-radius: var(--radius); padding: 10px 24px 18px; margin-top: 40px; overflow-x: auto; }

/* Pricing */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 50px; }
.price .card { text-align: center; padding: 44px 30px; }
.price .big { font-size: 64px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 10px 0 14px; }

/* Long-form pages (manual, privacy) */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 60px; padding-top: 70px; padding-bottom: 110px; }
.toc { position: sticky; top: 80px; align-self: start; font-size: 14px; }
.toc a { display: block; color: var(--muted); padding: 5px 0; }
.toc a:hover { color: var(--text); text-decoration: none; }
.doc article { min-width: 0; }
.doc article h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 14px; }
.doc article h2 { font-size: 30px; margin: 70px 0 16px; padding-top: 10px; }
.doc article h3 { font-size: 21px; margin: 34px 0 10px; }
.doc article p, .doc article li { color: #d2d2d7; }
.doc article strong { color: var(--text); }
.doc article li { margin: 7px 0; }
.doc .shots { display: flex; flex-wrap: wrap; gap: 22px; margin: 30px 0; }
.doc .shots figure { margin: 0; }
.doc .shots figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; max-width: 220px; }
.callout { background: var(--card); border-radius: 18px; padding: 18px 22px; margin: 22px 0; color: #d2d2d7; }
.callout strong { color: var(--green); }
kbd { background: var(--card-2); border-radius: 6px; padding: 1px 7px; font: inherit; font-size: 0.92em; }

/* Sensor illustration */
.sensor { margin-top: 56px; text-align: left; }
.split.sensor { grid-template-columns: 1fr 1.1fr; gap: 40px; }
@media (max-width: 860px) { .split.sensor { grid-template-columns: 1fr; } }
.subhead { font-size: 30px; margin-bottom: 12px; }
.illustration { width: 100%; max-width: 560px; height: auto; margin: 20px auto; }

/* FAQ */
.faqs { max-width: 820px; margin: 46px auto 0; }
.faq { background: var(--card); border-radius: 18px; padding: 0 24px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; color: var(--green); font-size: 26px; font-weight: 400; }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 0; padding: 0 0 22px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; }
footer nav a { color: var(--muted); }
footer p { margin: 6px 0 0; max-width: 640px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .phone { margin: 0 auto; }
  .price { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: none; }
  .hero .phones .phone:nth-child(1), .hero .phones .phone:nth-child(3) { display: none; }
  .nav .links { gap: 16px; }
  .nav .links .wide { display: none; }
  section { padding: 80px 0; }
}
