:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-tint: #f3f4f6;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --accent: #006ba1;
  --accent-hover: #005480;
  --accent-soft: #e0f2fe;
  --accent-ink: #005480;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.07);
  --radius-lg: 24px;
  --radius-md: 18px;
}

body.theme-emoji {
  --accent: #006ba1;
  --accent-hover: #005480;
  --accent-soft: #e0f2fe;
  --accent-ink: #005480;
}

body.theme-imagegen {
  --accent: #d91b42;
  --accent-hover: #b31235;
  --accent-soft: #ffe4e6;
  --accent-ink: #9f1239;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(0, 136, 204, 0.07), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(225, 29, 72, 0.06), transparent 34%);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

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

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 500;
}

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

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

.nav-cta {
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.86rem;
}

.nav-cta:hover {
  background: var(--accent);
}

.lang-switch {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink) !important;
  font-size: 0.82rem;
  font-weight: 700;
}

.wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 36px 20px 72px;
}

/* Split Hero */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.13;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.lead {
  margin: 0 0 26px;
  font-size: 1.06rem;
  color: var(--ink-2);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-primary:hover {
  text-decoration: none;
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.trust-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 800;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-phone {
  width: min(100%, 360px);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.hero-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 5;
  background: var(--surface-tint);
}

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

.hero-photo-shift {
  transform: translateY(16px);
}

/* Section blocks */
.block {
  margin-bottom: 44px;
  scroll-margin-top: 104px;
}

.section-head {
  margin-bottom: 22px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 6px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--ink-2);
  max-width: 66ch;
}

/* Comparison visual card */
.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.compare-card img {
  width: 100%;
  border-radius: 16px;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.preset {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.preset strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
}

.preset span {
  font-size: 0.89rem;
  color: var(--ink-2);
}

/* Showcase Gallery for ImageGen */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 18px;
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-body {
  padding: 16px;
}

.gallery-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.gallery-body h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.gallery-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* Pricing & Free Tier */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.price-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-value {
  margin: 8px 0 12px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

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

.note-box {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* FAQ */
.faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 24px;
  box-shadow: var(--shadow-sm);
}

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

.faq-item:first-child {
  border-top: none;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-2);
}

/* Ecosystem + Bottom CTA */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.eco-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.eco-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.eco-card p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.eco-card a {
  font-weight: 700;
  font-size: 0.92rem;
}

.bottom-cta {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bottom-cta h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.bottom-cta p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.96rem;
}

.footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 26px 20px;
    gap: 28px;
  }

  .hero-photo-shift {
    transform: none;
  }

  .wrap {
    padding: 22px 16px 56px;
  }
}

@media (max-width: 960px) {
  .topbar-wrap {
    position: static;
  }

  .block {
    scroll-margin-top: 16px;
  }
}
