/* CalcIUM site — dark-first, static */
:root {
  --bg: #0c0e14;
  --bg-elevated: #12151f;
  --bg-card: #161a26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #8b92a8;
  --accent: #6ec8ff;
  --accent-soft: rgba(110, 200, 255, 0.14);
  --violet: #a78bfa;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 64px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.beach {
  position: relative;
}

body.beach .layout-main {
  position: relative;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

main code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

/* Silver shimmer for CalcIUM wordmarks */
.brand span {
  color: #f8f8f8;
  background-image: linear-gradient(
    115deg,
    #666666 0%,
    #fdfdfd 45%,
    #6f6f6f 100%
  );
  background-size: 280% 280%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: silver-shimmer 4.2s linear infinite;
}

@keyframes silver-shimmer {
  0% {
    background-position: 220% 12%;
  }
  100% {
    background-position: -40% 88%;
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 0.35rem 1.25rem;
  margin-top: auto;
  background: var(--bg-elevated);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.footer__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

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

.footer__credits {
  margin: 0 0 0 auto;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .footer__inner {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .footer__links {
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }

  .footer__credits {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    text-align: right;
  }
}

.contact-credits {
  margin: 2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 42rem;
}

.lead--compact {
  margin-bottom: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #0c0e14;
  border-color: var(--accent);
}

.btn--primary:hover {
  filter: brightness(1.06);
  color: #0c0e14;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(110, 200, 255, 0.35);
  color: var(--accent);
}

.btn--play img {
  height: 40px;
  width: auto;
  display: block;
}

.section {
  margin-top: 3.5rem;
}

.section:first-of-type {
  margin-top: 2rem;
}

.section__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section--positioning {
  margin-top: 1.65rem;
  max-width: none;
}

.positioning-copy {
  margin: 0 0 0.58rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.58;
}

.positioning-copy:last-child {
  margin-bottom: 0;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-block + .screenshot-grid,
.lead + .screenshot-grid {
  margin-top: 1rem;
}

.shot,
.theme-showcase figure {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}

.shot img,
.theme-showcase img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.page-features .shot img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
}

body.page-home .shot img,
body.page-home .theme-showcase img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
}

.shot figcaption,
.theme-showcase figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.feature-block {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .feature-block--reverse .feature-block__media {
    order: 2;
  }

  .feature-block--reverse .feature-block__text {
    order: 1;
  }

  .feature-block {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.feature-block__text h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.feature-block__text ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-block__text li {
  margin: 0.35rem 0;
}

.feature-block__media .shot {
  background: #121723;
}

.feature-block__media .shot + .shot {
  margin-top: 1rem;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-text-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.feature-subtitle {
  font-size: 1rem;
  margin-top: 0;
}

.feature-media--narrow {
  max-width: 320px;
  margin: 0 auto;
}

.note-box {
  background: var(--accent-soft);
  border: 1px solid rgba(110, 200, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-top: 2rem;
}

.note-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.privacy-doc {
  max-width: var(--max);
}

.privacy-doc h1 {
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
}

.privacy-doc .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.privacy-doc h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.6rem;
  color: var(--text);
}

.privacy-doc p,
.privacy-doc li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.privacy-doc ul {
  padding-left: 1.25rem;
}

.privacy-doc p {
  margin: 0.65rem 0;
}

.help-hub {
  display: grid;
  gap: 0.65rem;
  max-width: none;
}

.help-hub a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  text-align: center;
}

.help-hub a:hover {
  border-color: rgba(110, 200, 255, 0.35);
  text-decoration: none;
}

.help-lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.help-lang-switch a {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-decoration: none;
}

.help-lang-switch a:hover,
.help-lang-switch a[aria-current="page"] {
  color: var(--accent);
  border-color: rgba(110, 200, 255, 0.35);
  background: var(--accent-soft);
  text-decoration: none;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1rem;
}

body.page-home .hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

body.beach .layout-main::before {
  content: "";
  position: fixed;
  left: 32px;
  top: 628px;
  width: 143px;
  height: 240px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.17;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-80 0 400 640'%3E%3Cdefs%3E%3ClinearGradient id='fadeBottom' x1='0' y1='490' x2='0' y2='600' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='white'/%3E%3Cstop offset='1' stop-color='black'/%3E%3C/linearGradient%3E%3Cmask id='palmMask'%3E%3Crect x='-80' y='0' width='400' height='490' fill='white'/%3E%3Crect x='-80' y='490' width='400' height='110' fill='url(%23fadeBottom)'/%3E%3C/mask%3E%3C/defs%3E%3Cg fill='%23415e51' mask='url(%23palmMask)'%3E%3Cpath d='M102 150C92 232 106 318 119 398C130 468 126 532 118 590L136 590C142 534 146 468 137 398C126 316 116 230 122 150Z'/%3E%3Cpath d='M117 156c56-52 126-66 188-44-70 14-128 40-188 82z'/%3E%3Cpath d='M117 156c-48-54-106-68-162-54 62 18 112 46 162 84z'/%3E%3Cpath d='M117 170c68-28 146-28 206 0-74 4-138 24-206 56z'/%3E%3Cpath d='M117 170c-58-30-126-30-188-10 66 8 128 28 188 62z'/%3E%3Cpath d='M117 188c74-8 154 14 210 58-78-24-148-24-210 10z'/%3E%3Cpath d='M117 188c-64-18-132-6-190 30 70-12 136-8 190 20z'/%3E%3C/g%3E%3C/svg%3E");
}

body.beach .layout-main::after {
  content: "";
  position: fixed;
  left: 144px;
  top: 589px;
  width: 167px;
  height: 282px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.58;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 640'%3E%3Cdefs%3E%3Cfilter id='sunGlow' x='-120%25' y='-120%25' width='340%25' height='340%25'%3E%3CfeGaussianBlur stdDeviation='22'/%3E%3C/filter%3E%3C/defs%3E%3Ccircle cx='198' cy='86' r='30' fill='%23f0a66f' fill-opacity='0.5' filter='url(%23sunGlow)'/%3E%3Ccircle cx='198' cy='86' r='24' fill='%23e1945f' fill-opacity='0.8'/%3E%3C/svg%3E");
}

body.beach::after {
  content: "";
  position: fixed;
  left: 119px;
  top: 602px;
  width: 152px;
  height: 256px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.58;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 640'%3E%3Cpath d='M206 458Q215 448 224 458M224 458Q233 448 242 458' fill='none' stroke='%23ffffff' stroke-opacity='0.72' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M242 474Q251 464 260 474M260 474Q269 464 278 474' fill='none' stroke='%23ffffff' stroke-opacity='0.60' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}

body.beach::before {
  content: "";
  position: fixed;
  left: 44px;
  top: 812px;
  width: 208px;
  height: 62px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 156'%3E%3Cg fill='none' stroke='%234ec3ff' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='2.3' stroke-opacity='0.66' d='M4 66 C32 50 60 82 88 66 S144 50 172 66 S228 82 256 66 S312 50 340 66 S396 82 424 66 S480 50 516 66'/%3E%3Cpath stroke-width='1.8' stroke-opacity='0.52' d='M6 96 C36 80 66 114 96 96 S156 80 186 96 S246 114 276 96 S336 80 366 96 S426 114 456 96 S504 82 518 96'/%3E%3Cpath stroke-width='1.45' stroke-opacity='0.4' d='M8 126 C40 108 72 144 104 126 S168 108 200 126 S264 144 296 126 S360 108 392 126 S456 144 514 126'/%3E%3C/g%3E%3C/svg%3E");
}


body.page-home .hero__content,
body.page-home .hero__visual {
  position: relative;
  z-index: 1;
}

body.page-about .privacy-doc::before {
  content: none;
}

body.beach .layout-main {
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }
}

.hero__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.hero__visual img.hero-title-img {
  width: 100%;
  display: block;
}

.hero__content h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

@media (prefers-reduced-motion: reduce) {
  .brand span {
    animation: none;
    background-position: 50% 50%;
  }
}

.hero__content .tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 28rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.theme-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.screenshot-grid--spaced {
  margin-top: 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

.contact-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.contact-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.media-strip {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.media-strip p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .footer {
    padding: 0.5rem 1rem;
  }

  .footer__inner {
    align-items: flex-start;
    gap: 0.45rem 0.75rem;
  }

  .footer__links {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.35rem 0.65rem;
    padding-bottom: 0;
  }

  .footer__links a {
    white-space: normal;
    line-height: 1.3;
  }

  .footer__credits {
    white-space: normal;
    text-align: left;
    font-size: 0.84rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.65rem 0.5rem;
  }

  .theme-showcase {
    grid-template-columns: 1fr;
  }

  body.beach .layout-main::before {
    left: 33px;
    top: 610px;
    width: 109px;
    height: 183px;
    opacity: 0.2;
  }

  body.beach .layout-main::after {
    left: 131px;
    top: 595px;
    width: 94px;
    height: 196px;
    opacity: 0.46;
  }

  body.beach::after {
    left: 67px;
    top: 595px;
    width: 94px;
    height: 196px;
  }

  body.beach::before {
    left: 23px;
    top: 771px;
    width: 132px;
    height: 45px;
    opacity: 0.52;
  }


  body.page-about .privacy-doc::before {
    content: none;
  }
}

body {
  display: flex;
  flex-direction: column;
}

.layout-main {
  flex: 1;
}
