:root {
  --ink: #202124;
  --ink-secondary: #3c4043;
  --ink-muted: #5f6368;
  --ink-faint: #9aa0a6;
  --surface: #ffffff;
  --canvas: #f8f9fa;
  --canvas-alt: #f1f3f5;
  --border: #dadce0;
  --border-hover: #bdc1c6;
  --accent: #1a73e8;
  --accent-light: #e8f0fe;
  --accent-green: #1e8e3e;
  --accent-green-light: #e6f4ea;
  --accent-green-border: #a8dab5;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 760px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

::selection {
  background: var(--ink);
  color: var(--surface);
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 250, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.8125rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.375rem 0.6875rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.header-link:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border);
}

.header-link svg {
  flex-shrink: 0;
}

/* ─── Hero Section with Geometric Background ─── */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-bg-circle-1 {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  top: -180px;
  right: -120px;
}

.hero-bg-circle-2 {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.03);
  bottom: -80px;
  left: -60px;
}

.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.hero-dots span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5.5rem 1.5rem 5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  font-weight: 400;
}

/* ─── Content Area ─── */
.content {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ─── Section Divider ─── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-divider-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── App Card ─── */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}

.app-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 28px -8px rgba(32, 33, 36, 0.08);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-card-title-group {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.app-tagline {
  font-size: 0.84375rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
  font-weight: 400;
}

.platform-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-green);
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green-border);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.app-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 1.5rem;
}

.chip .material-symbols-outlined {
  font-size: 14px;
  color: var(--ink-muted);
}

/* ─── Action Links (Horizontal Same Line) ─── */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8125rem 1rem;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s var(--ease);
  min-width: 0;
}

.action-link:hover {
  background: var(--surface);
  border-color: var(--border-hover);
  box-shadow: 0 2px 8px -2px rgba(32, 33, 36, 0.06);
}

.action-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-icon .material-symbols-outlined {
  font-size: 18px;
  color: var(--ink-secondary);
}

.action-icon-play svg {
  display: block;
}

.action-text {
  min-width: 0;
}

.action-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-meta {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 0.0625rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-arrow {
  color: var(--ink-faint);
  transition: transform 0.2s var(--ease), color 0.15s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.action-arrow .material-symbols-outlined {
  font-size: 17px;
}

.action-link:hover .action-arrow {
  color: var(--ink-muted);
  transform: translateX(2px);
}

/* ─── Focus ─── */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-text {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.footer-text a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-text a:hover {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--ink);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hero-inner {
    padding: 3.5rem 1.25rem 3rem;
  }

  .hero-title {
    font-size: 2.125rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .content {
    padding: 2rem 1rem 3.5rem;
  }

  .app-card {
    border-radius: 14px;
    padding: 1.375rem 1.125rem;
  }

  .app-card-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .actions {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .action-link {
    padding: 0.75rem 0.875rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 380px) {
  .header-inner {
    padding: 0.6875rem 0.875rem;
  }

  .hero-inner {
    padding: 2.5rem 1rem 2.25rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .content {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  .app-card {
    padding: 1.125rem 0.875rem;
  }
}
