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

:root {
  --bg: #f5f2ee;
  --card: #fffcf9;
  --primary: #2e2418;
  --success: #10b981;
  --danger: #ef4444;
  --text: #2e2418;
  --text-secondary: #7a6e60;
  --text-tertiary: #a89e90;
  --border: #e8e0d8;
  --separator: rgba(80,60,40,0.06);
  --fill: rgba(140,120,100,0.08);
  --accent: #d4845a;
  --accent-soft: rgba(212,132,90,0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100e;
    --card: #1c1916;
    --primary: #f5f0eb;
    --success: #10b981;
    --danger: #ef4444;
    --text: #f5f0eb;
    --text-secondary: #9b9080;
    --text-tertiary: #6b6358;
    --border: #2e2824;
    --separator: rgba(200,180,160,0.08);
    --fill: rgba(140,120,100,0.15);
    --accent: #e0976e;
    --accent-soft: rgba(224,151,110,0.15);
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ====== Navbar ====== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center;
  transition: background 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(245,242,238,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--separator);
}
@media (prefers-color-scheme: dark) {
  .navbar.scrolled { background: rgba(18,16,14,0.8); }
}
.navbar-inner {
  max-width: 1120px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em;
}
.navbar-brand img { width: 32px; height: 32px; border-radius: 22%; }
.navbar-right { display: flex; align-items: center; gap: 8px; }
.navbar-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.navbar-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.3s;
}
.navbar-links a:hover { color: var(--text); }

.lang-switcher { position: relative; margin-left: 16px; }
.lang-btn {
  display: flex; align-items: center; gap: 4px;
  background: var(--fill); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 12px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-family: inherit;
}
.lang-btn:hover { background: var(--accent-soft); color: var(--text); }
.lang-btn svg { width: 14px; height: 14px; transition: transform 0.3s; }
.lang-switcher.open .lang-btn svg { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px; min-width: 140px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  opacity: 0; transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16,1,0.3,1), transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.lang-switcher.open .lang-dropdown {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.lang-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 6px;
  font-size: 0.8125rem; font-weight: 500; color: var(--text);
  cursor: pointer; transition: background 0.2s; border: none;
  background: none; width: 100%; text-align: left; font-family: inherit;
}
.lang-option:hover { background: var(--fill); }
.lang-option.active { color: var(--accent); }
.lang-option .check { width: 16px; text-align: center; }

.nav-mobile-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; color: var(--text);
}
@media (max-width: 720px) {
  .navbar-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .navbar-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 20px 24px; gap: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  }
}

/* ====== Hero ====== */
.hero {
  padding: 140px 0 80px;
  position: relative;
}
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  filter: blur(60px);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.hero-text {
  text-align: left;
  will-change: opacity, transform;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.8125rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), #c06830);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (prefers-color-scheme: dark) {
  .hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), #f0b898);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 36px; max-width: 440px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.hero-screenshot {
  width: 340px; max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  animation: heroFloat 6s ease-in-out infinite;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 0.9375rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: opacity 0.3s;
  text-decoration: none; font-family: inherit;
}
.btn:hover { opacity: 0.75; }
.btn:active { opacity: 0.6; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: var(--card); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-tertiary); opacity: 1; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 820px) {
  .hero { padding: 120px 0 60px; }
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text { text-align: center; order: 1; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: 2; }
  .hero-screenshot { width: 280px; }
}

/* ====== Divider ====== */
.section-divider {
  width: 100%; height: 1px; position: relative;
  overflow: hidden; margin: 20px 0;
}
.section-divider::after {
  content: ''; position: absolute;
  top: 0; left: 50%; width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  transform: translateX(-50%);
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}
.section-divider.visible::after { width: 100%; }

/* ====== Section common ====== */
.section-label {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.0625rem; color: var(--text-secondary);
  line-height: 1.6; max-width: 480px;
}

/* ====== Features — Bento Grid ====== */
.features { padding: 100px 0; }
.features-header { margin-bottom: 48px; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: box-shadow 0.5s;
}
.bento-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}

.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }
.bento-card h3 {
  font-size: 1.125rem; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.bento-card p {
  font-size: 0.9375rem; color: var(--text-secondary);
  line-height: 1.65;
}

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

/* ====== Gallery ====== */
.gallery { padding: 100px 0 60px; overflow: hidden; }
.gallery-header {
  text-align: center; margin-bottom: 48px;
}

.gallery-track {
  display: flex; gap: 20px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding: 24px;
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-img {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  scroll-snap-align: center;
  transition: opacity 0.3s;
}
.gallery-img:hover { opacity: 0.88; }

@media (max-width: 640px) {
  .gallery-img { width: 240px; }
  .gallery-track { gap: 14px; }
}

/* ====== Details ====== */
.details { padding: 100px 0; }
.details-header { margin-bottom: 48px; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.detail-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: box-shadow 0.5s;
}
.detail-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.detail-marker {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  margin-top: 8px;
}
.detail-item h4 {
  font-size: 0.9375rem; font-weight: 600;
  margin-bottom: 4px;
}
.detail-item p {
  font-size: 0.8125rem; color: var(--text-secondary);
  line-height: 1.5;
}

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

/* ====== Audience ====== */
.audience { padding: 80px 0; }
.audience-inner { text-align: center; }
.audience-inner .section-label {
  margin-bottom: 12px;
}
.audience-inner .section-title {
  margin-bottom: 32px;
}
.audience-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
}
.tag {
  display: inline-block;
  padding: 10px 22px; border-radius: 100px;
  background: var(--fill);
  border: 1px solid var(--border);
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ====== Privacy ====== */
.privacy-section { padding: 40px 0 80px; }
.privacy-inner {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 12px;
}
.privacy-icon {
  width: 36px; height: 36px; color: var(--accent);
}
.privacy-inner h3 {
  font-size: 1.125rem; font-weight: 700;
}
.privacy-inner p {
  font-size: 0.9375rem; color: var(--text-secondary);
  line-height: 1.6; max-width: 400px;
}

/* ====== Download CTA ====== */
.download-cta { padding: 20px 0 100px; }
.download-cta-inner {
  background: var(--primary); color: var(--card);
  border-radius: 28px; padding: 80px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.download-cta-inner::before {
  content: ''; position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,132,90,0.2), transparent 70%);
  pointer-events: none;
}
.download-cta-inner::after {
  content: ''; position: absolute;
  bottom: -60px; left: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(212,132,90,0.15), transparent 70%);
  pointer-events: none;
}
.download-cta-inner .cta-icon {
  width: 80px; height: 80px; border-radius: 22%;
  margin: 0 auto 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative; z-index: 1;
}
.download-cta-inner .section-title {
  color: var(--card); position: relative; z-index: 1;
  margin-bottom: 12px;
}
.download-cta-inner .section-subtitle {
  color: var(--card); opacity: 0.65; position: relative; z-index: 1;
  margin: 0 auto 36px;
}
.download-cta-btns { position: relative; z-index: 1; }
.btn-cta { background: var(--card); color: var(--primary); }
.cta-lang {
  position: relative; z-index: 1;
  margin-top: 20px;
  font-size: 0.8125rem; color: var(--card); opacity: 0.45;
}

/* ====== Footer ====== */
.footer {
  padding: 40px 0; border-top: 1px solid var(--separator);
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; height: 24px; border-radius: 22%; }
.footer-brand span { font-weight: 600; font-size: 0.875rem; }
.footer-copy { font-size: 0.8125rem; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a {
  font-size: 0.8125rem; color: var(--text-tertiary);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--text); }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ====== Scroll Reveal ====== */
.reveal {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal.visible { opacity: 1; transform: translate(0, 0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ====== Hero entrance keyframes ====== */
.hero-enter {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-enter-up {
  transform: translateY(40px);
  animation-name: heroEnterUp;
}
.hero-enter-right {
  transform: translateX(50px);
  animation-name: heroEnterRight;
}
@keyframes heroEnterUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroEnterRight {
  to { opacity: 1; transform: translateX(0); }
}
.hero-enter.he-d0 { animation-duration: 0.9s; animation-delay: 0.1s; }
.hero-enter.he-d1 { animation-duration: 0.9s; animation-delay: 0.2s; }
.hero-enter.he-d2 { animation-duration: 0.9s; animation-delay: 0.35s; }
.hero-enter.he-d3 { animation-duration: 0.9s; animation-delay: 0.5s; }
.hero-enter.he-d4 { animation-duration: 1s; animation-delay: 0.3s; }

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-enter { opacity: 1; transform: none; }
  .hero-screenshot { animation: none; }
}
