/* Gjenial — modern static site */
:root {
  --bg: #f1f4f9;
  --bg-elevated: #ffffff;
  --text: #0c1222;
  --text-secondary: #475569;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --accent-hover: #4338ca;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 12px 40px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.08), 0 24px 48px rgba(79, 70, 229, 0.06);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --max-width: 42rem;
  --header-blur: 16px;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(79, 70, 229, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(14, 165, 233, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(99, 102, 241, 0.06), transparent 45%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.22em;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

p a,
.meta-row a,
.policy a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

p a:hover,
.meta-row a:hover,
.policy a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.88;
}

.site-logo img {
  display: block;
  height: auto;
  width: auto;
  max-height: 2.5rem;
  max-width: min(180px, 40vw);
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.06));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.site-nav a {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

main {
  flex: 1;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-footer__inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--accent);
}

.hero {
  margin-bottom: 2.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
  color: var(--text);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(125deg, var(--text) 0%, #312e81 45%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: var(--max-width);
  margin: 0 0 1.5rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem;
  max-width: var(--max-width);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.card p:last-child {
  margin-bottom: 0;
}

.card .product-hero__text p:last-child {
  margin-bottom: 0;
}

.card .product-hero__text strong {
  color: var(--text);
}

/* Product page */
.product-hero {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.product-icon {
  display: block;
  width: 5rem;
  height: 5rem;
  border-radius: 22%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
}

.product-icon--sm {
  width: 4rem;
  height: 4rem;
}

.product-hero--card {
  margin-bottom: 0;
  align-items: flex-start;
}

.product-hero__text {
  flex: 1;
  min-width: min(100%, 12rem);
}

.product-hero .page-title {
  margin-bottom: 0.35rem;
}

.product-screenshot {
  margin: 0 0 1.75rem;
  text-align: center;
}

.product-screenshot img {
  display: block;
  width: 100%;
  max-width: min(22rem, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: calc(var(--radius-lg) - 2px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.tagline {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.store-block {
  margin: 1.5rem 0;
  padding: 1.35rem 1.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.store-block h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.store-block p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.features {
  margin: 1.75rem 0;
}

.features h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.features ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.features li:last-child {
  margin-bottom: 0;
}

.meta-row {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.meta-row p {
  margin: 0 0 0.5rem;
}

.meta-row p:last-child {
  margin-bottom: 0;
}

/* Policy page */
.policy {
  max-width: 40rem;
}

.policy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--text);
}

.policy .meta {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.policy .meta p {
  margin: 0.25rem 0;
}

.policy .intro {
  margin: 0 0 1.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.policy h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.policy h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.35rem 0 0.5rem;
  color: var(--text);
}

.policy ol.purpose-list {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.policy ol.purpose-list li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.policy ol.purpose-list li p {
  color: inherit;
}

.policy ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.policy li {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.policy p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.policy strong {
  color: var(--text);
  font-weight: 600;
}

.policy code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(79, 70, 229, 0.08);
  color: #3730a3;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.policy section:last-child p:last-child,
.policy section:last-child ul:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  main {
    padding: 2.75rem 1.5rem 4.5rem;
  }

  .site-header__inner,
  .site-footer__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .card {
    padding: 1.85rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}
