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

:root {
  --bg: #ffffff;
  --bg-card: #f5f7fa;
  --bg-card-hover: #eef1f6;
  --border: #e0e4ec;
  --accent: #f7941d;
  --accent-hover: #e07e08;
  --accent-glow: rgba(247, 148, 29, 0.08);
  --accent-blue: #4a8ec2;
  --text: #1a1d27;
  --text-muted: #5c6170;
  --text-dim: #9ca3b4;
  --radius: 16px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ===== Hero ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--accent);
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(247, 148, 29, 0.3);
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: #c0c6d4;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero .btn-primary {
  background: #fff;
  color: var(--accent);
}

.hero .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

/* ===== Section ===== */
section {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-header p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 1rem;
}

/* ===== Apps Section ===== */
.apps-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== App Showcase ===== */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.app-showcase-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.app-meta {
  flex: 1;
}

.app-showcase-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.app-showcase-info > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.app-features {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.app-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.app-features li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(74, 142, 194, 0.08);
  border: 1px solid rgba(74, 142, 194, 0.18);
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
}


.app-links {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.app-links .btn-primary {
  font-size: 0.85rem;
  padding: 9px 20px;
}

.app-links .link-secondary {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.app-links .link-secondary:hover {
  color: var(--text);
}


/* ===== App Screenshots ===== */
.app-showcase-screens {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.app-showcase-screens img {
  width: 180px;
  border-radius: 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.app-showcase-screens img:nth-child(2) {
  transform: translateY(-12px);
}

@media (max-width: 900px) {
  .app-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-showcase-screens {
    order: -1;
  }

  .app-showcase-screens img {
    width: 140px;
    border-radius: 20px;
  }
}

@media (max-width: 500px) {
  .app-showcase-screens img {
    width: 100px;
    border-radius: 16px;
  }

  .app-hero-inner .app-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
}

/* ===== About / Values ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.value-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.value-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact-section {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.contact-section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.contact-section p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-legal {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

/* ===== Privacy Policy ===== */
.policy-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}

.policy-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.policy-hero .breadcrumb a {
  color: var(--text-muted);
}

.policy-hero .breadcrumb a:hover {
  color: var(--text);
}

.policy-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.policy-hero .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.policy-content {
  padding: 56px 0 80px;
  max-width: 720px;
}

.policy-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.policy-content ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  padding-left: 20px;
  margin-bottom: 16px;
}

.policy-content ul li {
  margin-bottom: 6px;
}

.policy-content a {
  color: var(--accent);
}

.policy-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ===== Article Page ===== */
.article-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}

.article-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-hero .breadcrumb a {
  color: var(--text-muted);
}

.article-hero .breadcrumb a:hover {
  color: var(--text);
}

.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.article-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 620px;
}

.article-content {
  padding: 56px 0 80px;
  max-width: 720px;
}

.article-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.article-content ul,
.article-content ol {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  padding-left: 20px;
  margin-bottom: 16px;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 6px;
}

.article-content a {
  color: var(--accent-blue);
}

/* Article Figures */
.article-figure {
  margin: 32px 0;
  text-align: center;
}

.article-figure img {
  width: 220px;
  border-radius: 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.article-figure figcaption {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Article Chart */
.article-chart {
  margin: 28px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.article-chart svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Article Steps */
.article-steps {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.article-step:last-child {
  border-bottom: none;
}

.article-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-step-body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

.article-step-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Article CTA */
.article-cta {
  margin: 40px 0;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-cta-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.article-cta-inner .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.article-cta-text {
  flex: 1;
}

.article-cta-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.article-cta-text .btn-primary {
  background: var(--accent);
  color: #fff;
}

.article-cta-text .btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 8px 24px rgba(247, 148, 29, 0.3);
}

.article-cta-text p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

@media (max-width: 500px) {
  .article-cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===== App Detail Page ===== */
.app-hero {
  background: var(--bg);
  color: var(--text);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}

.app-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.app-hero .breadcrumb a {
  color: var(--text-muted);
}

.app-hero .breadcrumb a:hover {
  color: var(--text);
}

.app-hero-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.app-hero-inner .app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
}

.app-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.app-hero-tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 28px;
}

.app-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.app-hero-actions .btn-primary {
  background: var(--accent);
  color: #fff;
}

.app-hero-actions .btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(247, 148, 29, 0.3);
}

.app-hero-actions .link-secondary {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.app-hero-actions .link-secondary:hover {
  color: var(--text);
}

/* ===== Screenshot Feature Sections ===== */
.screenshot-feature {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.screenshot-feature-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}

.screenshot-feature-reversed .screenshot-feature-inner {
  grid-template-columns: 1fr auto;
}

.screenshot-feature-reversed .screenshot-feature-image {
  order: 1;
}

.screenshot-feature-image img {
  width: 240px;
  border-radius: 42px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.screenshot-feature-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.screenshot-feature-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 520px;
}

@media (max-width: 768px) {
  .screenshot-feature-inner,
  .screenshot-feature-reversed .screenshot-feature-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .screenshot-feature-image {
    order: -1;
  }

  .screenshot-feature-reversed .screenshot-feature-image {
    order: -1;
  }

  .screenshot-feature-image img {
    width: 200px;
  }

  .screenshot-feature-text p {
    max-width: none;
  }
}

.app-detail-section {
  padding: 64px 0;
}

.app-detail-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.app-detail-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 680px;
}

.app-detail-section + .app-detail-section {
  border-top: 1px solid var(--border);
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

@media (max-width: 900px) {
  .app-detail-screenshots .screenshots-row img {
    width: 160px;
    border-radius: 22px;
  }
}

@media (max-width: 500px) {
  .app-detail-screenshots .screenshots-row img {
    width: 110px;
    border-radius: 16px;
  }

  .app-hero-inner .app-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
