/* ─── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #F5F5F7;
  --bg-card:     #FFFFFF;
  --bg-elevated: #EBEBED;
  --accent:      #5E4FD6;
  --accent-dim:  rgba(94, 79, 214, 0.10);
  --accent-glow: rgba(94, 79, 214, 0.25);
  --text:        #1D1D1F;
  --text-muted:  #6E6E73;
  --border:      rgba(0,0,0,0.09);
  --radius:      18px;
  --radius-sm:   10px;
  --font:        -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); transition: color 0.15s; }

/* ─── Hero (homepage) ───────────────────────────────────────── */
.home-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5% 80px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(94,79,214,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 28px;
  box-shadow: 0 0 0 1px var(--border), 0 20px 60px rgba(0,0,0,0.12);
}
.home-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #1D1D1F 30%, #5E4FD6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}
.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* ─── Section Labels ────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ─── Apps Grid (homepage) ──────────────────────────────────── */
.apps-section {
  padding: 100px 5%;
}
.apps-section > .section-label { text-align: center; }
.apps-section > h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 440px));
  justify-content: center;
  gap: 24px;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 0 0 1px rgba(94,79,214,0.2);
}
.app-card-hero {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: top center;
  transition: height 0.4s var(--ease);
}
.app-card:hover .app-card-hero {
  height: 220px;
}
.app-card-body {
  padding: 24px;
}
.app-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.app-card-meta-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.app-card-meta-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.app-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow);
}
.btn-primary:hover {
  background: #4A3DC2;
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}
.btn-store {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-store:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── App Showcase (homepage) ───────────────────────────────── */
.app-showcase-list {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.app-showcase-card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 44px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.app-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.09), 0 0 0 1px rgba(94,79,214,0.15);
}
.app-showcase-screenshots {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  flex-grow: 0;
  width: 290px;
}
.showcase-shot {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  object-fit: cover;
  object-position: top center;
  display: block;
}
.showcase-shot--main {
  width: 100px;
  height: 178px;
  margin-bottom: 12px;
}
.showcase-shot--side {
  width: 82px;
  height: 146px;
  opacity: 0.82;
}
.app-showcase-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app-showcase-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.app-showcase-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.app-showcase-meta h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.app-showcase-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.app-showcase-info > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.app-showcase-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-showcase-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.app-showcase-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}
.app-showcase-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 700px) {
  .app-showcase-card {
    flex-direction: column;
    padding: 28px 24px;
    gap: 28px;
  }
  .app-showcase-screenshots {
    justify-content: center;
  }
}

/* ─── App Page Hero ─────────────────────────────────────────── */
.app-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 100px 8% 80px;
  position: relative;
  overflow: hidden;
}
.app-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(94,79,214,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.app-hero-text { position: relative; z-index: 1; }
.app-hero-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(123,110,246,0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.app-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.app-hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.app-hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.app-hero-screenshot {
  width: 100%;
  max-width: 130px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px var(--border);
  object-fit: cover;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: zoom-in;
  position: relative;
}
.app-hero-screenshot:hover {
  transform: scale(2.2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.25), 0 0 0 1px var(--border);
  z-index: 10;
}

/* ─── Feature Sections ──────────────────────────────────────── */
.features {
  padding: 60px 5%;
  max-width: 960px;
  margin: 0 auto;
}
.feature-banner {
  width: 100%;
  overflow: hidden;
  margin-bottom: 2px;
}
.feature-banner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0 0 2px;
}
.feature-cell {
  background: var(--bg-card);
  padding: 36px 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-cell.img-cell {
  padding: 28px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-cell.img-cell img {
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 280px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: zoom-in;
  position: relative;
}
.feature-cell.img-cell:hover img {
  transform: scale(2.0);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 10;
}
.feature-showcase {
  background: var(--bg-card);
  padding: 32px 6%;
  display: flex;
  justify-content: center;
  overflow: visible;
}
.feature-showcase img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: zoom-in;
  position: relative;
}
.feature-showcase img:hover {
  transform: scale(2.0);
  box-shadow: 0 32px 80px rgba(0,0,0,0.18);
  z-index: 10;
}

.feature-cell h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.feature-cell p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 380px;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 50px;
}

/* ─── Screenshots Strip ─────────────────────────────────────── */
.screenshots-section {
  padding: 80px 5%;
  text-align: center;
}
.screenshots-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.screenshots-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  justify-content: center;
  flex-wrap: wrap;
  scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.gallery-landscape {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.gallery-landscape img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: zoom-in;
  position: relative;
}
.gallery-landscape img:hover {
  transform: scale(2.2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  z-index: 10;
}
.screenshot-thumb {
  flex-shrink: 0;
  width: 110px;
  border-radius: var(--radius);
  overflow: visible;
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), z-index 0s;
  position: relative;
  cursor: zoom-in;
}
.screenshot-thumb:hover {
  transform: scale(2.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 20;
}
.screenshot-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  display: block;
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 5%;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}
.footer-links-group h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-links-group a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-links-group a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 5% 0;
}
.breadcrumb--page {
  padding: 80px 8% 0;
  max-width: none;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.4;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* ─── Subpages (Privacy / Support) ─────────────────────────── */
.subpage {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 5% 80px;
}
.subpage-badge {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(123,110,246,0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.subpage h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.subpage-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.subpage h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
}
.subpage p, .subpage li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.subpage ul {
  padding-left: 20px;
  margin-top: 8px;
}
.subpage li { margin-bottom: 6px; }
.subpage a { color: var(--accent); }
.subpage a:hover { text-decoration: underline; }
.subpage .highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-feedback--success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
}
.form-feedback--error {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}
.form-feedback--error a { color: #b91c1c; text-decoration: underline; }

.support-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
}
.support-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.support-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.support-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.support-form input,
.support-form select,
.support-form textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  -webkit-appearance: none;
}
.support-form input::placeholder,
.support-form textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus { border-color: var(--accent); }
.support-form textarea { resize: vertical; min-height: 120px; }
.support-form select { cursor: pointer; }
@media (max-width: 600px) {
  .support-form .form-row { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 40px;
  text-align: center;
}
.contact-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.contact-card a.btn {
  margin: 0 auto;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .app-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }
  .app-hero-image { order: -1; }
  .app-hero-tagline { margin-left: auto; margin-right: auto; }
  .app-hero-actions { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-cell.img-cell img { max-width: 130px; max-height: 220px; }
  .feature-banner img { height: 260px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .apps-grid { grid-template-columns: 1fr; }
  .screenshot-thumb { width: 90px; }
  .screenshot-thumb img { height: 160px; }
  .footer-top { flex-direction: column; }
}
