/* floatly.online — shared styles for the home, privacy and terms pages. */

:root {
  --bg: #f6fafd;
  --surface: #ffffff;
  --surface-2: #eef5fa;
  --text: #0f1b2d;
  --muted: #526073;
  --border: #dde6ee;
  --brand: #2b8fc4;
  --brand-dark: #1a4a8c;
  --brand-light: #4dd8ea;
  --link: #1f7ab3;
  --hero-from: #4dd8ea;
  --hero-to: #1a3f86;
  --ring: conic-gradient(from 200deg, #ff3d7f, #ff8a3d, #ffa51f, #2fc7b5, #5b8de8, #7b61ff, #c04fd0, #ff3d7f);
  --shadow: 0 10px 30px rgba(17, 54, 99, 0.10);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --surface: #111a2b;
    --surface-2: #16223a;
    --text: #e8eef6;
    --muted: #9aa8bb;
    --border: #22304a;
    --link: #6cc8ec;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; font-weight: 700; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, var(--hero-from) 0%, #2b8fc4 45%, var(--hero-to) 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin: 0 0 18px; font-weight: 900; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); margin: 0 0 30px; color: rgba(255, 255, 255, 0.9); max-width: 34ch; }
.bubble { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.bubble.b1 { width: 26px; height: 26px; top: 12%; right: 9%; }
.bubble.b2 { width: 14px; height: 14px; top: 7%; right: 6%; opacity: 0.6; }
.bubble.b3 { width: 180px; height: 180px; bottom: -60px; left: -50px; background: rgba(255, 255, 255, 0.07); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 14px;
  background: rgba(8, 20, 40, 0.55); color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700; font-size: 15px; line-height: 1.2;
}
.badge small { display: block; font-weight: 600; font-size: 11px; opacity: 0.8; letter-spacing: 0.02em; }
.badge svg { width: 22px; height: 22px; flex: none; }
.soon { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }

.icon-stage { display: grid; place-items: center; }
.icon-ring {
  width: min(300px, 70vw); aspect-ratio: 1; border-radius: 22.5%;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(5, 20, 50, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.25);
  animation: float 6s ease-in-out infinite;
}
.icon-ring img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .icon-ring { animation: none; } }

/* ---- Sections ---- */
section { padding: 80px 0; }
.section-title { text-align: center; margin: 0 auto 44px; max-width: 640px; }
.section-title h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 12px; font-weight: 900; letter-spacing: -0.01em; }
.section-title p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; margin-bottom: 16px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.c1 { background: linear-gradient(135deg, #ff3d7f, #ff8a3d); }
.c2 { background: linear-gradient(135deg, #ffa51f, #f0c419); }
.c3 { background: linear-gradient(135deg, #2fc7b5, #2b8fc4); }
.c4 { background: linear-gradient(135deg, #5b8de8, #7b61ff); }
.c5 { background: linear-gradient(135deg, #7b61ff, #c04fd0); }
.c6 { background: linear-gradient(135deg, #2b8fc4, #1a4a8c); }

.trust { background: var(--surface-2); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-item { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.trust-item h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.trust-item p { margin: 0; color: var(--muted); font-size: 15px; }

.cta { text-align: center; }
.cta .box {
  border-radius: 28px; padding: 48px 24px; color: #fff;
  background: linear-gradient(140deg, var(--hero-from), var(--hero-to));
}
.cta h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); font-weight: 900; }
.cta p { margin: 0 0 24px; color: rgba(255, 255, 255, 0.88); }
.cta .badges { justify-content: center; }

/* ---- Legal pages ---- */
.doc-head { padding: 56px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.doc-head h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 8px; font-weight: 900; letter-spacing: -0.01em; }
.doc-head .updated { color: var(--muted); margin: 0; font-size: 15px; }
.doc-tabs { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.doc-tabs a {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; background: var(--surface);
}
.doc-tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin: 0 0 36px; }
.doc .toc h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; padding: 3px 0; font-size: 15px; }
.toc a { text-decoration: none; }

.doc { padding-bottom: 64px; }
.doc .intro { font-size: 18px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; font-weight: 800; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; margin: 8px 0 16px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--brand); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--text); }
.site-footer address { font-style: normal; }

/* ---- Small screens ---- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 56px; padding-bottom: 70px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .icon-stage { order: -1; }
  .icon-ring { width: min(220px, 60vw); }
  .features, .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 14px; font-size: 14px; }
  .brand span { display: none; }
  section { padding: 56px 0; }
  .features, .trust-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
