/* Let it Snow Desktop site styles.
   Colors and shapes follow the macOS app: frosty blue-gray accent,
   the app icon's blues, glass surfaces, hairline borders, 9–12 px control corners. */

:root {
  color-scheme: light dark;

  /* App icon gradient (light) and the app's frost accent */
  --icon-top: #54ace5;
  --icon-bottom: #3d78de;
  --frost: #a1b5c9;

  --bg-top: #ffffff;
  --bg-bottom: #ffffff;
  --surface: #f5f5f7;
  --surface-strong: rgba(255, 255, 255, 0.86);
  --surface-hover: rgba(255, 255, 255, 0.92);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(16, 36, 66, 0.18);
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --text-faint: #86868b;
  --link: #4a6481;
  --accent-tint: rgba(161, 181, 201, 0.18);
  --accent-line: rgba(161, 181, 201, 0.6);
  --btn-bg: #0f1b2d;
  --btn-text: #ffffff;
  --btn-bg-hover: #23324a;
  --shadow: 0 1px 2px rgba(16, 36, 66, 0.06), 0 8px 24px rgba(16, 36, 66, 0.06);
  --focus: rgba(61, 120, 222, 0.35);
  --ok: #1f8a4c;
  --error: #c4312b;
  --snow: 120, 145, 175;

  --radius-card: 18px;
  --radius-control: 12px;
  --radius-chip: 9px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* App icon gradient (dark appearance) */
    --bg-top: #000000;
    --bg-bottom: #000000;
    --surface: #161617;
    --surface-strong: rgba(255, 255, 255, 0.085);
    --surface-hover: rgba(255, 255, 255, 0.11);
    --border: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.2);
    --text: #f5f5f7;
    --text-soft: #a1a1a6;
    --text-faint: #86868b;
    --link: #a1b5c9;
    --accent-tint: rgba(161, 181, 201, 0.12);
    --accent-line: rgba(161, 181, 201, 0.4);
    --btn-bg: #f2f5f9;
    --btn-text: #0b1530;
    --btn-bg-hover: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.25);
    --focus: rgba(161, 181, 201, 0.4);
    --ok: #7fd6a2;
    --error: #ff9a94;
    --snow: 255, 255, 255;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg-bottom);
  background-image: linear-gradient(180deg, var(--bg-top) 0, var(--bg-bottom) 900px);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--accent-tint);
}

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

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-top) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

a.nav-title:hover {
  text-decoration: none;
}

.nav-dot {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background-image: url("icon_light_128.png");
  background-size: cover;
  background-position: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-soft);
  padding: 5px 10px;
  border-radius: var(--radius-chip);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-strong);
  text-decoration: none;
}

.nav-back {
  font-size: 14px;
  color: var(--text-soft);
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 6px;
  }

  .nav-links {
    justify-content: center;
  }
}

/* Layout */

main {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 16px 56px;
}

section {
  margin-bottom: 88px;
}

section h2 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}

section > p {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0;
}

p {
  color: var(--text-soft);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.hero-title {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0 0 22px;
  max-width: 480px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: var(--radius-chip);
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
}

.badge-strong {
  color: var(--text);
  background: var(--accent-tint);
  border-color: var(--accent-line);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-control);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  text-decoration: none;
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  text-decoration: none;
}

.btn-primary:active,
.btn-ghost:active {
  transform: scale(0.98);
}

.btn-primary[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.btn-primary .icon {
  font-size: 17px;
  line-height: 1;
}

.hero-small {
  font-size: 14px;
  color: var(--text-faint);
  max-width: 480px;
  margin-bottom: 16px;
}

.hero-small strong {
  color: var(--text-soft);
}

.hero-media-card {
  border-radius: 22px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-media-inner {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: #02040c;
}

.hero-media-inner img,
.hero-media-inner video {
  display: block;
  width: 100%;
  height: auto;
}

.hero-media-note {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 8px;
  color: #e9eef5;
  background: rgba(10, 16, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Cards */

.card,
.feature-card {
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card {
  padding: 20px 22px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.feature-card {
  padding: 20px 20px 18px;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-text {
  font-size: 15px;
  color: var(--text-soft);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* Screenshots */

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.media-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.media-item img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.media-caption {
  font-size: 14px;
  padding: 10px 14px 12px;
  color: var(--text-soft);
}

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

#lightbox {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
  background: rgba(3, 10, 36, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#lightbox img {
  max-width: 92%;
  max-height: 90%;
  border-radius: 14px;
  cursor: zoom-out;
}

/* Performance */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.two-col p {
  font-size: 17px;
  margin-top: 0;
}

.list-small {
  font-size: 15px;
  color: var(--text-soft);
  padding-left: 20px;
  margin: 12px 0;
}

.list-small li {
  margin-bottom: 6px;
}

.list-small li::marker {
  color: var(--frost);
}

/* FAQ */

.faq-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 32px;
}

.faq-item {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.faq-q {
  font-weight: 600;
  margin-bottom: 4px;
}

.faq-a {
  font-size: 15px;
  color: var(--text-soft);
}

/* About */

.about-dev {
  max-width: 720px;
}

.about-dev p {
  font-size: 17px;
  line-height: 1.6;
}

/* Contact & press */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 28px;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea::placeholder {
  color: var(--text-faint);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.field select option {
  color: #0f1b2d;
  background: #ffffff;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--focus);
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-status {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.error {
  color: var(--error);
}

.contact-side {
  display: grid;
  gap: 14px;
}

.contact-side .feature-text {
  margin: 6px 0 0;
}

.press-kit-card .btn-ghost {
  margin-top: 14px;
}

/* Footer */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 20px 16px 32px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

footer a {
  color: var(--text-soft);
}

/* Snow layer: above the page background, below the header */

#snow-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
