/* ==========================================================================
   Cirruscope — website styles
   Single stylesheet for all pages. Colours are driven by CSS custom
   properties; the dark theme is applied automatically via a
   prefers-color-scheme media query (there is no manual theme switch).
   ========================================================================== */

/* Design tokens --------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #0a1c2c;
  --text-2: #54626f;
  --primary: #0082c9;
  --primary-press: #006ba8;
  --border: rgba(10, 28, 44, 0.1);
  --card: #ffffff;
  --card-border: rgba(10, 28, 44, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.75);
  --badge-bg: #eaf4fc;
  --badge-text: #0082c9;
  --shadow-lg: 0 50px 100px -30px rgba(10, 28, 44, 0.45);

  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    system-ui, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a121c;
    --bg-alt: #0f1a26;
    --text: #f0f5f9;
    --text-2: #9fb0bd;
    --primary: #2ea3e8;
    --primary-press: #57b6ee;
    --border: rgba(255, 255, 255, 0.12);
    --card: #111c29;
    --card-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(10, 18, 28, 0.7);
    --badge-bg: rgba(46, 163, 232, 0.15);
    --badge-text: #6cc4f2;
    --shadow-lg: 0 50px 100px -30px rgba(0, 0, 0, 0.6);
  }
}

/* Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-press);
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 28px;
  height: 28px;
}

.brand__mark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  position: relative;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
}

.nav__link:hover {
  color: var(--primary);
}

.nav__link[aria-current="page"] {
  color: var(--primary);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.icon-link {
  display: flex;
  color: var(--text-2);
}

.icon-link:hover {
  color: var(--primary);
}

/* Language switcher ----------------------------------------------------- */
.lang {
  position: relative;
}

.lang__button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  font: 600 13px var(--font);
  color: var(--text);
  cursor: pointer;
}

.lang__button:hover {
  border-color: var(--primary);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 28, 44, 0.16);
  padding: 6px;
  z-index: 60;
}

.lang__menu[hidden] {
  display: none;
}

.lang__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font: 400 14px var(--font);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.lang__option:hover {
  background: var(--bg-alt);
}

.lang__option[aria-current="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

/* Hamburger + mobile nav ------------------------------------------------ */
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  color: var(--text);
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 4px;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* Buttons + badges ------------------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 100px;
  white-space: nowrap;
}

.button:hover {
  background: var(--primary-press);
  color: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 14px;
  font-weight: 600;
}

.badge--muted {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-2);
  padding: 5px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}

/* Hero ------------------------------------------------------------------ */
.hero {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  padding: 120px 24px 64px;
}

.hero__title {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 700;
  margin: 28px 0 0;
}

.hero__subtitle {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text-2);
  max-width: 620px;
  margin: 24px auto 0;
}

/* Product screenshot ---------------------------------------------------- */
.shot {
  padding: 0 24px 140px;
}

.shot__frame {
  max-width: 1040px;
  margin: 0 auto;
}

.shot__frame img {
  width: 100%;
  height: auto;
}

/* Section headings ------------------------------------------------------ */
.section {
  padding: 0 24px 120px;
}

.section__title {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin: 0 auto 64px;
}

/* Bento-style grids (features + pillars) -------------------------------- */
.grid {
  display: grid;
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
}

.grid--features {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--pillars {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1040px;
}

@media (max-width: 640px) {
  .grid--pillars {
    grid-template-columns: 1fr;
  }
}

.cell {
  background: var(--card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cell--pillar {
  padding: 40px 36px;
}

.cell__icon {
  color: var(--primary);
}

.cell__num {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
}

.cell__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.cell--pillar .cell__title {
  font-size: 19px;
}

.cell__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

.cell--pillar .cell__text {
  line-height: 1.6;
}

/* Call-to-action box ---------------------------------------------------- */
.cta {
  padding: 0 24px 160px;
  text-align: center;
}

.cta--spaced {
  padding-top: 80px;
}

.cta__box {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: 24px;
  background: var(--bg-alt);
}

.cta__box--narrow {
  max-width: 640px;
}

.cta__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}

.cta__text {
  font-size: 16px;
  color: var(--text-2);
  margin: 0 0 24px;
}

.cta__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
}

/* Support page ---------------------------------------------------------- */
.support-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 48px;
}

.support-hero__title {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
}

.support-hero__subtitle {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin: 20px auto 0;
}

.panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 24px 40px;
}

.issue-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 20px;
  padding: 36px;
}

.issue-card__body {
  display: flex;
  align-items: center;
  gap: 18px;
}

.issue-card__icon {
  color: var(--primary);
  flex: none;
}

.issue-card__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

.issue-card__text {
  font-size: 14.5px;
  color: var(--text-2);
  margin: 0;
  max-width: 380px;
}

/* FAQ ------------------------------------------------------------------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}

.faq__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 22px 2px;
  font: 600 16.5px var(--font);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq__sign {
  font-size: 20px;
  line-height: 1;
  color: var(--text-2);
  flex: none;
}

.faq__answer {
  margin: 0 0 24px;
  padding: 0 2px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 640px;
}

.faq__answer[hidden] {
  display: none;
}

/* Privacy page ---------------------------------------------------------- */
.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 24px 120px;
}

.doc__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 12px;
}

.doc__meta {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 40px;
}

.doc__intro {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0 0 48px;
}

.doc__sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.doc__heading {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
}

.doc__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}

/* Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  padding: 64px 24px 40px;
}

.site-footer__brand {
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__mark {
  width: 24px;
  height: 24px;
}

.site-footer__mark img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.site-footer__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.site-footer__tagline {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.footer-col a {
  font-size: 14px;
  color: var(--text);
}

.footer-col a:hover {
  color: var(--primary);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding: 24px 24px 40px;
  border-top: 1px solid var(--border);
}

.site-footer__legal p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.site-footer__disclaimer {
  max-width: 640px;
}
