:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --bg-page: #fbfbfb;
  --bg-card: #ffffff;
  --bg-card-hover: rgba(243, 243, 246, 0.85);
  --bg-pill: #f1f1f4;
  --bg-pill-active: #ffffff;
  --text-primary: #111113;
  --text-secondary: #484854;
  --text-muted: #7e7e8d;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-active: rgba(0, 0, 0, 0.16);
  --accent: #2563eb;
  --frame-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --floating-shadow: 0 24px 48px -8px rgba(0, 0, 0, 0.22), 0 2px 12px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  min-height: 100%;
  width: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

.site-container {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 3vw;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(350px, 1fr) 1.45fr;
  gap: clamp(20px, 3.5vw, 48px);
  width: 100%;
  max-width: 1460px;
  align-items: stretch;
}

.home-copy {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 24px;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2px;
}

.brand-title {
  display: flex;
  align-items: center;
}

.brand-name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-transform: lowercase;
}

.lang-toggle-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 3px 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.lang-toggle-btn:hover {
  background-color: #e6e6eb;
  border-color: var(--border-active);
}

.lang-opt {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.lang-opt.active {
  font-weight: 700;
  color: var(--text-primary);
}

.lang-divider {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.45;
}

.intro-block {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bio-paragraph {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.68;
  letter-spacing: -0.015em;
}

.privacy-paragraph {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.62;
  letter-spacing: -0.01em;
}

.tabs-section {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 10px;
}

.tab-header {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-header::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: none;
  border: none;
  padding: 6px 2px 10px 2px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
  font-family: var(--font-sans);
  outline: none;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--text-primary);
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
}

.tab-content-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.tab-content-container::-webkit-scrollbar {
  display: none;
}

.tab-pane {
  display: none;
  animation: fadeInTab 0.15s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeInTab {
  from {
    opacity: 0.4;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.tab-item-row {
  display: block;
  padding: 0;
  cursor: default;
}

.tab-item-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.tab-item-title {
  display: block;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.tab-item-desc {
  display: block;
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  line-height: 1.45;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0;
}

.about-text {
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin: 0;
}

.about-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.about-contact-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.contact-label {
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}

.contact-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.25);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.contact-link:hover {
  color: var(--text-primary);
  text-decoration-color: var(--text-primary);
}

.contact-value {
  color: var(--text-muted);
}

.cta-section {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.browser-compat-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 5px;
}

.compat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-right: 1px;
  flex-shrink: 0;
}

.compat-tag {
  font-size: 0.71rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: var(--bg-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.73rem;
  font-weight: 600;
  text-decoration: none;
  background-color: var(--text-primary);
  color: #ffffff;
  border: 1px solid var(--text-primary);
  transition: all 0.18s ease;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-inline:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.home-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  box-shadow: var(--frame-shadow);
}

.visual-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 16px;
  background-color: #fafafb;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  min-height: 42px;
  flex-shrink: 0;
}

.visual-header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.scene-toggle-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 3px 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  z-index: 2;
}

.scene-toggle-btn:hover {
  background-color: #e6e6eb;
  border-color: var(--border-active);
}

.scene-opt {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.scene-opt.active {
  font-weight: 700;
  color: var(--text-primary);
}

.scene-divider {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.45;
}

.staggered-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 720px;
  background-color: #f6f6f8;
  overflow: hidden;
}

.base-img-card {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  width: calc(100% - 30px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 26px -4px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 0;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr;
}

.base-dashboard-img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

.base-dashboard-img.active {
  opacity: 1;
  pointer-events: auto;
}

.floating-gif-card {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 43.2%;
  max-width: 420px;
  z-index: 10;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--floating-shadow);
  border: 1px solid rgba(0, 0, 0, 0.12);
  line-height: 1.4;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-gif-card:hover {
  transform: translateY(-2px);
}

.floating-gif-card.is-extension-popup {
  width: 32.4%;
  max-width: 315px;
}

.floating-clean-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: #f1f1f4;
  border-bottom: 1px solid var(--border-subtle);
}

.floating-title-center {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.floating-media-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
  line-height: 0;
}

.floating-gif-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: none;
}

.floating-gif-img.active {
  display: block;
}

@media (max-width: 1180px) {
  .site-container {
    padding: 16px 2.5vw;
  }

  .home-layout {
    grid-template-columns: minmax(310px, 1fr) 1.25fr;
    gap: 24px;
  }

  .staggered-stage {
    min-height: 560px;
  }

  .browser-compat-row {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-y: auto !important;
    height: auto !important;
  }

  .site-container {
    height: auto !important;
    min-height: 100vh;
    padding: 24px 16px 64px 16px !important;
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-copy {
    height: auto;
  }

  .home-visual {
    height: auto !important;
    width: 100%;
    margin-top: 12px;
  }

  .visual-frame {
    height: auto !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
  }

  .visual-top-bar {
    min-height: 42px;
    flex-shrink: 0;
  }

  .cta-section {
    margin-top: 24px;
    margin-bottom: 8px;
  }

  .staggered-stage {
    flex: none !important;
    width: 100%;
    height: clamp(400px, 80vw, 560px) !important;
    min-height: clamp(400px, 80vw, 560px) !important;
    position: relative;
    overflow: hidden;
  }
}
