/* Unsel Studio — shared design system */

:root {
  --bg: #faf9f7;
  --bg-raised: #ffffff;
  --ink: #16161d;
  --ink-soft: #55555f;
  --ink-faint: #8a8a94;
  --line: #e7e5e1;
  --accent: #3d5afe;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 8px 24px rgba(20, 20, 30, 0.06);
  --shadow-hover: 0 4px 10px rgba(20, 20, 30, 0.06), 0 16px 36px rgba(20, 20, 30, 0.1);
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c10;
    --bg-raised: #17171d;
    --ink: #f3f3f6;
    --ink-soft: #b3b3bd;
    --ink-faint: #75757f;
    --line: #26262e;
    --accent: #6d84ff;
    --accent-ink: #0c0c10;
    --accent-soft: #1a1e3b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.25), 0 16px 36px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: none;
}

.lang-switch:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
}

.lang-switch .flag {
  font-size: 15px;
  line-height: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #8c9bff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--ink);
}

/* ---------- Buttons / badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.85;
}

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

.btn-ghost:hover {
  border-color: var(--ink-faint);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-soon {
  background: var(--line);
  color: var(--ink-soft);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  font-size: 13.5px;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.hero .eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0;
}

.section-head .desc {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 6px;
}

.section-head a.see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Product grid / cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

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

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Featured product banner */

.featured {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.featured .icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.featured p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

@media (max-width: 640px) {
  .featured {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .featured .icon {
    margin: 0 auto;
  }
}

/* ---------- Product detail page ---------- */

.product-hero {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 640px) {
  .product-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .product-hero .icon {
    margin: 0 auto;
  }
}

.product-hero .icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-hero .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}

.product-hero p.tagline {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0;
}

.product-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

@media (max-width: 800px) {
  .product-body {
    grid-template-columns: 1fr;
  }
}

.product-body h2 {
  font-size: 19px;
  margin: 0 0 14px;
}

.product-body .about p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
  align-items: flex-start;
}

.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex: none;
}

.side-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.side-card + .side-card {
  margin-top: 16px;
}

.side-card h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

/* ---------- Screenshot gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.shot {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.shot .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-faint);
  background: repeating-linear-gradient(
    135deg,
    var(--bg-raised),
    var(--bg-raised) 10px,
    var(--bg) 10px,
    var(--bg) 20px
  );
  text-align: center;
  padding: 16px;
}

.shot .placeholder svg {
  width: 30px;
  height: 30px;
  opacity: 0.5;
}

.shot .placeholder span {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}

/* hide placeholder once a real image has loaded */
.shot img.loaded + .placeholder {
  display: none;
}

/* wide (browser) screenshot variant for web projects */
.shot.wide {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.gallery.wide-gallery {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 700px) {
  .gallery.wide-gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .brand {
  font-size: 14px;
}

.site-footer .foot-links {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.site-footer .foot-links a:hover {
  color: var(--ink-soft);
}

.site-footer .copyright {
  font-size: 12.5px;
  color: var(--ink-faint);
  width: 100%;
  margin-top: 8px;
}

/* ---------- Mobile nav ---------- */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
}
